From 2e130acfd7408fa3081b08b0e9ff6ea38f22b191 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 15 Jun 2020 12:25:23 +0200 Subject: CMake build: Show build date in about dialog in packages The default for non-packaging build is OFF. Fixes: QTCREATORBUG-24128 Change-Id: Id422babe197e215d6cb33807a78ba1ee3aaabb32 Reviewed-by: Cristian Adam --- scripts/build.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/build.py b/scripts/build.py index 27315f3b2c..11b7e0a387 100755 --- a/scripts/build.py +++ b/scripts/build.py @@ -83,6 +83,8 @@ def get_arguments(): action='store_true', default=(not common.is_windows_platform())) parser.add_argument('--no-docs', help='Skip documentation generation', action='store_true', default=False) + parser.add_argument('--no-build-date', help='Does not show build date in about dialog, for reproducible builds', + action='store_true', default=False) parser.add_argument('--no-dmg', help='Skip disk image creation (macOS)', action='store_true', default=False) parser.add_argument('--no-zip', help='Skip creation of 7zip files for install and developer package', @@ -101,9 +103,11 @@ def build_qtcreator(args, paths): prefix_paths += [paths.elfutils] build_type = 'Debug' if args.debug else 'Release' with_docs_str = 'OFF' if args.no_docs else 'ON' + build_date_option = 'OFF' if args.no_build_date else 'ON' cmake_args = ['cmake', '-DCMAKE_PREFIX_PATH=' + ';'.join(prefix_paths), '-DCMAKE_BUILD_TYPE=' + build_type, + '-DSHOW_BUILD_DATE=' + build_date_option, '-DWITH_DOCS=' + with_docs_str, '-DBUILD_DEVELOPER_DOCS=' + with_docs_str, '-DBUILD_EXECUTABLE_SDKTOOL=OFF', -- cgit v1.2.3