make mbgl-core public when building amalgamation (#4043)

This commit is contained in:
Bart Louwers
2026-01-12 17:39:35 +01:00
committed by GitHub
parent 8778246864
commit cc8aa6fe74

View File

@@ -132,6 +132,13 @@ else()
add_library(mbgl-core STATIC)
endif()
# Override visibility for mbgl-core when building amalgamation
if(MLN_CREATE_AMALGAMATION)
target_compile_options(mbgl-core PRIVATE
-fvisibility=default
)
endif()
list(APPEND INCLUDE_FILES
${PROJECT_SOURCE_DIR}/include/mbgl/gfx/context.hpp
${PROJECT_SOURCE_DIR}/include/mbgl/gfx/drawable.hpp