Skip to content

Commit

Permalink
Strip debug symbols on release for android
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Oct 15, 2023
1 parent 9558afa commit f8c5e97
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmake/GeodeFile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f8c5e97

Please sign in to comment.