summaryrefslogtreecommitdiffstats
path: root/util/cmake/configurejson2cmake.py
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-08-25 08:17:23 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-10-05 10:05:20 +0200
commitc09df7b57c1e4b25b5e20c63d2bab63d0d12dea0 (patch)
tree3057953bd7c670ef9deb012095bdc1d6d492278b /util/cmake/configurejson2cmake.py
parent313ed3d19ad41c2819265b4667bb7f28a024dd89 (diff)
CMake: Implement configure -reduce-exports
This option maps to FEATURE_reduce_exports. The feature is on by default, except for MSVC. The reduce_exports configure test is not used in the CMake build. The <LANG>_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN target properties are now explicitly initialized in the qt_set_common_target_properties function, because we don't have access to the feature in QtSetup.cmake where the CMAKE_<LANG>_VISIBILITY_PRESET variables were set before. Task-number: QTBUG-85373 Change-Id: I378453f0e0665731970016170302871e20ceb4e2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake/configurejson2cmake.py')
-rwxr-xr-xutil/cmake/configurejson2cmake.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index b0c4f61d55..d81121b98f 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -123,7 +123,6 @@ def map_tests(test: str) -> Optional[str]:
"spe": "TEST_subarch_spe",
"vsx": "TEST_subarch_vsx",
"openssl11": '(OPENSSL_VERSION VERSION_GREATER_EQUAL "1.1.0")',
- "reduce_exports": "CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY",
"libinput_axis_api": "ON",
"xlib": "X11_FOUND",
"wayland-scanner": "WaylandScanner_FOUND",
@@ -952,6 +951,9 @@ endif()""",
},
],
},
+ "reduce_exports": {
+ "condition": "NOT MSVC",
+ },
"release": None,
"release_tools": None,
"rpath": {