Skip to content

Commit

Permalink
build: List soname for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Jun 10, 2024
1 parent 28c0a5d commit 9880a62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ else()
target_link_options(vvl PRIVATE LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/${LAYER_NAME}.map)
endif()

if(ANDROID)
# See https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/7385#issuecomment-2155788105
target_link_options(vvl PRIVATE -Wl,-soname=libVkLayer_khronos_validation.so)
endif()

target_compile_options(vvl PRIVATE "$<IF:$<CXX_COMPILER_ID:MSVC>,/wd4100,-Wno-unused-parameter>")

if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Expand Down

0 comments on commit 9880a62

Please sign in to comment.