aboutsummaryrefslogtreecommitdiffstats
path: root/examples/scriptableapplication/pyside2.pri
blob: bd0eeef9e0c31513cf035ab80b16ab8ec00fd16c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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

!build_pass:message(Using $$PYSIDE2)

!win32 {
    QMAKE_RPATHDIR += $$PYSIDE2
}