diff options
| author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2020-05-12 10:18:08 +0200 |
|---|---|---|
| committer | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2020-06-04 13:14:02 +0200 |
| commit | b405a419aa532ec1c79e91827b30d23358cae841 (patch) | |
| tree | 4c9b6968ea1d696d9bccc34f232f1dd619196621 /build_scripts/main.py | |
| parent | ed1a6d48c61b33c94c51fb92619ae173fa5c22c5 (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/main.py')
| -rw-r--r-- | build_scripts/main.py | 7 |
1 files changed, 7 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: |
