Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit bcf7818

Browse files
authored
Merge pull request #10 from iakov/master
Tune build
2 parents 540b538 + f5c7cac commit bcf7818

5 files changed

Lines changed: 13 additions & 9 deletions

File tree

PythonQt.pro

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
TEMPLATE = subdirs
22

3-
CONFIG += ordered
43
SUBDIRS = src extensions
54

6-
CONFIG(tests) { SUBDIRS += tests }
7-
CONFIG(generator) { SUBDIRS += generator }
5+
extensions.depends += src
6+
7+
CONFIG(tests) {
8+
SUBDIRS += tests
9+
tests.depends += extensions
10+
}
11+
12+
CONFIG(generator) {
13+
SUBDIRS += generator
14+
}

build/python.prf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Change this variable to your python version (3.5, 3,7, 3.8, ...)
44
isEmpty(PYTHON3_VERSION_MINOR):PYTHON3_VERSION_MINOR=7
55
unix:PYTHON_VERSION=UNKNOWN_BECAUSE_DETECT_FAILED
6-
76
win32 {
87
# for windows install a Python development kit or build Python yourself from the sources
98
# Make sure that you set the environment variable PYTHON_PATH to point to your
@@ -30,6 +29,7 @@ win32 {
3029
message(PYTHON_VERSION is detected as $$PYTHON_VERSION)
3130
INCLUDEPATH += $$PYTHON_PATH/PC $$PYTHON_PATH/include
3231
LIBS += -L$$PYTHON_LIB -lpython$${PYTHON_VERSION}
32+
mingw:DEFINES += HAVE_ROUND
3333
} else:unix {
3434

3535
# workaround Qt issue https://bugreports.qt.io/browse/QTBUG-56164

generated_cpp_5.12/com_trolltech_qt_core/com_trolltech_qt_core2.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#include <qtextcodec.h>
4444
#include <qthread.h>
4545
#include <qvector.h>
46-
#include <qwidget.h>
4746

4847
QModelIndex* PythonQtWrapper_QModelIndex::new_QModelIndex()
4948
{

generated_cpp_5.12/com_trolltech_qt_core/com_trolltech_qt_core2.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@
4444
#include <qtextcodec.h>
4545
#include <qthread.h>
4646
#include <qvector.h>
47-
#include <qwidget.h>
48-
49-
5047

5148
class PythonQtWrapper_QModelIndex : public QObject
5249
{ Q_OBJECT

src/src.pri

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ CONFIG += c++11
66

77
!no_warn:gcc: QMAKE_CXXFLAGS += -Werror
88
# This was needed to work around "number of sections exceeded object file format limit" linker error
9-
win32:!gcc:QMAKE_CXXFLAGS += /bigobj
9+
win32-msvc*:!gcc:QMAKE_CXXFLAGS += /bigobj
10+
win32-g++: QMAKE_CXXFLAGS += -Wa,-mbig-obj
1011

1112
HEADERS += \
1213
$$PWD/PythonQt.h \

0 commit comments

Comments
 (0)