Haibo Huang | d00577c | 2020-02-28 16:35:48 -0800 | [diff] [blame] | 1 | CMAKE_ANDROID_STL_TYPE |
| 2 | ---------------------- |
| 3 | |
| 4 | When :ref:`Cross Compiling for Android with NVIDIA Nsight Tegra Visual Studio |
| 5 | Edition`, this variable may be set to specify the default value for the |
| 6 | :prop_tgt:`ANDROID_STL_TYPE` target property. See that target property |
| 7 | for additional information. |
| 8 | |
| 9 | When :ref:`Cross Compiling for Android with the NDK`, this variable may be |
| 10 | set 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 | |
| 33 | The default value is ``gnustl_static`` on NDK versions that provide it |
| 34 | and otherwise ``c++_static``. Note that this default differs from |
| 35 | the native NDK build system because CMake may be used to build projects for |
| 36 | Android that are not natively implemented for it and use the C++ standard |
| 37 | library. |