Remove GENERATE_CPP_EXPORTS argument
The behavior that argument was enabling is the default one now. Task-number: QTBUG-90492 Change-Id: I11711d4c794f0b22169abb595b8ffad2eeb1300d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 1ef3bd05eb45d53cdcf92b933603b995283b3432) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
a4f4058d64
commit
10b48d59dd
@ -371,6 +371,7 @@ function(qt_internal_add_3rdparty_header_module target)
|
||||
INTERNAL_MODULE
|
||||
HEADER_MODULE
|
||||
NO_CONFIG_HEADER_FILE
|
||||
NO_GENERATE_CPP_EXPORTS
|
||||
EXTERNAL_HEADERS ${arg_EXTERNAL_HEADERS}
|
||||
EXTERNAL_HEADERS_DIR ${arg_EXTERNAL_HEADERS_DIR}
|
||||
)
|
||||
|
@ -16,7 +16,6 @@ macro(qt_internal_get_internal_add_module_keywords option_args single_args multi
|
||||
NO_ADDITIONAL_TARGET_INFO
|
||||
NO_GENERATE_METATYPES
|
||||
NO_HEADERSCLEAN_CHECK
|
||||
GENERATE_CPP_EXPORTS # deprecated
|
||||
NO_GENERATE_CPP_EXPORTS
|
||||
NO_UNITY_BUILD
|
||||
)
|
||||
@ -423,8 +422,7 @@ function(qt_internal_add_module target)
|
||||
# We should not generate export headers if module is defined as pure STATIC.
|
||||
# Static libraries don't need to export their symbols, and corner cases when sources are
|
||||
# also used in shared libraries, should be handled manually.
|
||||
if((NOT arg_NO_GENERATE_CPP_EXPORTS OR arg_GENERATE_CPP_EXPORTS) AND NOT arg_STATIC
|
||||
AND NOT arg_HEADER_MODULE)
|
||||
if(NOT arg_NO_GENERATE_CPP_EXPORTS AND NOT arg_STATIC AND NOT arg_HEADER_MODULE)
|
||||
if(arg_CPP_EXPORT_HEADER_BASE_NAME)
|
||||
set(cpp_export_header_base_name
|
||||
"CPP_EXPORT_HEADER_BASE_NAME;${arg_CPP_EXPORT_HEADER_BASE_NAME}"
|
||||
|
@ -37,7 +37,6 @@ qt_internal_add_module(Concurrent
|
||||
Qt::CorePrivate
|
||||
PRECOMPILED_HEADER
|
||||
"../corelib/global/qt_pch.h"
|
||||
GENERATE_CPP_EXPORTS
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
|
@ -334,7 +334,6 @@ qt_internal_add_module(Core
|
||||
WrapZLIB::WrapZLIB
|
||||
PRECOMPILED_HEADER
|
||||
"global/qt_pch.h"
|
||||
GENERATE_CPP_EXPORTS
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Platform
|
||||
EXTRA_CMAKE_FILES
|
||||
|
@ -54,7 +54,6 @@ qt_internal_add_module(DBus
|
||||
Qt::Core
|
||||
PRIVATE_MODULE_INTERFACE
|
||||
Qt::CorePrivate
|
||||
GENERATE_CPP_EXPORTS
|
||||
)
|
||||
|
||||
# This file is included by qdbusargument.cpp
|
||||
|
@ -290,7 +290,6 @@ qt_internal_add_module(Gui
|
||||
painting/qdrawhelper.cpp
|
||||
PRECOMPILED_HEADER
|
||||
"kernel/qt_gui_pch.h"
|
||||
GENERATE_CPP_EXPORTS
|
||||
QPA_HEADER_FILTERS
|
||||
"(^|/)qplatform.+\\.h$|(^|/)qwindowsystem.+\\.h$"
|
||||
RHI_HEADER_FILTERS
|
||||
|
@ -76,7 +76,6 @@ qt_internal_add_module(Network
|
||||
compat/removed_api.cpp
|
||||
PRECOMPILED_HEADER
|
||||
"../corelib/global/qt_pch.h"
|
||||
GENERATE_CPP_EXPORTS
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
|
@ -49,7 +49,6 @@ qt_internal_add_module(OpenGL
|
||||
PRIVATE_MODULE_INTERFACE
|
||||
Qt::CorePrivate
|
||||
Qt::GuiPrivate
|
||||
GENERATE_CPP_EXPORTS
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
|
@ -20,5 +20,4 @@ qt_internal_add_module(OpenGLWidgets
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::OpenGL
|
||||
Qt::Widgets
|
||||
GENERATE_CPP_EXPORTS
|
||||
)
|
||||
|
@ -39,7 +39,6 @@ qt_internal_add_module(PrintSupport
|
||||
Qt::CorePrivate
|
||||
Qt::GuiPrivate
|
||||
Qt::WidgetsPrivate
|
||||
GENERATE_CPP_EXPORTS
|
||||
QPA_HEADER_FILTERS
|
||||
"(^|/)qplatform.+\\.h$"
|
||||
)
|
||||
|
@ -37,7 +37,6 @@ qt_internal_add_module(Sql
|
||||
"compat/removed_api.cpp"
|
||||
PRECOMPILED_HEADER
|
||||
"../corelib/global/qt_pch.h"
|
||||
GENERATE_CPP_EXPORTS
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
|
@ -78,7 +78,6 @@ qt_internal_add_module(Test
|
||||
Qt::Core
|
||||
PRIVATE_MODULE_INTERFACE
|
||||
Qt::CorePrivate
|
||||
GENERATE_CPP_EXPORTS
|
||||
)
|
||||
|
||||
if(TARGET Gui)
|
||||
|
@ -71,7 +71,6 @@ qt_internal_add_module(Widgets
|
||||
"kernel/qt_widgets_pch.h"
|
||||
NO_PCH_SOURCES
|
||||
compat/removed_api.cpp
|
||||
GENERATE_CPP_EXPORTS
|
||||
)
|
||||
|
||||
qt_internal_extend_target(Widgets CONDITION APPLE
|
||||
|
@ -21,7 +21,6 @@ qt_internal_add_module(Xml
|
||||
Qt::Core
|
||||
PRIVATE_MODULE_INTERFACE
|
||||
Qt::CorePrivate
|
||||
GENERATE_CPP_EXPORTS
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
qt_internal_add_module(TestAutogeneratingCppExports
|
||||
NO_UNITY_BUILD
|
||||
GENERATE_CPP_EXPORTS
|
||||
SOURCES
|
||||
module_api.h
|
||||
module_api.cpp
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
qt_internal_add_module(TestAutogeneratingCppExportsCustomName
|
||||
NO_UNITY_BUILD
|
||||
GENERATE_CPP_EXPORTS
|
||||
CPP_EXPORT_HEADER_BASE_NAME
|
||||
"customname_exports"
|
||||
SOURCES
|
||||
|
Loading…
x
Reference in New Issue
Block a user