diff options
author | Alexandru Croitor <[email protected]> | 2021-09-28 16:46:54 +0200 |
---|---|---|
committer | Alexandru Croitor <[email protected]> | 2022-02-04 15:51:01 +0100 |
commit | 14e4527cc427ce8c5e7c1758a95a1bbce0498471 (patch) | |
tree | 9e78de69604f492661d856014c74ad8faa1ce696 /sources/pyside-tools/CMakeLists.txt | |
parent | 5d0fd24f0ff9289dba2d41a38a7054770c3a3eee (diff) |
CMake: pyside: Add support for cross-building
The pyside project will be cross-compiled either if
CMAKE_CROSSCOMPILING is set to TRUE (which is usually set
by a CMake toolchain file or computed by CMake itself)
or if QFP_SHIBOKEN_HOST_PATH is provided on the command line.
Various code is added to ensure the correct target Qt, Python and
Shiboken libraries are found, as well as host Qt and shiboken tools.
These are specified to the project by setting one of the following
vars:
- QFP_QT_TARGET_PATH (for device Qt libs and includes)
- QFP_PYTHON_TARGET_PATH (for device python libs and includes)
- QFP_SHIBOKEN_TARGET_PATH (for device libs)
- QFP_SHIBOKEN_HOST_PATH (for host shiboken generator)
- QT_HOST_PATH (for host moc and friends)
When cross-compiling, pyi file generation is disabled because it's not
possible to run a target python interpeter on a host machine. It might
be possible to do that by using qemu userland emulation in the future.
Task-number: PYSIDE-802
Task-number: PYSIDE-1033
Change-Id: Ifa101e90d83397fa19132f9f0ce21e03b3523a74
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'sources/pyside-tools/CMakeLists.txt')
-rw-r--r-- | sources/pyside-tools/CMakeLists.txt | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sources/pyside-tools/CMakeLists.txt b/sources/pyside-tools/CMakeLists.txt index 384985125..47516b1af 100644 --- a/sources/pyside-tools/CMakeLists.txt +++ b/sources/pyside-tools/CMakeLists.txt @@ -1,12 +1,7 @@ cmake_minimum_required(VERSION 3.16) project(pyside-tools) -# Don't display "up-to-date / install" messages when installing, to reduce visual clutter. -if (QUIET_BUILD) - set(CMAKE_INSTALL_MESSAGE NEVER) -endif() - -find_package(Qt6 COMPONENTS Core HostInfo) +include(cmake/PySideToolsSetup.cmake) set(files ${CMAKE_CURRENT_SOURCE_DIR}/pyside_tool.py ${CMAKE_CURRENT_SOURCE_DIR}/metaobjectdump.py) |