mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 00:46:25 +00:00
android symbol export for release builds
This commit is contained in:
@@ -1614,6 +1614,11 @@ if(ANDROID)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
if(TARGET SDL3-shared)
|
||||||
|
target_link_options(SDL3-shared PRIVATE -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/../android-project/android.export.sym)
|
||||||
|
elseif(TARGET SDL3-static)
|
||||||
|
target_link_options(SDL3-static PRIVATE -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/../android-project/android.export.sym)
|
||||||
|
endif()
|
||||||
|
|
||||||
elseif(EMSCRIPTEN)
|
elseif(EMSCRIPTEN)
|
||||||
# Hide noisy warnings that intend to aid mostly during initial stages of porting a new
|
# Hide noisy warnings that intend to aid mostly during initial stages of porting a new
|
||||||
|
6
android-project/android.export.sym
Normal file
6
android-project/android.export.sym
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
global:
|
||||||
|
SDL_main;
|
||||||
|
JNI_OnLoad;
|
||||||
|
local: *;
|
||||||
|
};
|
Reference in New Issue
Block a user