diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-06-28 11:06:20 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-07-13 11:11:40 +0200 |
commit | 734b635cf9a9316ddd05dc9d9abc0a93746fc7f3 (patch) | |
tree | 49c6736d1c0c792326dd52b7541bea361c478609 /src/core/CMakeLists.txt | |
parent | b848c87dbbc317ad7186418a64670b52777d1393 (diff) |
Adaptations for 90-based
Change-Id: I8402b044d8e12d75e144a00984b856f3de10bffd
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
(cherry picked from commit 1d988d971bc4270ba3d148e8e2c143bf8f625b6e)
Diffstat (limited to 'src/core/CMakeLists.txt')
-rw-r--r-- | src/core/CMakeLists.txt | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 7feb1ec40..2635d36cd 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -230,7 +230,6 @@ foreach(config ${configs}) printing/print_view_manager_base_qt.cpp printing/print_view_manager_base_qt.h printing/print_view_manager_qt.cpp printing/print_view_manager_qt.h printing/printer_worker.cpp printing/printer_worker.h - printing/printing_message_filter_qt.cpp printing/printing_message_filter_qt.h renderer/print_web_view_helper_delegate_qt.cpp renderer/print_web_view_helper_delegate_qt.h ) @@ -302,6 +301,19 @@ foreach(config ${configs}) elseif(${config} STREQUAL "MinSizeRel") list(APPEND gnArgArg is_debug=false symbol_level=0 optimize_for_size=true) endif() + if(FEATURE_developer_build OR (${config} STREQUAL "Debug")) + list(APPEND gnArgArg + is_official_build=false + from_here_uses_location_builtins=false + ) + else() + list(APPEND gnArgArg is_official_build=true) + if(NOT CLANG OR NOT QT_FEATURE_use_lld_linker) + list(APPEND gnArgArg + use_thin_lto=false + ) + endif() + endif() if (CMAKE_CXX_COMPILER_LAUNCHER) list(APPEND gnArgArg cc_wrapper="${CMAKE_CXX_COMPILER_LAUNCHER}") endif() @@ -334,16 +346,10 @@ foreach(config ${configs}) use_allocator="none" use_custom_libcxx=false chrome_pgo_phase=0 - enable_hangout_services_extension=false optimize_webui=false enable_js_type_check=false v8_use_external_startup_data=false strip_absolute_paths_from_debug_symbols=false - enable_precompiled_headers=false - is_official_build=false - is_unsafe_developer_build=false - from_here_uses_location_builtins=false - use_debug_fission=false blink_symbol_level=0 remove_v8base_debug_symbols=true ) @@ -364,6 +370,14 @@ foreach(config ${configs}) endif() extend_gn_list(gnArgArg + ARGS enable_precompiled_headers + CONDITION BUILD_WITH_PCH + ) + extend_gn_list(gnArgArg + ARGS is_unsafe_developer_build + CONDITION FEATURE_developer_build + ) + extend_gn_list(gnArgArg ARGS use_gold CONDITION QT_FEATURE_use_gold_linker ) @@ -388,6 +402,10 @@ foreach(config ${configs}) CONDITION QT_FEATURE_webengine_webrtc ) extend_gn_list(gnArgArg + ARGS enable_hangout_services_extension + CONDITION QT_FEATURE_webengine_webrtc AND QT_FEATURE_webengine_extensions + ) + extend_gn_list(gnArgArg ARGS rtc_use_pipewire CONDITION QT_FEATURE_webengine_webrtc_pipewire ) @@ -410,10 +428,6 @@ foreach(config ${configs}) ARGS use_browser_spellchecker CONDITION QT_FEATURE_webengine_native_spellchecker ) - extend_gn_list(gnArgArg - ARGS use_rollup - CONDITION TARGET Nodejs::Nodejs - ) if(QT_FEATURE_sanitizer) extend_gn_list(gnArgArg ARGS is_asan @@ -512,7 +526,7 @@ foreach(config ${configs}) ) extend_gn_list(gnArgArg ARGS use_xscrnsaver - CONDITION XSCRNSAVER_FOUND + CONDITION QT_FEATURE_webengine_ozone_x11 AND XSCRNSAVER_FOUND ) if(CMAKE_CROSSCOMPILING AND cpu STREQUAL "arm") @@ -577,6 +591,7 @@ foreach(config ${configs}) get_filename_component(visualStudioPath $ENV{VSINSTALLDIR} DIRECTORY) list(APPEND gnArgArg use_sysroot=false + enable_location_source=false enable_session_service=false ninja_use_custom_environment_files=false win_linker_timing=true |