Add --build-id link parameter on android so that symbols can be loaded

* Without this android studio/lldb can't load the symbols if the lib
  inserted in an apk has been stripped.
This commit is contained in:
baldurk
2017-07-21 17:24:47 +01:00
parent 1c75ee886c
commit 5b3ffcd5b1
+4
View File
@@ -311,6 +311,10 @@ if(UNIX AND NOT ANDROID AND NOT APPLE)
set_target_properties(renderdoc PROPERTIES LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/renderdoc.version")
endif()
if(ANDROID)
set_target_properties(renderdoc PROPERTIES LINK_FLAGS "-Wl,--build-id")
endif()
install (TARGETS renderdoc DESTINATION lib${LIB_SUFFIX})
# Copy in application API header to include