This is an automated email from the ASF dual-hosted git repository. pnoltes pushed a commit to branch feature/442-export-headers-bundle-libs in repository https://gitbox.apache.org/repos/asf/celix.git
commit be34f24c00789ff172a911f1ce8b7e6e9426eb83 Author: Pepijn Noltes <[email protected]> AuthorDate: Sat Jun 24 07:33:03 2023 +0200 Add hide symbols config for static bundles libs --- bundles/pubsub/pubsub_spi/CMakeLists.txt | 2 ++ bundles/pubsub/pubsub_utils/CMakeLists.txt | 1 + bundles/remote_services/rsa_common/CMakeLists.txt | 1 + bundles/remote_services/rsa_dfi_utils/CMakeLists.txt | 1 + bundles/remote_services/thpool/CMakeLists.txt | 2 +- 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bundles/pubsub/pubsub_spi/CMakeLists.txt b/bundles/pubsub/pubsub_spi/CMakeLists.txt index e3934409..b88c8f1b 100644 --- a/bundles/pubsub/pubsub_spi/CMakeLists.txt +++ b/bundles/pubsub/pubsub_spi/CMakeLists.txt @@ -31,6 +31,8 @@ target_link_libraries(pubsub_spi PUBLIC Celix::framework Celix::pubsub_api) target_link_libraries(pubsub_spi PUBLIC Celix::pubsub_utils libuuid::libuuid) celix_deprecated_utils_headers(pubsub_spi) celix_deprecated_framework_headers(pubsub_spi) +celix_target_hide_symbols(pubsub_spi) + add_library(Celix::pubsub_spi ALIAS pubsub_spi) install(TARGETS pubsub_spi EXPORT celix DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT pubsub diff --git a/bundles/pubsub/pubsub_utils/CMakeLists.txt b/bundles/pubsub/pubsub_utils/CMakeLists.txt index 91fe2523..5cf9c90f 100644 --- a/bundles/pubsub/pubsub_utils/CMakeLists.txt +++ b/bundles/pubsub/pubsub_utils/CMakeLists.txt @@ -31,6 +31,7 @@ target_link_libraries(pubsub_utils PUBLIC Celix::framework Celix::dfi Celix::pub target_link_libraries(pubsub_utils PRIVATE Celix::pubsub_spi) celix_deprecated_utils_headers(pubsub_utils) celix_deprecated_framework_headers(pubsub_utils) +celix_target_hide_symbols(pubsub_utils) add_library(Celix::pubsub_utils ALIAS pubsub_utils) diff --git a/bundles/remote_services/rsa_common/CMakeLists.txt b/bundles/remote_services/rsa_common/CMakeLists.txt index c06a02e7..2dcb5d8c 100644 --- a/bundles/remote_services/rsa_common/CMakeLists.txt +++ b/bundles/remote_services/rsa_common/CMakeLists.txt @@ -25,6 +25,7 @@ target_include_directories(rsa_common PRIVATE src) target_link_libraries(rsa_common PUBLIC Celix::framework Celix::c_rsa_spi Celix::log_helper) celix_deprecated_utils_headers(rsa_common) celix_deprecated_framework_headers(rsa_common) +celix_target_hide_symbols(rsa_common) install(TARGETS rsa_common EXPORT celix COMPONENT rsa DESTINATION ${CMAKE_INSTALL_LIBDIR}) diff --git a/bundles/remote_services/rsa_dfi_utils/CMakeLists.txt b/bundles/remote_services/rsa_dfi_utils/CMakeLists.txt index 2526c444..b45c536d 100644 --- a/bundles/remote_services/rsa_dfi_utils/CMakeLists.txt +++ b/bundles/remote_services/rsa_dfi_utils/CMakeLists.txt @@ -25,6 +25,7 @@ target_include_directories(rsa_dfi_utils PUBLIC target_include_directories(rsa_dfi_utils PRIVATE src) target_link_libraries(rsa_dfi_utils PUBLIC Celix::framework Celix::log_helper Celix::dfi) celix_deprecated_utils_headers(rsa_dfi_utils) +celix_target_hide_symbols(rsa_dfi_utils) #Setup target aliases to match external usage add_library(Celix::rsa_dfi_utils ALIAS rsa_dfi_utils) diff --git a/bundles/remote_services/thpool/CMakeLists.txt b/bundles/remote_services/thpool/CMakeLists.txt index 1465c0ff..7545fb29 100644 --- a/bundles/remote_services/thpool/CMakeLists.txt +++ b/bundles/remote_services/thpool/CMakeLists.txt @@ -18,7 +18,7 @@ add_library(thpool STATIC src/thpool.c ) - +celix_target_hide_symbols(thpool) target_include_directories(thpool PUBLIC include) add_library(Celix::thpool ALIAS thpool)
