Lines Matching full:set

54 #   $ SET ANDROID_NDK=C:\absolute\path\to\the\android-ndk
62 # Options (can be set as cmake parameters: -D<option_name>=<value>):
64 # Can be set as environment variable. Can be set only at first cmake run.
68 # (ignored if ANDROID_NDK is set).
69 # Can be set as environment variable. Can be set only at first cmake run.
84 # "x86" - IA-32 instruction set
85 # "mips" - MIPS32 instruction set
88 # "arm64-v8a" - ARMv8 AArch64 instruction set
89 # "x86_64" - Intel64 instruction set (r1)
90 # "mips64" - MIPS64 instruction set (r6)
125 # ANDROID_FORCE_ARM_BUILD=OFF - set ON to generate 32-bit ARM instructions
129 # ANDROID_NO_UNDEFINED=ON - set ON to show all undefined symbols as linker
132 # ANDROID_SO_UNDEFINED=OFF - set ON to allow undefined symbols in shared
139 # ANDROID_SET_OBSOLETE_VARIABLES=ON - if set, then toolchain defines some
190 # SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${my_cxx_flags}" )
191 # SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${my_cxx_flags}" )
196 # ANDROID and BUILD_ANDROID will be set to true, you may test any of these
200 # will be set true, mutually exclusive. NEON option will be set true
201 # if VFP is set to NEON.
203 # LIBRARY_OUTPUT_PATH_ROOT should be set in cache to determine where Android
230 set( CMAKE_SYSTEM_NAME Android )
232 set( CMAKE_SYSTEM_NAME Linux )
236 set( CMAKE_SYSTEM_VERSION 1 )
239 set( CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "" )
240 set( CMAKE_SKIP_RPATH TRUE CACHE BOOL "If set, runtime paths are not added when using shared librar…
243 set( ANDROID_SUPPORTED_NDK_VERSIONS ${ANDROID_EXTRA_NDK_VERSIONS} -r10d -r10c -r10b -r10 -r9d -r9c …
247set( ANDROID_NDK_SEARCH_PATHS "${ANDROID_NDK_SEARCH_PATHS}/android-ndk" "$ENV{SystemDrive}/NVPACK/…
250 set( ANDROID_NDK_SEARCH_PATHS /opt/android-ndk "${ANDROID_NDK_SEARCH_PATHS}/NVPACK/android-ndk" )
254 set( ANDROID_STANDALONE_TOOLCHAIN_SEARCH_PATH /opt/android-toolchain )
258 set( ANDROID_SUPPORTED_ABIS_arm "armeabi-v7a;armeabi;armeabi-v7a with NEON;armeabi-v7a with VFPV3;a…
259 set( ANDROID_SUPPORTED_ABIS_arm64 "arm64-v8a" )
260 set( ANDROID_SUPPORTED_ABIS_x86 "x86" )
261 set( ANDROID_SUPPORTED_ABIS_x86_64 "x86_64" )
262 set( ANDROID_SUPPORTED_ABIS_mips "mips" )
263 set( ANDROID_SUPPORTED_ABIS_mips64 "mips64" )
266 set( ANDROID_DEFAULT_NDK_API_LEVEL 8 )
267 set( ANDROID_DEFAULT_NDK_API_LEVEL_arm64 21 )
268 set( ANDROID_DEFAULT_NDK_API_LEVEL_x86 9 )
269 set( ANDROID_DEFAULT_NDK_API_LEVEL_x86_64 21 )
270 set( ANDROID_DEFAULT_NDK_API_LEVEL_mips 9 )
271 set( ANDROID_DEFAULT_NDK_API_LEVEL_mips64 21 )
285 set( __test_path 0 )
288 set( __test_path 1 )
296 set( __values 0 )
299 set( __values 1 )
301 set( __obsolete 0 )
304 set( __obsolete 1 )
308 set( __value "$ENV{${__var}}" )
310 set( __value "${${__var}}" )
313 set( __value "${__var}" )
315 set( __value "" )
328 set( ${var_name} "${__value}" )
347 SET( __ndkApiLevelRegex "^[\t ]*#define[\t ]+__ANDROID_API__[\t ]+([0-9]+)[\t ]*.*$" )
364 set( ${_var} "" )
373 set( ${_var} "" )
379 set( ANDROID_FORBID_SYGWIN TRUE CACHE BOOL "Prevent cmake from working under cygwin and using cygwi…
383 …make toolchain will work under cygwin. But if you want to try then you can set cmake variable ANDR…
388 set( __new_path "$ENV{PATH}")
390 set(ENV{PATH} "${__new_path}")
398 set( ANDROID_NDK_HOST_X64 1 CACHE BOOL "Try to use 64-bit compiler toolchain" )
402 set( TOOL_OS_SUFFIX "" )
404 set( ANDROID_NDK_HOST_SYSTEM_NAME "darwin-x86_64" )
405 set( ANDROID_NDK_HOST_SYSTEM_NAME2 "darwin-x86" )
407 set( ANDROID_NDK_HOST_SYSTEM_NAME "windows-x86_64" )
408 set( ANDROID_NDK_HOST_SYSTEM_NAME2 "windows" )
409 set( TOOL_OS_SUFFIX ".exe" )
411 set( ANDROID_NDK_HOST_SYSTEM_NAME "linux-x86_64" )
412 set( ANDROID_NDK_HOST_SYSTEM_NAME2 "linux-x86" )
418 set( ANDROID_NDK_HOST_SYSTEM_NAME ${ANDROID_NDK_HOST_SYSTEM_NAME2} )
429 set( __ndkSearchPaths )
456 set( ANDROID_NDK "${ANDROID_NDK}" CACHE INTERNAL "Path of the Android NDK" FORCE )
457 set( BUILD_WITH_ANDROID_NDK True )
462 set( ANDROID_NDK_RELEASE "r1x" )
463 set( ANDROID_NDK_RELEASE_FULL "unreleased" )
480set( ANDROID_STANDALONE_TOOLCHAIN "${ANDROID_STANDALONE_TOOLCHAIN}" CACHE INTERNAL "Path of the An…
481 set( BUILD_WITH_STANDALONE_TOOLCHAIN True )
485 You should either set an environment variable:
499 set( ANDROID_NDK_LAYOUT "RELEASE" )
501 set( ANDROID_NDK_LAYOUT "LINARO" )
503 set( ANDROID_NDK_LAYOUT "ANDROID" )
506 set( ANDROID_NDK_LAYOUT "${ANDROID_NDK_LAYOUT}" CACHE STRING "The inner layout of NDK" )
509 set( ANDROID_NDK_HOST_SYSTEM_NAME ${ANDROID_NDK_HOST_SYSTEM_NAME2} ) # only 32-bit at the moment
510set( ANDROID_NDK_TOOLCHAINS_PATH "${ANDROID_NDK}/../../${ANDROID_NDK_HOST_SYSTEM_NAME}/toolchain" )
511 set( ANDROID_NDK_TOOLCHAINS_SUBPATH "" )
512 set( ANDROID_NDK_TOOLCHAINS_SUBPATH2 "" )
514 set( ANDROID_NDK_HOST_SYSTEM_NAME ${ANDROID_NDK_HOST_SYSTEM_NAME2} ) # only 32-bit at the moment
515 set( ANDROID_NDK_TOOLCHAINS_PATH "${ANDROID_NDK}/../../gcc/${ANDROID_NDK_HOST_SYSTEM_NAME}/arm" )
516 set( ANDROID_NDK_TOOLCHAINS_SUBPATH "" )
517 set( ANDROID_NDK_TOOLCHAINS_SUBPATH2 "" )
519 set( ANDROID_NDK_TOOLCHAINS_PATH "${ANDROID_NDK}/toolchains" )
520 set( ANDROID_NDK_TOOLCHAINS_SUBPATH "/prebuilt/${ANDROID_NDK_HOST_SYSTEM_NAME}" )
521 set( ANDROID_NDK_TOOLCHAINS_SUBPATH2 "/prebuilt/${ANDROID_NDK_HOST_SYSTEM_NAME2}" )
542 set( ANDROID_STANDALONE_TOOLCHAIN_API_LEVEL ${ANDROID_SUPPORTED_NATIVE_API_LEVELS} )
543 set( __availableToolchains "standalone" )
549 set( __availableToolchainArchs "x86_64" )
551 set( __availableToolchainArchs "x86" )
553 set( __availableToolchainArchs "arm64" )
555 set( __availableToolchainArchs "arm" )
557 set( __availableToolchainArchs "mips64" )
559 set( __availableToolchainArchs "mips" )
575 SET( __toolchainVersionRegex "^TOOLCHAIN_VERSION[\t ]+:=[\t ]+(.*)$" )
586 set( __gcc_toolchain "${__toolchain}" )
592 set( __arch "x86_64" )
594 set( __arch "x86" )
596 set( __arch "arm64" )
598 set( __arch "arm" )
600 set( __arch "mips64" )
602 set( __arch "mips" )
604 set( __arch "" )
622 set( __availableToolchains "" )
623 set( __availableToolchainMachines "" )
624 set( __availableToolchainArchs "" )
625 set( __availableToolchainCompilerVersions "" )
628 set( __availableToolchainsLst "${ANDROID_TOOLCHAIN_NAME}" )
633 set( ANDROID_NDK_TOOLCHAINS_SUBPATH ${ANDROID_NDK_TOOLCHAINS_SUBPATH2} )
649 set( ANDROID_NDK_TOOLCHAINS_SUBPATH ${ANDROID_NDK_TOOLCHAINS_SUBPATH2} )
659 set( ANDROID_SUPPORTED_ABIS "" )
660 set( __uniqToolchainArchNames ${__availableToolchainArchs} )
683 # set target ABI options
685 set( X86 true )
686 set( ANDROID_NDK_ABI_NAME "x86" )
687 set( ANDROID_ARCH_NAME "x86" )
688 set( ANDROID_LLVM_TRIPLE "i686-none-linux-android" )
689 set( CMAKE_SYSTEM_PROCESSOR "i686" )
691 set( X86 true )
692 set( X86_64 true )
693 set( ANDROID_NDK_ABI_NAME "x86_64" )
694 set( ANDROID_ARCH_NAME "x86_64" )
695 set( CMAKE_SYSTEM_PROCESSOR "x86_64" )
696 set( ANDROID_LLVM_TRIPLE "x86_64-none-linux-android" )
698 set( MIPS64 true )
699 set( ANDROID_NDK_ABI_NAME "mips64" )
700 set( ANDROID_ARCH_NAME "mips64" )
701 set( ANDROID_LLVM_TRIPLE "mips64el-none-linux-android" )
702 set( CMAKE_SYSTEM_PROCESSOR "mips64" )
704 set( MIPS true )
705 set( ANDROID_NDK_ABI_NAME "mips" )
706 set( ANDROID_ARCH_NAME "mips" )
707 set( ANDROID_LLVM_TRIPLE "mipsel-none-linux-android" )
708 set( CMAKE_SYSTEM_PROCESSOR "mips" )
710 set( ARM64_V8A true )
711 set( ANDROID_NDK_ABI_NAME "arm64-v8a" )
712 set( ANDROID_ARCH_NAME "arm64" )
713 set( ANDROID_LLVM_TRIPLE "aarch64-none-linux-android" )
714 set( CMAKE_SYSTEM_PROCESSOR "aarch64" )
715 set( VFPV3 true )
716 set( NEON true )
718 set( ARMEABI true )
719 set( ANDROID_NDK_ABI_NAME "armeabi" )
720 set( ANDROID_ARCH_NAME "arm" )
721 set( ANDROID_LLVM_TRIPLE "armv5te-none-linux-androideabi" )
722 set( CMAKE_SYSTEM_PROCESSOR "armv5te" )
724 set( ARMEABI_V6 true )
725 set( ANDROID_NDK_ABI_NAME "armeabi" )
726 set( ANDROID_ARCH_NAME "arm" )
727 set( ANDROID_LLVM_TRIPLE "armv5te-none-linux-androideabi" )
728 set( CMAKE_SYSTEM_PROCESSOR "armv6" )
730 set( ARMEABI true )
732 set( ARMEABI_V7A true )
733 set( ANDROID_NDK_ABI_NAME "armeabi-v7a" )
734 set( ANDROID_ARCH_NAME "arm" )
735 set( ANDROID_LLVM_TRIPLE "armv7-none-linux-androideabi" )
736 set( CMAKE_SYSTEM_PROCESSOR "armv7-a" )
738 set( ARMEABI_V7A true )
739 set( ANDROID_NDK_ABI_NAME "armeabi-v7a" )
740 set( ANDROID_ARCH_NAME "arm" )
741 set( ANDROID_LLVM_TRIPLE "armv7-none-linux-androideabi" )
742 set( CMAKE_SYSTEM_PROCESSOR "armv7-a" )
743 set( VFPV3 true )
745 set( ARMEABI_V7A true )
746 set( ANDROID_NDK_ABI_NAME "armeabi-v7a" )
747 set( ANDROID_ARCH_NAME "arm" )
748 set( ANDROID_LLVM_TRIPLE "armv7-none-linux-androideabi" )
749 set( CMAKE_SYSTEM_PROCESSOR "armv7-a" )
750 set( VFPV3 true )
751 set( NEON true )
759 …file( APPEND "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeSystem.cmake" "SET(CMAKE_SYSTEM_PRO…
764set( ANDROID_FORCE_ARM_BUILD ${ANDROID_FORCE_ARM_BUILD} CACHE BOOL "Use 32-bit ARM instructions in…
776 set( toolchains_list " * ${toolchains_list}")
778 To configure the toolchain set CMake variable ANDROID_TOOLCHAIN_NAME to one of the following values…
785 set( __toolchainIdx -1 )
786 set( __applicableToolchains "" )
787 set( __toolchainMaxVersion "0.0.0" )
796 set( __toolchainMaxVersion "${__toolchainVersion}" )
797 set( __toolchainIdx ${__idx} )
824 set( __real_api_level ${ANDROID_DEFAULT_NDK_API_LEVEL_${ANDROID_ARCH_NAME}} )
827 set( __real_api_level ${__level} )
832 set( ANDROID_NATIVE_API_LEVEL ${__real_api_level} )
847set( ANDROID_NATIVE_API_LEVEL "${ANDROID_NATIVE_API_LEVEL}" CACHE STRING "Android API level for na…
857 set( ANDROID_ABI "${ANDROID_ABI}" CACHE STRING "The target ABI for Android. If arm, then armeabi-v7…
869 set( ANDROID_STL stlport_static )
874 set( ANDROID_STL gnustl_static )
877 set( ANDROID_STL "${ANDROID_STL}" CACHE STRING "C++ runtime" )
878 set( ANDROID_STL_FORCE_FEATURES ON CACHE BOOL "automatically configure rtti and exceptions support …
883 message( FATAL_ERROR "ANDROID_STL is set to invalid value \"${ANDROID_STL}\".
898 message( FATAL_ERROR "ANDROID_STL is set to invalid value \"${ANDROID_STL}\".
943 set( ANDROID_TOOLCHAIN_ROOT "${ANDROID_STANDALONE_TOOLCHAIN}" )
944 set( ANDROID_CLANG_TOOLCHAIN_ROOT "${ANDROID_STANDALONE_TOOLCHAIN}" )
945 set( ANDROID_SYSROOT "${ANDROID_STANDALONE_TOOLCHAIN}/sysroot" )
948set( ANDROID_STL_INCLUDE_DIRS "${ANDROID_STANDALONE_TOOLCHAIN}/include/c++/${ANDROID_COMPILER_VERS…
951set( ANDROID_STL_INCLUDE_DIRS "${ANDROID_STANDALONE_TOOLCHAIN}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/i…
962set( __libstl "${ANDROID_STANDALONE_TOOLCHAIN}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib/${CMAKE_SYSTE…
964set( __libstl "${ANDROID_STANDALONE_TOOLCHAIN}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib/${CMAKE_SYSTE…
966 set( __libstl "${ANDROID_STANDALONE_TOOLCHAIN}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib/thumb" )
968 set( __libstl "${ANDROID_STANDALONE_TOOLCHAIN}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib" )
971 set( __libsupcxx "${__libstl}/libsupc++.a" )
972 set( __libstl "${__libstl}/libstdc++.a" )
985set( __libstl "${ANDROID_STANDALONE_TOOLCHAIN}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib/${CMAKE_SYSTE…
987set( __libstl "${ANDROID_STANDALONE_TOOLCHAIN}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib/thumb/libgnus…
989set( __libstl "${ANDROID_STANDALONE_TOOLCHAIN}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib/libgnustl_sha…
997 set( ANDROID_COMPILER_IS_CLANG 1 )
1006 set( ANDROID_COMPILER_IS_CLANG 1 )
1007set( ANDROID_CLANG_TOOLCHAIN_ROOT "${ANDROID_NDK_TOOLCHAINS_PATH}/llvm-${ANDROID_CLANG_VERSION}${A…
1009 set( ANDROID_GCC_TOOLCHAIN_NAME "${ANDROID_TOOLCHAIN_NAME}" )
1015 set( _clang_name "clang" )
1021set( ANDROID_TOOLCHAIN_ROOT "${ANDROID_NDK_TOOLCHAINS_PATH}/${ANDROID_GCC_TOOLCHAIN_NAME}${ANDROID…
1022set( ANDROID_SYSROOT "${ANDROID_NDK}/platforms/android-${ANDROID_NATIVE_API_LEVEL}/arch-${ANDROID_…
1027 set( ANDROID_RTTI OFF )
1028 set( ANDROID_EXCEPTIONS OFF )
1029 set( ANDROID_STL_INCLUDE_DIRS "${ANDROID_NDK}/sources/cxx-stl/system/include" )
1031 set( ANDROID_RTTI ON )
1032 set( ANDROID_EXCEPTIONS ON )
1033 set( ANDROID_STL_INCLUDE_DIRS "${ANDROID_NDK}/sources/cxx-stl/system/include" )
1038 set( ANDROID_RTTI ON )
1039 set( ANDROID_EXCEPTIONS OFF )
1040 set( ANDROID_STL_INCLUDE_DIRS "${ANDROID_NDK}/sources/cxx-stl/gabi++/include" )
1041set( __libstl "${ANDROID_NDK}/sources/cxx-stl/gabi++/libs/${ANDROID_NDK_ABI_NAME}/…
1044 set( ANDROID_EXCEPTIONS ON )
1046 set( ANDROID_EXCEPTIONS OFF )
1049 set( ANDROID_RTTI OFF )
1051 set( ANDROID_RTTI ON )
1053 set( ANDROID_STL_INCLUDE_DIRS "${ANDROID_NDK}/sources/cxx-stl/stlport/stlport" )
1054set( __libstl "${ANDROID_NDK}/sources/cxx-stl/stlport/libs/${ANDROID_NDK_ABI_NAME}…
1056 set( ANDROID_EXCEPTIONS ON )
1057 set( ANDROID_RTTI ON )
1062 set( __libstl "${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/4.6" )
1064set( __libstl "${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/${ANDROID_COMPILER_VERS…
1067 set( __libstl "${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++" )
1069set( ANDROID_STL_INCLUDE_DIRS "${__libstl}/include" "${__libstl}/libs/${ANDROID_NDK_ABI_NAME}/incl…
1071 set( __libstl "${__libstl}/libs/${ANDROID_NDK_ABI_NAME}/libgnustl_static.a" )
1073 set( __libstl "${__libstl}/libs/${ANDROID_NDK_ABI_NAME}/libstdc++.a" )
1080set( __libsupcxx "${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/${ANDROID_COMPILER_VERSION}/libs/${…
1082set( __libsupcxx "${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/libs/${ANDROID_NDK_ABI_NAME}/libsup…
1087set( __libsupcxx "${ANDROID_TOOLCHAIN_ROOT}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib/${CMAKE_SYSTEM_P…
1089set( __libsupcxx "${ANDROID_TOOLCHAIN_ROOT}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib/${CMAKE_SYSTEM_P…
1092set( __libsupcxx "${ANDROID_TOOLCHAIN_ROOT}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib/thumb/libsupc++.…
1094 set( __libsupcxx "${ANDROID_TOOLCHAIN_ROOT}/${ANDROID_TOOLCHAIN_MACHINE_NAME}/lib/libsupc++.a" )
1127 set( CMAKE_C_COMPILER "${NDK_CCACHE}" CACHE PATH "ccache as C compiler" )
1128 set( CMAKE_CXX_COMPILER "${NDK_CCACHE}" CACHE PATH "ccache as C++ compiler" )
1130set( CMAKE_C_COMPILER_ARG1 "${ANDROID_CLANG_TOOLCHAIN_ROOT}/bin/${_clang_name}${TOOL_OS_SUFFIX}"…
1131set( CMAKE_CXX_COMPILER_ARG1 "${ANDROID_CLANG_TOOLCHAIN_ROOT}/bin/${_clang_name}++${TOOL_OS_SUFFIX…
1133set( CMAKE_C_COMPILER_ARG1 "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-gcc$…
1134set( CMAKE_CXX_COMPILER_ARG1 "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-g++$…
1138set( CMAKE_C_COMPILER "${ANDROID_CLANG_TOOLCHAIN_ROOT}/bin/${_clang_name}${TOOL_OS_SUFFIX}" CA…
1139set( CMAKE_CXX_COMPILER "${ANDROID_CLANG_TOOLCHAIN_ROOT}/bin/${_clang_name}++${TOOL_OS_SUFFIX}" CA…
1141set( CMAKE_C_COMPILER "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-gcc${TOOL…
1142set( CMAKE_CXX_COMPILER "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-g++${TOOL…
1145set( CMAKE_ASM_COMPILER "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-gcc${TOOL…
1146set( CMAKE_STRIP "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-strip${TO…
1147set( CMAKE_AR "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-ar${TOOL_…
1148set( CMAKE_LINKER "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-ld${TOOL_…
1149set( CMAKE_NM "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-nm${TOOL_…
1150set( CMAKE_OBJCOPY "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-objcopy${…
1151set( CMAKE_OBJDUMP "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-objdump${…
1152set( CMAKE_RANLIB "${ANDROID_TOOLCHAIN_ROOT}/bin/${ANDROID_TOOLCHAIN_MACHINE_NAME}-ranlib${T…
1155 set( _CMAKE_TOOLCHAIN_PREFIX "${ANDROID_TOOLCHAIN_MACHINE_NAME}-" )
1157 set( CMAKE_ASM_COMPILER_ARG1 "-c" )
1167 # Force set compilers because standard identification works badly for us
1171 set( CMAKE_C_COMPILER_ID Clang )
1173 set( CMAKE_C_PLATFORM_ID Linux )
1175 set( CMAKE_C_SIZEOF_DATA_PTR 8 )
1177 set( CMAKE_C_SIZEOF_DATA_PTR 4 )
1179 set( CMAKE_C_HAS_ISYSROOT 1 )
1180 set( CMAKE_C_COMPILER_ABI ELF )
1183 set( CMAKE_CXX_COMPILER_ID Clang)
1185 set( CMAKE_CXX_PLATFORM_ID Linux )
1186 set( CMAKE_CXX_SIZEOF_DATA_PTR ${CMAKE_C_SIZEOF_DATA_PTR} )
1187 set( CMAKE_CXX_HAS_ISYSROOT 1 )
1188 set( CMAKE_CXX_COMPILER_ABI ELF )
1189 set( CMAKE_CXX_SOURCE_FILE_EXTENSIONS cc cp cxx cpp CPP c++ C )
1191 set( CMAKE_ASM_COMPILER_ID_RUN TRUE )
1192 set( CMAKE_ASM_COMPILER_ID GNU )
1193 set( CMAKE_ASM_COMPILER_WORKS TRUE )
1194 set( CMAKE_ASM_COMPILER_FORCED TRUE )
1195 set( CMAKE_COMPILER_IS_GNUASM 1)
1196 set( CMAKE_ASM_SOURCE_FILE_EXTENSIONS s S asm )
1200 set( CMAKE_${lang}_COMPILER_VERSION ${ANDROID_CLANG_VERSION} )
1202 set( CMAKE_${lang}_COMPILER_VERSION ${ANDROID_COMPILER_VERSION} )
1219 set( ANDROID_CXX_FLAGS "--sysroot=${ANDROID_SYSROOT}" )
1221 set( ANDROID_CXX_FLAGS "--sysroot=\"${ANDROID_SYSROOT}\"" )
1224 set( ANDROID_CXX_FLAGS "'--sysroot=${ANDROID_SYSROOT}'" )
1231 set( ANDROID_CXX_FLAGS "--sysroot=${ANDROID_SYSROOT}" )
1236 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -ffunction-sections -funwind-tables" )
1237 set( ANDROID_CXX_FLAGS_RELEASE "-fomit-frame-pointer -fstrict-aliasing" )
1238 set( ANDROID_CXX_FLAGS_DEBUG "-fno-omit-frame-pointer -fno-strict-aliasing" )
1240set( ANDROID_CXX_FLAGS_RELEASE "${ANDROID_CXX_FLAGS_RELEASE} -funswitch-loops -finline-limit=300" )
1243 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -funwind-tables" )
1245 set( ANDROID_CXX_FLAGS_RELEASE "-mthumb -fomit-frame-pointer -fno-strict-aliasing" )
1246 set( ANDROID_CXX_FLAGS_DEBUG "-marm -fno-omit-frame-pointer -fno-strict-aliasing" )
1248 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -finline-limit=64" )
1252 set( ANDROID_CXX_FLAGS_RELEASE "-marm -fomit-frame-pointer -fstrict-aliasing" )
1253 set( ANDROID_CXX_FLAGS_DEBUG "-marm -fno-omit-frame-pointer -fno-strict-aliasing" )
1255 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -funswitch-loops -finline-limit=300" )
1259 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -funwind-tables" )
1261 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -funswitch-loops -finline-limit=300" )
1263 set( ANDROID_CXX_FLAGS_RELEASE "-fomit-frame-pointer -fstrict-aliasing" )
1264 set( ANDROID_CXX_FLAGS_DEBUG "-fno-omit-frame-pointer -fno-strict-aliasing" )
1266set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -fno-strict-aliasing -finline-functions -ffun…
1267 set( ANDROID_CXX_FLAGS_RELEASE "-fomit-frame-pointer" )
1268 set( ANDROID_CXX_FLAGS_DEBUG "-fno-omit-frame-pointer" )
1270set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -fno-inline-functions-called-once -fgcse-after-reload…
1271set( ANDROID_CXX_FLAGS_RELEASE "${ANDROID_CXX_FLAGS_RELEASE} -funswitch-loops -finline-limit=300" )
1274 set( ANDROID_CXX_FLAGS_RELEASE "" )
1275 set( ANDROID_CXX_FLAGS_DEBUG "" )
1278 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -fsigned-char" ) # good/necessary when porting desktop…
1281 set( ANDROID_CXX_FLAGS "-Wno-psabi ${ANDROID_CXX_FLAGS}" )
1285set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -no-canonical-prefixes" ) # see https://android-revie…
1290 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -march=armv7-a -mfloat-abi=softfp" )
1292 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -mfpu=neon" )
1294 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -mfpu=vfpv3" )
1296 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -mfpu=vfpv3-d16" )
1299set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -march=armv6 -mfloat-abi=softfp -mfpu=vfp" ) # vfp ==…
1301 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -march=armv5te -mtune=xscale -msoft-float" )
1305set( CMAKE_CXX_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LANGUAG…
1306set( CMAKE_CXX_CREATE_SHARED_MODULE "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LANGUAG…
1307set( CMAKE_CXX_LINK_EXECUTABLE "<CMAKE_C_COMPILER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAG…
1309set( CMAKE_CXX_CREATE_SHARED_LIBRARY "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LANGU…
1310set( CMAKE_CXX_CREATE_SHARED_MODULE "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LANGU…
1311set( CMAKE_CXX_LINK_EXECUTABLE "<CMAKE_CXX_COMPILER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FL…
1317 set( CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_CXX_CREATE_SHARED_LIBRARY} \"${__libstl}\"" )
1318 set( CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_CXX_CREATE_SHARED_MODULE} \"${__libstl}\"" )
1319 set( CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} \"${__libstl}\"" )
1322 set( CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_CXX_CREATE_SHARED_LIBRARY} \"${__libsupcxx}\"" )
1323 set( CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_CXX_CREATE_SHARED_MODULE} \"${__libsupcxx}\"" )
1324 set( CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} \"${__libsupcxx}\"" )
1326set( CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LANGUAGE_CO…
1327set( CMAKE_C_CREATE_SHARED_MODULE "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LANGUAGE_CO…
1328set( CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <…
1329 set( CMAKE_C_CREATE_SHARED_LIBRARY "${CMAKE_C_CREATE_SHARED_LIBRARY} \"${__libsupcxx}\"" )
1330 set( CMAKE_C_CREATE_SHARED_MODULE "${CMAKE_C_CREATE_SHARED_MODULE} \"${__libsupcxx}\"" )
1331 set( CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_LINK_EXECUTABLE} \"${__libsupcxx}\"" )
1335 set( ANDROID_LIBM_PATH -lm )
1337 set( CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_CXX_CREATE_SHARED_LIBRARY} ${ANDROID_LIBM_PATH}" )
1338 set( CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_CXX_CREATE_SHARED_MODULE} ${ANDROID_LIBM_PATH}" )
1339 set( CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} ${ANDROID_LIBM_PATH}" )
1357 set( ANDROID_NO_UNDEFINED ${ANDROID_NO_UNDEFINED} CACHE BOOL "Show all undefine…
1358 set( ANDROID_SO_UNDEFINED ${ANDROID_SO_UNDEFINED} CACHE BOOL "Allows or disallo…
1359 set( ANDROID_FUNCTION_LEVEL_LINKING ${ANDROID_FUNCTION_LEVEL_LINKING} CACHE BOOL "Allows or disallo…
1360 set( ANDROID_GOLD_LINKER ${ANDROID_GOLD_LINKER} CACHE BOOL "Enables gold link…
1361 set( ANDROID_NOEXECSTACK ${ANDROID_NOEXECSTACK} CACHE BOOL "Allows or disallo…
1362 set( ANDROID_RELRO ${ANDROID_RELRO} CACHE BOOL "Enables RELRO - a…
1366 set( ANDROID_LINKER_FLAGS "" )
1371 set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} -Wl,--fix-cortex-a8" )
1378set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} -Wl,--no-undefined -Wl,-rpath-link,${ANDROID_SY…
1381 set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} -Wl,--no-undefined" )
1386 set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} -Wl,-allow-shlib-undefined" )
1390 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -fdata-sections -ffunction-sections" )
1391 set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} -Wl,--gc-sections" )
1396 set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} -fuse-ld=gold" )
1398 set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} -fuse-ld=bfd" )
1409 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -Xclang -mnoexecstack" )
1411 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -Wa,--noexecstack" )
1413 set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} -Wl,-z,noexecstack" )
1417 set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} -Wl,-z,relro -Wl,-z,now" )
1421 set( ANDROID_CXX_FLAGS "-target ${ANDROID_LLVM_TRIPLE} -Qunused-arguments ${ANDROID_CXX_FLAGS}" )
1423 set( ANDROID_CXX_FLAGS "-gcc-toolchain ${ANDROID_TOOLCHAIN_ROOT} ${ANDROID_CXX_FLAGS}" )
1428 set( CMAKE_CXX_FLAGS "" CACHE STRING "c++ flags" )
1429 set( CMAKE_C_FLAGS "" CACHE STRING "c flags" )
1430 set( CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "c++ Release flags" )
1431 set( CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "c Release flags" )
1432 set( CMAKE_CXX_FLAGS_DEBUG "-O0 -g -DDEBUG -D_DEBUG" CACHE STRING "c++ Debug flags" )
1433 set( CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG -D_DEBUG" CACHE STRING "c Debug flags" )
1434 set( CMAKE_SHARED_LINKER_FLAGS "" CACHE STRING "shared linker flags" )
1435 set( CMAKE_MODULE_LINKER_FLAGS "" CACHE STRING "module linker flags" )
1436 set( CMAKE_EXE_LINKER_FLAGS "-Wl,-z,nocopyreloc" CACHE STRING "executable linker flags" )
1439 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS}" CACHE INTERNAL "Android specific c/c+…
1440 set( ANDROID_CXX_FLAGS_RELEASE "${ANDROID_CXX_FLAGS_RELEASE}" CACHE INTERNAL "Android specific c/c+…
1441 set( ANDROID_CXX_FLAGS_DEBUG "${ANDROID_CXX_FLAGS_DEBUG}" CACHE INTERNAL "Android specific c/c+…
1442 set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS}" CACHE INTERNAL "Android specific c/c+…
1445 set( CMAKE_CXX_FLAGS "${ANDROID_CXX_FLAGS} ${CMAKE_CXX_FLAGS}" )
1446 set( CMAKE_C_FLAGS "${ANDROID_CXX_FLAGS} ${CMAKE_C_FLAGS}" )
1447 set( CMAKE_CXX_FLAGS_RELEASE "${ANDROID_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS_RELEASE}" )
1448 set( CMAKE_C_FLAGS_RELEASE "${ANDROID_CXX_FLAGS_RELEASE} ${CMAKE_C_FLAGS_RELEASE}" )
1449 set( CMAKE_CXX_FLAGS_DEBUG "${ANDROID_CXX_FLAGS_DEBUG} ${CMAKE_CXX_FLAGS_DEBUG}" )
1450 set( CMAKE_C_FLAGS_DEBUG "${ANDROID_CXX_FLAGS_DEBUG} ${CMAKE_C_FLAGS_DEBUG}" )
1451 set( CMAKE_SHARED_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}" )
1452 set( CMAKE_MODULE_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} ${CMAKE_MODULE_LINKER_FLAGS}" )
1453 set( CMAKE_EXE_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}" )
1456set( CMAKE_SHARED_LINKER_FLAGS "-Wl,-T,${ANDROID_NDK_TOOLCHAINS_PATH}/${ANDROID_GCC_TOOLCHAIN_NAME…
1457set( CMAKE_MODULE_LINKER_FLAGS "-Wl,-T,${ANDROID_NDK_TOOLCHAINS_PATH}/${ANDROID_GCC_TOOLCHAIN_NAME…
1458set( CMAKE_EXE_LINKER_FLAGS "-Wl,-T,${ANDROID_NDK_TOOLCHAINS_PATH}/${ANDROID_GCC_TOOLCHAIN_NAME…
1463 set( CMAKE_POSITION_INDEPENDENT_CODE TRUE )
1464 set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIE -pie")
1466 set( CMAKE_POSITION_INDEPENDENT_CODE FALSE )
1467 set( CMAKE_CXX_FLAGS "-fpic ${CMAKE_CXX_FLAGS}" )
1468 set( CMAKE_C_FLAGS "-fpic ${CMAKE_C_FLAGS}" )
1474 set( CMAKE_CXX_FLAGS "-frtti ${CMAKE_CXX_FLAGS}" )
1476 set( CMAKE_CXX_FLAGS "-fno-rtti ${CMAKE_CXX_FLAGS}" )
1483 set( CMAKE_CXX_FLAGS "-fexceptions ${CMAKE_CXX_FLAGS}" )
1484 set( CMAKE_C_FLAGS "-fexceptions ${CMAKE_C_FLAGS}" )
1486 set( CMAKE_CXX_FLAGS "-fno-exceptions ${CMAKE_CXX_FLAGS}" )
1487 set( CMAKE_C_FLAGS "-fno-exceptions ${CMAKE_C_FLAGS}" )
1498 set( __cmd "${CMAKE_CXX_CREATE_SHARED_LIBRARY}" )
1513 set( __tmp "${${__var}}" )
1522 set( ANDROID_EXPLICIT_CRT_LINK ON )
1524 set( ANDROID_EXPLICIT_CRT_LINK OFF )
1529set( CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_CXX_CREATE_SHARED_LIBRARY} \"${ANDROID_SYSROOT}/usr/…
1530set( CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_CXX_CREATE_SHARED_MODULE} \"${ANDROID_SYSROOT}/usr/l…
1534 set( LIBRARY_OUTPUT_PATH_ROOT ${CMAKE_SOURCE_DIR} CACHE PATH "root for library output, set this to …
1535 set( CMAKE_INSTALL_PREFIX "${ANDROID_TOOLCHAIN_ROOT}/user" CACHE STRING "path for installing" )
1539set( EXECUTABLE_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH_ROOT}/bin/${ANDROID_NDK_ABI_NAME}" CACHE PATH "…
1541set( EXECUTABLE_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH_ROOT}/bin" CACHE PATH "Output directory for app…
1543set( LIBRARY_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH_ROOT}/libs/${ANDROID_NDK_ABI_NAME}" CACHE PATH "pa…
1558 # set these global flags for cmake client scripts to change behavior
1559 set( ANDROID True )
1560 set( BUILD_ANDROID True )
1563 set( CMAKE_FIND_ROOT_PATH "${ANDROID_TOOLCHAIN_ROOT}/bin" "${ANDROID_TOOLCHAIN_ROOT}/${ANDROID_TOOL…
1566 set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
1567 set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
1568 set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
1573 set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
1574 set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER )
1575 set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER )
1577 SET( WIN32 1 )
1578 SET( UNIX )
1580 SET( APPLE 1 )
1581 SET( UNIX )
1584 SET( WIN32 )
1585 SET( APPLE )
1586 SET( UNIX 1 )
1587 set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
1588 set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
1589 set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
1595 set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
1596 set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER )
1597 set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER )
1599 SET( WIN32 1 )
1600 SET( UNIX )
1602 SET( APPLE 1 )
1603 SET( UNIX )
1606 SET( WIN32 )
1607 SET( APPLE )
1608 SET( UNIX 1 )
1609 set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
1610 set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
1611 set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
1617 set( ${VAR} "armeabi" )
1619 set( ${VAR} "armeabi-v7a" )
1621 set( ${VAR} "x86" )
1623 set( ${VAR} "mips" )
1625 set( ${VAR} "unknown" )
1632 set( __toolchain_config "")
1656set( __toolchain_config "${__toolchain_config}set( ${__var} \"${${__var}}\" CACHE INTERNAL \"\" )\…
1658set( __toolchain_config "${__toolchain_config}set( ${__var} ${${__var}} CACHE INTERNAL \"\" )\n" )
1671 set( CMAKE_COMPILER_IS_MINGW TRUE ) # tell CMake that we are MinGW
1672 set( CMAKE_CROSSCOMPILING TRUE ) # stop recursion
1680 # set some obsolete variables for backward compatibility
1681 set( ANDROID_SET_OBSOLETE_VARIABLES ON CACHE BOOL "Define obsolete Andrid-specific cmake variables"…
1684 set( ANDROID_API_LEVEL ${ANDROID_NATIVE_API_LEVEL} )
1685 set( ARM_TARGET "${ANDROID_ABI}" )
1686 set( ARMEABI_NDK_NAME "${ANDROID_NDK_ABI_NAME}" )
1690 # Variables controlling behavior or set by cmake toolchain:
1704 # Can be set only at the first run:
1715 # ARM_TARGETS : superseded by ANDROID_ABI (can be set only)
1716 # ANDROID_NDK_TOOLCHAIN_ROOT : superseded by ANDROID_STANDALONE_TOOLCHAIN (can be set only)
1737 # ANDROID_NDK_RELEASE : from r5 to r10d; set only for NDK
1759 # ANDROID_LIBM_PATH : path to libm.so (set to something like $(TOP)/out/target/product/<product_n…