From 27696e548650c829bd3a77bdf3b7e8b69bd206cd Mon Sep 17 00:00:00 2001 From: Claus Assmann Date: Fri, 24 Nov 2017 08:57:56 +0000 Subject: [PATCH] src.pro fix for 4.8 + tidy .. don't add concurrent to the qt modules list unless we are building with Qt 5. .. don't add ./R and ./Python to the INCLUDEPATH unless we are building with them enabled .. fixup comment regarding officially support versions of QT - we now support 5.8 or higher and strongly recommend 5.9.2 or higher for crucial fixes to Qt Charts and QtOpenGL --- src/src.pro | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/src.pro b/src/src.pro index 2d2576792..3d3366c8e 100644 --- a/src/src.pro +++ b/src/src.pro @@ -32,11 +32,11 @@ CONFIG(debug, debug|release) { QMAKE_CXXFLAGS += -DGC_DEBUG } ###====================================================== -### QT MODULES [we officially support QT4.8.6+ or QT5.6+] +### QT MODULES [we officially support QT4.8.6+ or QT5.8+] ###====================================================== # always -QT += xml sql network svg concurrent +QT += xml sql network svg lessThan(QT_MAJOR_VERSION, 5) { @@ -82,7 +82,7 @@ lessThan(QT_MAJOR_VERSION, 5) { ###======================================================================= ### Directory Structure - Split into subdirs to be more manageable ###======================================================================= -INCLUDEPATH += ./ANT ./Train ./FileIO ./Cloud ./Charts ./Metrics ./Gui ./Core ./R ./Python ./Planning +INCLUDEPATH += ./ANT ./Train ./FileIO ./Cloud ./Charts ./Metrics ./Gui ./Core ./Planning QMAKE_CFLAGS_ISYSTEM = @@ -279,6 +279,9 @@ contains(DEFINES, "GC_WANT_PYTHON") { greaterThan(QT_MINOR_VERSION, 8) { + # add Python subdirectory to include path + INCLUDEPATH += ./Python + DEFINES += GC_PYTHONHEADER=$${PYTHONHEADER} !isEmpty(PYTHONINCLUDES) QMAKE_CXXFLAGS += $${PYTHONINCLUDES} LIBS += $${PYTHONLIBS} @@ -313,6 +316,9 @@ contains(DEFINES, "GC_WANT_R") { # see: http://dirk.eddelbuettel.com/blog/2011/03/25/#rinside_and_qt isEmpty(R_HOME){ R_HOME = $$system(R RHOME) } + # add R subdirectory to include path + INCLUDEPATH += ./R + ## include headers and libraries for R win32 { QMAKE_CXXFLAGS += -I$$R_HOME/include DEFINES += Win32 }