From 15ca8df23b015ed07b15f0191986bba88a21a74c Mon Sep 17 00:00:00 2001 From: Shyamnath Premnadh Date: Fri, 26 Jul 2024 10:50:53 +0200 Subject: 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 --- build_scripts/main.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build_scripts/main.py') 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}", -- cgit v1.2.3