aboutsummaryrefslogtreecommitdiffstats
path: root/examples/scriptableapplication
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2018-02-01 16:52:20 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2018-02-02 12:01:07 +0000
commit849567b32a6203ee9274c3fc20eac150955c3404 (patch)
treedc276c53d3dd6a2ba5e64eed959a9cd8760b7de9 /examples/scriptableapplication
parentcc44058968102429f65a50646f452a334e85597e (diff)
Fix scriptableapplication example qmake include hack
I'm not sure why the hack was there in the first place. Includes seem to be always copied into the package, so we can simply query for the includes path, and pass that along to qmake INCLUDEPATH. Change-Id: Ib3af020fa9f841f57e00ac0cd4c3548b47b3e459 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/scriptableapplication')
-rw-r--r--examples/scriptableapplication/scriptableapplication.pro8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/scriptableapplication/scriptableapplication.pro b/examples/scriptableapplication/scriptableapplication.pro
index 2719160f3..9f888f6a0 100644
--- a/examples/scriptableapplication/scriptableapplication.pro
+++ b/examples/scriptableapplication/scriptableapplication.pro
@@ -74,11 +74,9 @@ win32:QMAKE_EXTRA_COMPILERS += hard_link_libraries
INCLUDEPATH += $$WRAPPER_DIR
-# fixme: Hack to find wrappers
-PACKAGE_DIR = $$PWD/../../pyside_package/PySide2
-
-INCLUDEPATH += $$PACKAGE_DIR/include/PySide2/QtWidgets \
- $$PACKAGE_DIR/include/PySide2/QtGui $$PACKAGE_DIR/include/PySide2/QtCore
+for(i, PYSIDE2_INCLUDE) {
+ INCLUDEPATH += $$i/QtWidgets $$i/QtGui $$i/QtCore
+}
SOURCES += \
main.cpp \