Skip to content

Commit

Permalink
Tune build
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Apr 3, 2021
1 parent 540b538 commit f5c7cac
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
13 changes: 10 additions & 3 deletions PythonQt.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
TEMPLATE = subdirs

CONFIG += ordered
SUBDIRS = src extensions

CONFIG(tests) { SUBDIRS += tests }
CONFIG(generator) { SUBDIRS += generator }
extensions.depends += src

CONFIG(tests) {
SUBDIRS += tests
tests.depends += extensions
}

CONFIG(generator) {
SUBDIRS += generator
}
2 changes: 1 addition & 1 deletion build/python.prf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Change this variable to your python version (3.5, 3,7, 3.8, ...)
isEmpty(PYTHON3_VERSION_MINOR):PYTHON3_VERSION_MINOR=7
unix:PYTHON_VERSION=UNKNOWN_BECAUSE_DETECT_FAILED

win32 {
# for windows install a Python development kit or build Python yourself from the sources
# Make sure that you set the environment variable PYTHON_PATH to point to your
Expand All @@ -30,6 +29,7 @@ win32 {
message(PYTHON_VERSION is detected as $$PYTHON_VERSION)
INCLUDEPATH += $$PYTHON_PATH/PC $$PYTHON_PATH/include
LIBS += -L$$PYTHON_LIB -lpython$${PYTHON_VERSION}
mingw:DEFINES += HAVE_ROUND
} else:unix {

# workaround Qt issue https://bugreports.qt.io/browse/QTBUG-56164
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include <qtextcodec.h>
#include <qthread.h>
#include <qvector.h>
#include <qwidget.h>

QModelIndex* PythonQtWrapper_QModelIndex::new_QModelIndex()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
#include <qtextcodec.h>
#include <qthread.h>
#include <qvector.h>
#include <qwidget.h>



class PythonQtWrapper_QModelIndex : public QObject
{ Q_OBJECT
Expand Down
3 changes: 2 additions & 1 deletion src/src.pri
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ CONFIG += c++11

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

HEADERS += \
$$PWD/PythonQt.h \
Expand Down

0 comments on commit f5c7cac

Please sign in to comment.