aboutsummaryrefslogtreecommitdiffstats
path: root/examples/scriptableapplication/scriptableapplication.pro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scriptableapplication/scriptableapplication.pro')
-rw-r--r--examples/scriptableapplication/scriptableapplication.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/scriptableapplication/scriptableapplication.pro b/examples/scriptableapplication/scriptableapplication.pro
index 9f888f6a0..bcb05c115 100644
--- a/examples/scriptableapplication/scriptableapplication.pro
+++ b/examples/scriptableapplication/scriptableapplication.pro
@@ -12,6 +12,9 @@ TYPESYSTEM_FILE = scriptableapplication.xml
QT_INCLUDEPATHS = -I$$[QT_INSTALL_HEADERS] -I$$[QT_INSTALL_HEADERS]/QtCore \
-I$$[QT_INSTALL_HEADERS]/QtGui -I$$[QT_INSTALL_HEADERS]/QtWidgets
+# On macOS, check if Qt is a framework build. This affects how include paths should be handled.
+qtConfig(framework): QT_INCLUDEPATHS += --framework-include-paths=$$[QT_INSTALL_LIBS]
+
SHIBOKEN_OPTIONS = --generator-set=shiboken --enable-parent-ctor-heuristic \
--enable-pyside-extensions --enable-return-value-heuristic --use-isnull-as-nb_nonzero \
$$QT_INCLUDEPATHS -I$$PWD -T$$PWD -T$$PYSIDE2/typesystems --output-directory=$$OUT_PWD