aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/main.py
diff options
context:
space:
mode:
authorShyamnath Premnadh <[email protected]>2024-07-26 10:50:53 +0200
committerShyamnath Premnadh <[email protected]>2024-07-29 12:53:12 +0200
commit15ca8df23b015ed07b15f0191986bba88a21a74c (patch)
tree3df70e467053532e10b9784cd86c69affe371ea1 /build_scripts/main.py
parent9f883211760881c64aab2138f49486edf6c9aae9 (diff)
PySide Build: Add an option to provide extra include paths for Shiboken
- Expands on 7cc5c139482d735c49002649d26bb524c92cc86b, by creating a build option '--shiboken-extra-include-paths' that appends extra include paths to the '--force-process-system-include-paths' option when calling shiboken generator to create PySide6 modules. - This can be helpful for Flatpak and OS Distro builds of PySide6. Pick-to: 6.7 Change-Id: Ibd4c9702a741d8047ccaf53d84a1c97550d78ffe Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'build_scripts/main.py')
-rw-r--r--build_scripts/main.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py
index 506a9891f..da132f0e0 100644
--- a/build_scripts/main.py
+++ b/build_scripts/main.py
@@ -613,6 +613,11 @@ class PysideBuild(_build, CommandMixin, BuildInfoCollectorMixin):
cmake_cmd.append("-DPYSIDE_TREAT_QT_INCLUDE_DIRS_AS_NON_SYSTEM=ON")
log.info("Shiboken will now process system Qt headers")
+ if OPTION['SHIBOKEN_EXTRA_INCLUDE_PATHS']:
+ extra_include_paths = ';'.join(OPTION['SHIBOKEN_EXTRA_INCLUDE_PATHS'].split(','))
+ cmake_cmd.append(f"-DSHIBOKEN_FORCE_PROCESS_SYSTEM_INCLUDE_PATHS={extra_include_paths}")
+ log.info(f"Shiboken will now process system headers from: {extra_include_paths}")
+
cmake_cmd += [
"-G", self.make_generator,
f"-DBUILD_TESTS={self.build_tests}",