2016-06-02 22:19:20 +03:00
|
|
|
# <ndk>/sources/cxx-stl/llvm-libc++/Android.mk
|
|
|
|
set(_ANDROID_STL_RTTI 1)
|
|
|
|
set(_ANDROID_STL_EXCEPTIONS 1)
|
|
|
|
macro(__android_stl_cxx lang filename)
|
|
|
|
# Add the include directory.
|
2016-10-06 18:50:29 +03:00
|
|
|
if(EXISTS "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++/libcxx/include/cstddef")
|
|
|
|
# r12 and below
|
|
|
|
__android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++/libcxx/include" 1)
|
2016-10-07 16:34:41 +03:00
|
|
|
__android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++abi/libcxxabi/include" 1)
|
2016-10-06 18:50:29 +03:00
|
|
|
else()
|
|
|
|
# r13 and above
|
|
|
|
__android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++/include" 1)
|
2016-10-07 16:34:41 +03:00
|
|
|
__android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++abi/include" 1)
|
2016-10-06 18:50:29 +03:00
|
|
|
endif()
|
2016-06-02 22:19:20 +03:00
|
|
|
|
|
|
|
# Add a secondary include directory if it exists.
|
|
|
|
__android_stl_inc(${lang} "${CMAKE_ANDROID_NDK}/sources/android/support/include" 0)
|
|
|
|
|
|
|
|
# Add the library file.
|
|
|
|
__android_stl_lib(${lang} "${CMAKE_ANDROID_NDK}/sources/cxx-stl/llvm-libc++/libs/${CMAKE_ANDROID_ARCH_ABI}/${filename}" 1)
|
|
|
|
endmacro()
|