diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-05 15:58:35 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-12 12:28:10 +0000 |
| commit | 9f2a9aba3aff73e31ea15eb4a7a04b0e50f4ee4e (patch) | |
| tree | 92dcb0c4f64df8a8375af2e1a9bb1170068c36b2 /examples/scriptableapplication/pyside2.pri | |
| parent | 26c046e521c38bbfc3a263782a3bb74a7c1bf937 (diff) | |
Move examples from submodule to pyside-setup
Move PySide2 examples that are owned by the Qt Company
to a new examples directory.
Done-with: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Task-number: PYSIDE-363
Change-Id: I14099764d9eef2bc35e067086121427955862e3a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/scriptableapplication/pyside2.pri')
| -rw-r--r-- | examples/scriptableapplication/pyside2.pri | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/scriptableapplication/pyside2.pri b/examples/scriptableapplication/pyside2.pri new file mode 100644 index 000000000..bd0eeef9e --- /dev/null +++ b/examples/scriptableapplication/pyside2.pri @@ -0,0 +1,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 +} |
