Update cmake strip scripts on android to work with latest NDK

This commit is contained in:
baldurk
2021-03-26 16:55:27 +00:00
parent 65e0028f64
commit 72095ff35c
3 changed files with 13 additions and 6 deletions
+2 -3
View File
@@ -607,12 +607,11 @@ if(ANDROID)
# rename output library
set_target_properties(renderdoc PROPERTIES OUTPUT_NAME "VkLayer_GLES_RenderDoc")
if(STRIP_ANDROID_LIBRARY AND CMAKE_STRIP AND RELEASE_MODE)
message(STATUS "renderdoc library will be stripped")
if(STRIP_ANDROID_LIBRARY AND ANDROID_STRIP_TOOL AND RELEASE_MODE)
add_custom_command(TARGET renderdoc POST_BUILD
COMMAND echo Stripping $<TARGET_FILE:renderdoc>
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:renderdoc> $<TARGET_FILE:renderdoc>.dbg
COMMAND ${CMAKE_STRIP} --strip-unneeded $<TARGET_FILE:renderdoc>)
COMMAND ${ANDROID_STRIP_TOOL} --strip-unneeded $<TARGET_FILE:renderdoc>)
endif()
endif()