aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2020-05-12 10:18:08 +0200
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2020-06-04 13:14:02 +0200
commitb405a419aa532ec1c79e91827b30d23358cae841 (patch)
tree4c9b6968ea1d696d9bccc34f232f1dd619196621 /build_scripts
parented1a6d48c61b33c94c51fb92619ae173fa5c22c5 (diff)
Doc: Enable doc builds using the offline template
A new command-line option, --doc-build-online, enables to choose online builds, otherwise offline docs are built by default. Change-Id: I34ef8a22ef3bd321bd972c4f2873e4321c9c336a Fixes: PYSIDE-1292 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
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: