diff options
author | Friedrich W. H. Kossebau <kossebau@kde.org> | 2016-12-19 15:21:20 +0100 |
---|---|---|
committer | Friedrich W. H. Kossebau <kossebau@kde.org> | 2016-12-19 19:55:12 +0100 |
commit | 957e00fe3d3230882b95e2068cce8fcef8acd6a3 (patch) | |
tree | 2ba5d972785d7b27cff2d7fd1c9954322729cc58 /toolchain | |
parent | a04ff04252817877e426032ae9eb052f7efb2340 (diff) | |
download | extra-cmake-modules-957e00fe3d3230882b95e2068cce8fcef8acd6a3.tar.gz extra-cmake-modules-957e00fe3d3230882b95e2068cce8fcef8acd6a3.tar.bz2 |
Document usage of gnustl_shared with Android toolchain
Reviewers: #frameworks, cordlandwehr, apol
Reviewed By: apol
Differential Revision: https://phabricator.kde.org/D3732
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/Android.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/toolchain/Android.cmake b/toolchain/Android.cmake index dccb79fb..3dcde854 100644 --- a/toolchain/Android.cmake +++ b/toolchain/Android.cmake @@ -154,9 +154,15 @@ set(CMAKE_SYSTEM_LIBRARY_PATH ) set(CMAKE_FIND_LIBRARY_SUFFIXES ".so") set(CMAKE_FIND_LIBRARY_PREFIXES "lib") + +# Settling hard on gnustl_shared as C++ helper runtime for now, +# given this is most similar to what is on GNU/Linux, which is what +# the average software targetted by this toolchain is built against otherwise. +# If requested by devs, the used helper runtime could be made an option later. +# Related info: https://developer.android.com/ndk/guides/cpp-support.html find_library(GNUSTL_SHARED gnustl_shared) if(NOT GNUSTL_SHARED) - message(FATAL_ERROR "you need gnustl_shared: ${CMAKE_SYSTEM_LIBRARY_PATH}") + message(FATAL_ERROR "Selected Android platform does not provide gnustl_shared: ${CMAKE_SYSTEM_LIBRARY_PATH}") endif() include_directories(SYSTEM "${CMAKE_SYSROOT}/usr/include" |