Android.cmake 554 B

1234567891011121314151617
  1. include(Platform/Linux)
  2. set(ANDROID 1)
  3. # Android has soname, but binary names must end in ".so" so we cannot append
  4. # a version number. Also we cannot portably represent symlinks on the host.
  5. set(CMAKE_PLATFORM_NO_VERSIONED_SONAME 1)
  6. # Android reportedly ignores RPATH, and we cannot predict the install
  7. # location anyway.
  8. set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "")
  9. # Nsight Tegra Visual Studio Edition takes care of
  10. # prefixing library names with '-l'.
  11. if(CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android")
  12. set(CMAKE_LINK_LIBRARY_FLAG "")
  13. endif()