Android.cmake 558 B

12345678910111213141516171819
  1. include(Platform/Linux)
  2. set(ANDROID 1)
  3. # Conventionally Android does not use versioned soname
  4. # But in modern versions it is acceptable
  5. if(NOT DEFINED CMAKE_PLATFORM_NO_VERSIONED_SONAME)
  6. set(CMAKE_PLATFORM_NO_VERSIONED_SONAME 1)
  7. endif()
  8. # Android reportedly ignores RPATH, and we cannot predict the install
  9. # location anyway.
  10. set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "")
  11. # Nsight Tegra Visual Studio Edition takes care of
  12. # prefixing library names with '-l'.
  13. if(CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android")
  14. set(CMAKE_LINK_LIBRARY_FLAG "")
  15. endif()