cmake-toolchains.7.rst 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  1. .. cmake-manual-description: CMake Toolchains Reference
  2. cmake-toolchains(7)
  3. *******************
  4. .. only:: html
  5. .. contents::
  6. Introduction
  7. ============
  8. CMake uses a toolchain of utilities to compile, link libraries and create
  9. archives, and other tasks to drive the build. The toolchain utilities available
  10. are determined by the languages enabled. In normal builds, CMake automatically
  11. determines the toolchain for host builds based on system introspection and
  12. defaults. In cross-compiling scenarios, a toolchain file may be specified
  13. with information about compiler and utility paths.
  14. Languages
  15. =========
  16. Languages are enabled by the :command:`project` command. Language-specific
  17. built-in variables, such as
  18. :variable:`CMAKE_CXX_COMPILER <CMAKE_<LANG>_COMPILER>`,
  19. :variable:`CMAKE_CXX_COMPILER_ID <CMAKE_<LANG>_COMPILER_ID>` etc are set by
  20. invoking the :command:`project` command. If no project command
  21. is in the top-level CMakeLists file, one will be implicitly generated. By default
  22. the enabled languages are C and CXX:
  23. .. code-block:: cmake
  24. project(C_Only C)
  25. A special value of NONE can also be used with the :command:`project` command
  26. to enable no languages:
  27. .. code-block:: cmake
  28. project(MyProject NONE)
  29. The :command:`enable_language` command can be used to enable languages after the
  30. :command:`project` command:
  31. .. code-block:: cmake
  32. enable_language(CXX)
  33. When a language is enabled, CMake finds a compiler for that language, and
  34. determines some information, such as the vendor and version of the compiler,
  35. the target architecture and bitwidth, the location of corresponding utilities
  36. etc.
  37. The :prop_gbl:`ENABLED_LANGUAGES` global property contains the languages which
  38. are currently enabled.
  39. Variables and Properties
  40. ========================
  41. Several variables relate to the language components of a toolchain which are
  42. enabled. :variable:`CMAKE_<LANG>_COMPILER` is the full path to the compiler used
  43. for ``<LANG>``. :variable:`CMAKE_<LANG>_COMPILER_ID` is the identifier used
  44. by CMake for the compiler and :variable:`CMAKE_<LANG>_COMPILER_VERSION` is the
  45. version of the compiler.
  46. The :variable:`CMAKE_<LANG>_FLAGS` variables and the configuration-specific
  47. equivalents contain flags that will be added to the compile command when
  48. compiling a file of a particular language.
  49. As the linker is invoked by the compiler driver, CMake needs a way to determine
  50. which compiler to use to invoke the linker. This is calculated by the
  51. :prop_sf:`LANGUAGE` of source files in the target, and in the case of static
  52. libraries, the language of the dependent libraries. The choice CMake makes may
  53. be overridden with the :prop_tgt:`LINKER_LANGUAGE` target property.
  54. Toolchain Features
  55. ==================
  56. CMake provides the :command:`try_compile` command and wrapper macros such as
  57. :module:`CheckCXXSourceCompiles`, :module:`CheckCXXSymbolExists` and
  58. :module:`CheckIncludeFile` to test capability and availability of various
  59. toolchain features. These APIs test the toolchain in some way and cache the
  60. result so that the test does not have to be performed again the next time
  61. CMake runs.
  62. Some toolchain features have built-in handling in CMake, and do not require
  63. compile-tests. For example, :prop_tgt:`POSITION_INDEPENDENT_CODE` allows
  64. specifying that a target should be built as position-independent code, if
  65. the compiler supports that feature. The :prop_tgt:`<LANG>_VISIBILITY_PRESET`
  66. and :prop_tgt:`VISIBILITY_INLINES_HIDDEN` target properties add flags for
  67. hidden visibility, if supported by the compiler.
  68. .. _`Cross Compiling Toolchain`:
  69. Cross Compiling
  70. ===============
  71. If :manual:`cmake(1)` is invoked with the command line parameter
  72. ``-DCMAKE_TOOLCHAIN_FILE=path/to/file``, the file will be loaded early to set
  73. values for the compilers.
  74. The :variable:`CMAKE_CROSSCOMPILING` variable is set to true when CMake is
  75. cross-compiling.
  76. Cross Compiling for Linux
  77. -------------------------
  78. A typical cross-compiling toolchain for Linux has content such
  79. as:
  80. .. code-block:: cmake
  81. set(CMAKE_SYSTEM_NAME Linux)
  82. set(CMAKE_SYSTEM_PROCESSOR arm)
  83. set(CMAKE_SYSROOT /home/devel/rasp-pi-rootfs)
  84. set(CMAKE_STAGING_PREFIX /home/devel/stage)
  85. set(tools /home/devel/gcc-4.7-linaro-rpi-gnueabihf)
  86. set(CMAKE_C_COMPILER ${tools}/bin/arm-linux-gnueabihf-gcc)
  87. set(CMAKE_CXX_COMPILER ${tools}/bin/arm-linux-gnueabihf-g++)
  88. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  89. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  90. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
  91. set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
  92. The :variable:`CMAKE_SYSTEM_NAME` is the CMake-identifier of the target platform
  93. to build for.
  94. The :variable:`CMAKE_SYSTEM_PROCESSOR` is the CMake-identifier of the target architecture
  95. to build for.
  96. The :variable:`CMAKE_SYSROOT` is optional, and may be specified if a sysroot
  97. is available.
  98. The :variable:`CMAKE_STAGING_PREFIX` is also optional. It may be used to specify
  99. a path on the host to install to. The :variable:`CMAKE_INSTALL_PREFIX` is always
  100. the runtime installation location, even when cross-compiling.
  101. The :variable:`CMAKE_<LANG>_COMPILER` variables may be set to full paths, or to
  102. names of compilers to search for in standard locations. For toolchains that
  103. do not support linking binaries without custom flags or scripts one may set
  104. the :variable:`CMAKE_TRY_COMPILE_TARGET_TYPE` variable to ``STATIC_LIBRARY``
  105. to tell CMake not to try to link executables during its checks.
  106. CMake ``find_*`` commands will look in the sysroot, and the :variable:`CMAKE_FIND_ROOT_PATH`
  107. entries by default in all cases, as well as looking in the host system root prefix.
  108. Although this can be controlled on a case-by-case basis, when cross-compiling, it
  109. can be useful to exclude looking in either the host or the target for particular
  110. artifacts. Generally, includes, libraries and packages should be found in the
  111. target system prefixes, whereas executables which must be run as part of the build
  112. should be found only on the host and not on the target. This is the purpose of
  113. the ``CMAKE_FIND_ROOT_PATH_MODE_*`` variables.
  114. .. _`Cray Cross-Compile`:
  115. Cross Compiling for the Cray Linux Environment
  116. ----------------------------------------------
  117. Cross compiling for compute nodes in the Cray Linux Environment can be done
  118. without needing a separate toolchain file. Specifying
  119. ``-DCMAKE_SYSTEM_NAME=CrayLinuxEnvironment`` on the CMake command line will
  120. ensure that the appropriate build settings and search paths are configured.
  121. The platform will pull its configuration from the current environment
  122. variables and will configure a project to use the compiler wrappers from the
  123. Cray Programming Environment's ``PrgEnv-*`` modules if present and loaded.
  124. The default configuration of the Cray Programming Environment is to only
  125. support static libraries. This can be overridden and shared libraries
  126. enabled by setting the ``CRAYPE_LINK_TYPE`` environment variable to
  127. ``dynamic``.
  128. Running CMake without specifying :variable:`CMAKE_SYSTEM_NAME` will
  129. run the configure step in host mode assuming a standard Linux environment.
  130. If not overridden, the ``PrgEnv-*`` compiler wrappers will end up getting used,
  131. which if targeting the either the login node or compute node, is likely not the
  132. desired behavior. The exception to this would be if you are building directly
  133. on a NID instead of cross-compiling from a login node. If trying to build
  134. software for a login node, you will need to either first unload the
  135. currently loaded ``PrgEnv-*`` module or explicitly tell CMake to use the
  136. system compilers in ``/usr/bin`` instead of the Cray wrappers. If instead
  137. targeting a compute node is desired, just specify the
  138. :variable:`CMAKE_SYSTEM_NAME` as mentioned above.
  139. Cross Compiling using Clang
  140. ---------------------------
  141. Some compilers such as Clang are inherently cross compilers.
  142. The :variable:`CMAKE_<LANG>_COMPILER_TARGET` can be set to pass a
  143. value to those supported compilers when compiling:
  144. .. code-block:: cmake
  145. set(CMAKE_SYSTEM_NAME Linux)
  146. set(CMAKE_SYSTEM_PROCESSOR arm)
  147. set(triple arm-linux-gnueabihf)
  148. set(CMAKE_C_COMPILER clang)
  149. set(CMAKE_C_COMPILER_TARGET ${triple})
  150. set(CMAKE_CXX_COMPILER clang++)
  151. set(CMAKE_CXX_COMPILER_TARGET ${triple})
  152. Similarly, some compilers do not ship their own supplementary utilities
  153. such as linkers, but provide a way to specify the location of the external
  154. toolchain which will be used by the compiler driver. The
  155. :variable:`CMAKE_<LANG>_COMPILER_EXTERNAL_TOOLCHAIN` variable can be set in a
  156. toolchain file to pass the path to the compiler driver.
  157. Cross Compiling for QNX
  158. -----------------------
  159. As the Clang compiler the QNX QCC compile is inherently a cross compiler.
  160. And the :variable:`CMAKE_<LANG>_COMPILER_TARGET` can be set to pass a
  161. value to those supported compilers when compiling:
  162. .. code-block:: cmake
  163. set(CMAKE_SYSTEM_NAME QNX)
  164. set(arch gcc_ntoarmv7le)
  165. set(CMAKE_C_COMPILER qcc)
  166. set(CMAKE_C_COMPILER_TARGET ${arch})
  167. set(CMAKE_CXX_COMPILER QCC)
  168. set(CMAKE_CXX_COMPILER_TARGET ${arch})
  169. Cross Compiling for Windows CE
  170. ------------------------------
  171. Cross compiling for Windows CE requires the corresponding SDK being
  172. installed on your system. These SDKs are usually installed under
  173. ``C:/Program Files (x86)/Windows CE Tools/SDKs``.
  174. A toolchain file to configure a Visual Studio generator for
  175. Windows CE may look like this:
  176. .. code-block:: cmake
  177. set(CMAKE_SYSTEM_NAME WindowsCE)
  178. set(CMAKE_SYSTEM_VERSION 8.0)
  179. set(CMAKE_SYSTEM_PROCESSOR arm)
  180. set(CMAKE_GENERATOR_TOOLSET CE800) # Can be omitted for 8.0
  181. set(CMAKE_GENERATOR_PLATFORM SDK_AM335X_SK_WEC2013_V310)
  182. The :variable:`CMAKE_GENERATOR_PLATFORM` tells the generator which SDK to use.
  183. Further :variable:`CMAKE_SYSTEM_VERSION` tells the generator what version of
  184. Windows CE to use. Currently version 8.0 (Windows Embedded Compact 2013) is
  185. supported out of the box. Other versions may require one to set
  186. :variable:`CMAKE_GENERATOR_TOOLSET` to the correct value.
  187. Cross Compiling for Windows 10 Universal Applications
  188. -----------------------------------------------------
  189. A toolchain file to configure a Visual Studio generator for a
  190. Windows 10 Universal Application may look like this:
  191. .. code-block:: cmake
  192. set(CMAKE_SYSTEM_NAME WindowsStore)
  193. set(CMAKE_SYSTEM_VERSION 10.0)
  194. A Windows 10 Universal Application targets both Windows Store and
  195. Windows Phone. Specify the :variable:`CMAKE_SYSTEM_VERSION` variable
  196. to be ``10.0`` to build with the latest available Windows 10 SDK.
  197. Specify a more specific version (e.g. ``10.0.10240.0`` for RTM)
  198. to build with the corresponding SDK.
  199. Cross Compiling for Windows Phone
  200. ---------------------------------
  201. A toolchain file to configure a Visual Studio generator for
  202. Windows Phone may look like this:
  203. .. code-block:: cmake
  204. set(CMAKE_SYSTEM_NAME WindowsPhone)
  205. set(CMAKE_SYSTEM_VERSION 8.1)
  206. Cross Compiling for Windows Store
  207. ---------------------------------
  208. A toolchain file to configure a Visual Studio generator for
  209. Windows Store may look like this:
  210. .. code-block:: cmake
  211. set(CMAKE_SYSTEM_NAME WindowsStore)
  212. set(CMAKE_SYSTEM_VERSION 8.1)
  213. .. _`Cross Compiling for Android`:
  214. Cross Compiling for Android
  215. ---------------------------
  216. A toolchain file may configure cross-compiling for Android by setting the
  217. :variable:`CMAKE_SYSTEM_NAME` variable to ``Android``. Further configuration
  218. is specific to the Android development environment to be used.
  219. For :ref:`Visual Studio Generators`, CMake expects :ref:`NVIDIA Nsight Tegra
  220. Visual Studio Edition <Cross Compiling for Android with NVIDIA Nsight Tegra
  221. Visual Studio Edition>` to be installed. See that section for further
  222. configuration details.
  223. For :ref:`Makefile Generators` and the :generator:`Ninja` generator,
  224. CMake expects one of these environments:
  225. * :ref:`NDK <Cross Compiling for Android with the NDK>`
  226. * :ref:`Standalone Toolchain <Cross Compiling for Android with a Standalone Toolchain>`
  227. CMake uses the following steps to select one of the environments:
  228. * If the :variable:`CMAKE_ANDROID_NDK` variable is set, the NDK at the
  229. specified location will be used.
  230. * Else, if the :variable:`CMAKE_ANDROID_STANDALONE_TOOLCHAIN` variable
  231. is set, the Standalone Toolchain at the specified location will be used.
  232. * Else, if the :variable:`CMAKE_SYSROOT` variable is set to a directory
  233. of the form ``<ndk>/platforms/android-<api>/arch-<arch>``, the ``<ndk>``
  234. part will be used as the value of :variable:`CMAKE_ANDROID_NDK` and the
  235. NDK will be used.
  236. * Else, if the :variable:`CMAKE_SYSROOT` variable is set to a directory of the
  237. form ``<standalone-toolchain>/sysroot``, the ``<standalone-toolchain>`` part
  238. will be used as the value of :variable:`CMAKE_ANDROID_STANDALONE_TOOLCHAIN`
  239. and the Standalone Toolchain will be used.
  240. * Else, if a cmake variable ``ANDROID_NDK`` is set it will be used
  241. as the value of :variable:`CMAKE_ANDROID_NDK`, and the NDK will be used.
  242. * Else, if a cmake variable ``ANDROID_STANDALONE_TOOLCHAIN`` is set, it will be
  243. used as the value of :variable:`CMAKE_ANDROID_STANDALONE_TOOLCHAIN`, and the
  244. Standalone Toolchain will be used.
  245. * Else, if an environment variable ``ANDROID_NDK_ROOT`` or
  246. ``ANDROID_NDK`` is set, it will be used as the value of
  247. :variable:`CMAKE_ANDROID_NDK`, and the NDK will be used.
  248. * Else, if an environment variable ``ANDROID_STANDALONE_TOOLCHAIN`` is
  249. set then it will be used as the value of
  250. :variable:`CMAKE_ANDROID_STANDALONE_TOOLCHAIN`, and the Standalone
  251. Toolchain will be used.
  252. * Else, an error diagnostic will be issued that neither the NDK or
  253. Standalone Toolchain can be found.
  254. .. _`Cross Compiling for Android with the NDK`:
  255. Cross Compiling for Android with the NDK
  256. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  257. A toolchain file may configure :ref:`Makefile Generators` or the
  258. :generator:`Ninja` generator to target Android for cross-compiling.
  259. Configure use of an Android NDK with the following variables:
  260. :variable:`CMAKE_SYSTEM_NAME`
  261. Set to ``Android``. Must be specified to enable cross compiling
  262. for Android.
  263. :variable:`CMAKE_SYSTEM_VERSION`
  264. Set to the Android API level. If not specified, the value is
  265. determined as follows:
  266. * If the :variable:`CMAKE_ANDROID_API` variable is set, its value
  267. is used as the API level.
  268. * If the :variable:`CMAKE_SYSROOT` variable is set, the API level is
  269. detected from the NDK directory structure containing the sysroot.
  270. * Otherwise, the latest API level available in the NDK is used.
  271. :variable:`CMAKE_ANDROID_ARCH_ABI`
  272. Set to the Android ABI (architecture). If not specified, this
  273. variable will default to ``armeabi``.
  274. The :variable:`CMAKE_ANDROID_ARCH` variable will be computed
  275. from ``CMAKE_ANDROID_ARCH_ABI`` automatically.
  276. Also see the :variable:`CMAKE_ANDROID_ARM_MODE` and
  277. :variable:`CMAKE_ANDROID_ARM_NEON` variables.
  278. :variable:`CMAKE_ANDROID_NDK`
  279. Set to the absolute path to the Android NDK root directory.
  280. A ``${CMAKE_ANDROID_NDK}/platforms`` directory must exist.
  281. If not specified, a default for this variable will be chosen
  282. as specified :ref:`above <Cross Compiling for Android>`.
  283. :variable:`CMAKE_ANDROID_NDK_DEPRECATED_HEADERS`
  284. Set to a true value to use the deprecated per-api-level headers
  285. instead of the unified headers. If not specified, the default will
  286. be false unless using a NDK that does not provide unified headers.
  287. :variable:`CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION`
  288. Set to the version of the NDK toolchain to be selected as the compiler.
  289. If not specified, the default will be the latest available GCC toolchain.
  290. :variable:`CMAKE_ANDROID_STL_TYPE`
  291. Set to specify which C++ standard library to use. If not specified,
  292. a default will be selected as described in the variable documentation.
  293. The following variables will be computed and provided automatically:
  294. :variable:`CMAKE_<LANG>_ANDROID_TOOLCHAIN_PREFIX`
  295. The absolute path prefix to the binutils in the NDK toolchain.
  296. :variable:`CMAKE_<LANG>_ANDROID_TOOLCHAIN_SUFFIX`
  297. The host platform suffix of the binutils in the NDK toolchain.
  298. For example, a toolchain file might contain:
  299. .. code-block:: cmake
  300. set(CMAKE_SYSTEM_NAME Android)
  301. set(CMAKE_SYSTEM_VERSION 21) # API level
  302. set(CMAKE_ANDROID_ARCH_ABI arm64-v8a)
  303. set(CMAKE_ANDROID_NDK /path/to/android-ndk)
  304. set(CMAKE_ANDROID_STL_TYPE gnustl_static)
  305. Alternatively one may specify the values without a toolchain file:
  306. .. code-block:: console
  307. $ cmake ../src \
  308. -DCMAKE_SYSTEM_NAME=Android \
  309. -DCMAKE_SYSTEM_VERSION=21 \
  310. -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
  311. -DCMAKE_ANDROID_NDK=/path/to/android-ndk \
  312. -DCMAKE_ANDROID_STL_TYPE=gnustl_static
  313. .. _`Cross Compiling for Android with a Standalone Toolchain`:
  314. Cross Compiling for Android with a Standalone Toolchain
  315. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  316. A toolchain file may configure :ref:`Makefile Generators` or the
  317. :generator:`Ninja` generator to target Android for cross-compiling
  318. using a standalone toolchain.
  319. Configure use of an Android standalone toolchain with the following variables:
  320. :variable:`CMAKE_SYSTEM_NAME`
  321. Set to ``Android``. Must be specified to enable cross compiling
  322. for Android.
  323. :variable:`CMAKE_ANDROID_STANDALONE_TOOLCHAIN`
  324. Set to the absolute path to the standalone toolchain root directory.
  325. A ``${CMAKE_ANDROID_STANDALONE_TOOLCHAIN}/sysroot`` directory
  326. must exist.
  327. If not specified, a default for this variable will be chosen
  328. as specified :ref:`above <Cross Compiling for Android>`.
  329. :variable:`CMAKE_ANDROID_ARM_MODE`
  330. When the standalone toolchain targets ARM, optionally set this to ``ON``
  331. to target 32-bit ARM instead of 16-bit Thumb.
  332. See variable documentation for details.
  333. :variable:`CMAKE_ANDROID_ARM_NEON`
  334. When the standalone toolchain targets ARM v7, optionally set thisto ``ON``
  335. to target ARM NEON devices. See variable documentation for details.
  336. The following variables will be computed and provided automatically:
  337. :variable:`CMAKE_SYSTEM_VERSION`
  338. The Android API level detected from the standalone toolchain.
  339. :variable:`CMAKE_ANDROID_ARCH_ABI`
  340. The Android ABI detected from the standalone toolchain.
  341. :variable:`CMAKE_<LANG>_ANDROID_TOOLCHAIN_PREFIX`
  342. The absolute path prefix to the binutils in the standalone toolchain.
  343. :variable:`CMAKE_<LANG>_ANDROID_TOOLCHAIN_SUFFIX`
  344. The host platform suffix of the binutils in the standalone toolchain.
  345. For example, a toolchain file might contain:
  346. .. code-block:: cmake
  347. set(CMAKE_SYSTEM_NAME Android)
  348. set(CMAKE_ANDROID_STANDALONE_TOOLCHAIN /path/to/android-toolchain)
  349. Alternatively one may specify the values without a toolchain file:
  350. .. code-block:: console
  351. $ cmake ../src \
  352. -DCMAKE_SYSTEM_NAME=Android \
  353. -DCMAKE_ANDROID_STANDALONE_TOOLCHAIN=/path/to/android-toolchain
  354. .. _`Cross Compiling for Android with NVIDIA Nsight Tegra Visual Studio Edition`:
  355. Cross Compiling for Android with NVIDIA Nsight Tegra Visual Studio Edition
  356. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  357. A toolchain file to configure one of the :ref:`Visual Studio Generators`
  358. to build using NVIDIA Nsight Tegra targeting Android may look like this:
  359. .. code-block:: cmake
  360. set(CMAKE_SYSTEM_NAME Android)
  361. The :variable:`CMAKE_GENERATOR_TOOLSET` may be set to select
  362. the Nsight Tegra "Toolchain Version" value.
  363. See also target properties:
  364. * :prop_tgt:`ANDROID_ANT_ADDITIONAL_OPTIONS`
  365. * :prop_tgt:`ANDROID_API_MIN`
  366. * :prop_tgt:`ANDROID_API`
  367. * :prop_tgt:`ANDROID_ARCH`
  368. * :prop_tgt:`ANDROID_ASSETS_DIRECTORIES`
  369. * :prop_tgt:`ANDROID_GUI`
  370. * :prop_tgt:`ANDROID_JAR_DEPENDENCIES`
  371. * :prop_tgt:`ANDROID_JAR_DIRECTORIES`
  372. * :prop_tgt:`ANDROID_JAVA_SOURCE_DIR`
  373. * :prop_tgt:`ANDROID_NATIVE_LIB_DEPENDENCIES`
  374. * :prop_tgt:`ANDROID_NATIVE_LIB_DIRECTORIES`
  375. * :prop_tgt:`ANDROID_PROCESS_MAX`
  376. * :prop_tgt:`ANDROID_PROGUARD_CONFIG_PATH`
  377. * :prop_tgt:`ANDROID_PROGUARD`
  378. * :prop_tgt:`ANDROID_SECURE_PROPS_PATH`
  379. * :prop_tgt:`ANDROID_SKIP_ANT_STEP`
  380. * :prop_tgt:`ANDROID_STL_TYPE`