export component symbols only when building them [ci reset]

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-08-24 23:34:39 +03:00
parent d919a849a1
commit 6625f28dbb
2 changed files with 91 additions and 13 deletions

View file

@ -30,6 +30,20 @@ set(unifdef_arguments
-UQT_NO_STANDARDPATHS -UQT_NO_STANDARDPATHS
-UQT_NO_SETTINGS -UQT_NO_SETTINGS
-UQT_NO_TEXTCODEC -UQT_NO_TEXTCODEC
# exports
-UKtCore_EXPORTS
-UKtGui_EXPORTS
-UKtSql_EXPORTS
-UKtNetwork_EXPORTS
-UKtSvg_EXPORTS
-UKtTest_EXPORTS
-UKtDeclarative_EXPORTS
-UKtXml_EXPORTS
-UKtScript_EXPORTS
-UKtScriptTools_EXPORTS
-UKtDBus_EXPORTS
-UKtUiTools_EXPORTS
-UKtDesigner_EXPORTS
) )
message(STATUS "Optimizing header in: ${headers_directory}") message(STATUS "Optimizing header in: ${headers_directory}")

View file

@ -249,19 +249,83 @@ typedef double qreal;
#define Q_DECL_HIDDEN __attribute__((visibility("hidden"))) #define Q_DECL_HIDDEN __attribute__((visibility("hidden")))
#define Q_DECL_IMPORT #define Q_DECL_IMPORT
#define Q_CORE_EXPORT Q_DECL_EXPORT #ifdef KtCore_EXPORTS
#define Q_GUI_EXPORT Q_DECL_EXPORT # define Q_CORE_EXPORT Q_DECL_EXPORT
#define Q_SQL_EXPORT Q_DECL_EXPORT #else
#define Q_NETWORK_EXPORT Q_DECL_EXPORT # define Q_CORE_EXPORT Q_DECL_IMPORT
#define Q_SVG_EXPORT Q_DECL_EXPORT #endif
#define Q_TEST_EXPORT Q_DECL_EXPORT
#define Q_DECLARATIVE_EXPORT Q_DECL_EXPORT #ifdef KtGui_EXPORTS
#define Q_XML_EXPORT Q_DECL_EXPORT # define Q_GUI_EXPORT Q_DECL_EXPORT
#define Q_SCRIPT_EXPORT Q_DECL_EXPORT #else
#define Q_SCRIPTTOOLS_EXPORT Q_DECL_EXPORT # define Q_GUI_EXPORT Q_DECL_IMPORT
#define Q_DBUS_EXPORT Q_DECL_EXPORT #endif
#define Q_UITOOLS_EXPORT Q_DECL_EXPORT
#define Q_DESIGNER_EXPORT Q_DECL_EXPORT #ifdef KtSql_EXPORTS
# define Q_SQL_EXPORT Q_DECL_EXPORT
#else
# define Q_SQL_EXPORT Q_DECL_IMPORT
#endif
#ifdef KtNetwork_EXPORTS
# define Q_NETWORK_EXPORT Q_DECL_EXPORT
#else
# define Q_NETWORK_EXPORT Q_DECL_IMPORT
#endif
#ifdef KtSvg_EXPORTS
# define Q_SVG_EXPORT Q_DECL_EXPORT
#else
# define Q_SVG_EXPORT Q_DECL_IMPORT
#endif
#ifdef KtTest_EXPORTS
# define Q_TEST_EXPORT Q_DECL_EXPORT
#else
# define Q_TEST_EXPORT Q_DECL_IMPORT
#endif
#ifdef KtDeclarative_EXPORTS
# define Q_DECLARATIVE_EXPORT Q_DECL_EXPORT
#else
# define Q_DECLARATIVE_EXPORT Q_DECL_IMPORT
#endif
#ifdef KtXml_EXPORTS
# define Q_XML_EXPORT Q_DECL_EXPORT
#else
# define Q_XML_EXPORT Q_DECL_IMPORT
#endif
#ifdef KtScript_EXPORTS
# define Q_SCRIPT_EXPORT Q_DECL_EXPORT
#else
# define Q_SCRIPT_EXPORT Q_DECL_IMPORT
#endif
#ifdef KtScriptTools_EXPORTS
# define Q_SCRIPTTOOLS_EXPORT Q_DECL_EXPORT
#else
# define Q_SCRIPTTOOLS_EXPORT Q_DECL_IMPORT
#endif
#ifdef KtDBus_EXPORTS
# define Q_DBUS_EXPORT Q_DECL_EXPORT
#else
# define Q_DBUS_EXPORT Q_DECL_IMPORT
#endif
#ifdef KtUiTools_EXPORTS
# define Q_UITOOLS_EXPORT Q_DECL_EXPORT
#else
# define Q_UITOOLS_EXPORT Q_DECL_IMPORT
#endif
#ifdef KtDesigner_EXPORTS
# define Q_DESIGNER_EXPORT Q_DECL_EXPORT
#else
# define Q_DESIGNER_EXPORT Q_DECL_IMPORT
#endif
#define Q_CORE_EXPORT_INLINE Q_CORE_EXPORT inline #define Q_CORE_EXPORT_INLINE Q_CORE_EXPORT inline
#define Q_GUI_EXPORT_INLINE Q_GUI_EXPORT inline #define Q_GUI_EXPORT_INLINE Q_GUI_EXPORT inline