aboutsummaryrefslogtreecommitdiffstats
path: root/examples/scriptableapplication/pyside2.pri
blob: acab9e9618c01869d810d4d9a5591f2c5e9f7a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PYTHON_INCLUDE = $$system(python $$PWD/pyside2_config.py --python-include)
isEmpty(PYTHON_INCLUDE): error(Unable to locate Python)
PYTHON_LFLAGS = $$system(python $$PWD/pyside2_config.py --python-link)

PYSIDE2 = $$system(python $$PWD/pyside2_config.py --pyside2)
isEmpty(PYSIDE2): error(Unable to locate PySide2)
PYSIDE2_INCLUDE = $$system(python $$PWD/pyside2_config.py --pyside2-include)
PYSIDE2_LFLAGS = $$system(python $$PWD/pyside2_config.py --pyside2-link)
PYSIDE2_SHARED_LIBRARIES = $$system(python $$PWD/pyside2_config.py --pyside2-shared-libraries)
CLANG_BIN_DIR = $$system(python $$PWD/pyside2_config.py --clang-bin-dir)

INCLUDEPATH += "$$PYTHON_INCLUDE" $$PYSIDE2_INCLUDE
LIBS += $$PYTHON_LFLAGS $$PYSIDE2_LFLAGS
LIBPATH += $$PYTHON_LFLAGS $$PYSIDE2_LFLAGS
!build_pass:message(INCLUDEPATH is $$INCLUDEPATH)
!build_pass:message(LIBS are $$LIBS)
!build_pass:message(LIBPATH is $$LIBPATH)

!build_pass:message(Using $$PYSIDE2)

!win32 {
    QMAKE_RPATHDIR += $$PYSIDE2
}