Strip debug symbols on release for android

This commit is contained in:
altalk23 2023-10-15 19:05:08 +03:00
parent 9558afa8a9
commit f8c5e9748b

View file

@ -208,6 +208,17 @@ function(setup_geode_mod proname)
set_target_properties(${proname} PROPERTIES PREFIX "")
set_target_properties(${proname} PROPERTIES OUTPUT_NAME ${MOD_ID})
if (ANDROID)
if (CMAKE_BUILD_TYPE STREQUAL "Release")
add_custom_command(
TARGET "${PROJECT_NAME}" POST_BUILD
DEPENDS "${PROJECT_NAME}"
COMMAND $<$<CONFIG:release>:${CMAKE_STRIP}>
ARGS -S $<TARGET_FILE:${PROJECT_NAME}>
)
endif()
endif()
endfunction()
function(create_geode_file proname)