blob: d174575c841374870acec1d4ad97a64134f21a58 [file] [log] [blame]
Haibo Huangd00577c2020-02-28 16:35:48 -08001CMAKE_ANDROID_STL_TYPE
2----------------------
3
4When :ref:`Cross Compiling for Android with NVIDIA Nsight Tegra Visual Studio
5Edition`, this variable may be set to specify the default value for the
6:prop_tgt:`ANDROID_STL_TYPE` target property. See that target property
7for additional information.
8
9When :ref:`Cross Compiling for Android with the NDK`, this variable may be
10set to specify the STL variant to be used. The value may be one of:
11
12``none``
13 No C++ Support
14``system``
15 Minimal C++ without STL
16``gabi++_static``
17 GAbi++ Static
18``gabi++_shared``
19 GAbi++ Shared
20``gnustl_static``
21 GNU libstdc++ Static
22``gnustl_shared``
23 GNU libstdc++ Shared
24``c++_static``
25 LLVM libc++ Static
26``c++_shared``
27 LLVM libc++ Shared
28``stlport_static``
29 STLport Static
30``stlport_shared``
31 STLport Shared
32
33The default value is ``gnustl_static`` on NDK versions that provide it
34and otherwise ``c++_static``. Note that this default differs from
35the native NDK build system because CMake may be used to build projects for
36Android that are not natively implemented for it and use the C++ standard
37library.