aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'build_scripts')
-rw-r--r--build_scripts/main.py7
-rw-r--r--build_scripts/options.py2
2 files changed, 9 insertions, 0 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py
index 55cc6a882..b139519c3 100644
--- a/build_scripts/main.py
+++ b/build_scripts/main.py
@@ -1059,6 +1059,13 @@ class PysideBuild(_build):
cmake_cmd.append("-DCMAKE_OSX_DEPLOYMENT_TARGET={}".format(deployment_target))
os.environ['MACOSX_DEPLOYMENT_TARGET'] = deployment_target
+ if OPTION["DOC_BUILD_ONLINE"]:
+ log.info("Output format will be HTML")
+ cmake_cmd.append("-DDOC_OUTPUT_FORMAT=html")
+ else:
+ log.info("Output format will be qthelp")
+ cmake_cmd.append("-DDOC_OUTPUT_FORMAT=qthelp")
+
if not OPTION["SKIP_CMAKE"]:
log.info("Configuring module {} ({})...".format(extension, module_src_dir))
if run_process(cmake_cmd) != 0:
diff --git a/build_scripts/options.py b/build_scripts/options.py
index 4229a2c10..db2a7e367 100644
--- a/build_scripts/options.py
+++ b/build_scripts/options.py
@@ -182,6 +182,8 @@ OPTION = {
# This is used automatically by distutils.command.install object, to
# specify the final installation location.
"FINAL_INSTALL_PREFIX": option_value("prefix", remove=False),
+ # This is used to identify the template for doc builds
+ "DOC_BUILD_ONLINE": has_option("doc-build-online"),
}
_deprecated_option_jobs = option_value('jobs')
if _deprecated_option_jobs: