Lines Matching full:toolchain
32 # Android CMake toolchain file, for use with the Android NDK r5-r10d
39 # $ cmake -DCMAKE_TOOLCHAIN_FILE=path/to/the/android.toolchain.cmake ..
42 # Usage Linux (using standalone toolchain):
43 # $ export ANDROID_STANDALONE_TOOLCHAIN=/absolute/path/to/android-toolchain
45 # $ cmake -DCMAKE_TOOLCHAIN_FILE=path/to/the/android.toolchain.cmake ..
57 # -DCMAKE_TOOLCHAIN_FILE=path\to\the\android.toolchain.cmake
66 # ANDROID_STANDALONE_TOOLCHAIN=/opt/android-toolchain - path to the
67 # standalone toolchain. This option is not used if full NDK is found
93 # Option is read-only when standalone toolchain is used.
97 # toolchain to be used. The list of possible values depends on the NDK
139 # ANDROID_SET_OBSOLETE_VARIABLES=ON - if set, then toolchain defines some
149 # Is not available for standalone toolchain.
152 # Is not available for standalone toolchain.
156 # Is not available for standalone toolchain.
160 # Is not available for standalone toolchain.
164 # Is not available for standalone toolchain.
168 # Is not available for standalone toolchain.
181 # android-cmake toolchain searches for NDK/toolchain in the following order:
193 # Also be aware that toolchain also sets configuration-specific compiler
214 # subsequent toolchain loading is not really needed
219 # touch toolchain variable to suppress "unused variable" warning
225 include( "${CMAKE_CURRENT_SOURCE_DIR}/../android.toolchain.config.cmake" OPTIONAL )
254 set( ANDROID_STANDALONE_TOOLCHAIN_SEARCH_PATH /opt/android-toolchain )
323 message( WARNING "Using value of obsolete variable ${__var} as initial value for ${var_name}. Please note, that ${__var} can be completely removed in future versions of the toolchain." )
330 message( WARNING "Using value of obsolete variable ${__var} as initial value for ${var_name}. Please note, that ${__var} can be completely removed in future versions of the toolchain." )
350 message( SEND_ERROR "Could not get Android native API level. Probably you have specified invalid level value, or your copy of NDK/toolchain is broken." )
383 message( FATAL_ERROR "Android NDK and android-cmake toolchain are not welcome Cygwin. It is unlikely that this cmake toolchain will work under cygwin. But if you want to try then you can set cmake variable ANDROID_FORBID_SYGWIN to FALSE and rerun cmake." )
398 set( ANDROID_NDK_HOST_X64 1 CACHE BOOL "Try to use 64-bit compiler toolchain" )
414 message( FATAL_ERROR "Cross-compilation on your platform is not supported by this cmake toolchain" )
424 # see if we have path to Android standalone toolchain
442 #try to find Android standalone toolchain in one of the the default locations
446 message( STATUS "Using default path for standalone toolchain ${ANDROID_STANDALONE_TOOLCHAIN}" )
475 message( FATAL_ERROR "It is not possible to change path to the Android standalone toolchain on subsequent run." )
480 set( ANDROID_STANDALONE_TOOLCHAIN "${ANDROID_STANDALONE_TOOLCHAIN}" CACHE INTERNAL "Path of the Android standalone toolchain" FORCE )
484 message( FATAL_ERROR "Could not find neither Android NDK nor Android standalone toolchain.
488 export ANDROID_STANDALONE_TOOLCHAIN=~/my-android-toolchain
489 or put the toolchain or NDK in the default path:
491 sudo ln -s ~/my-android-toolchain ${ANDROID_STANDALONE_TOOLCHAIN_SEARCH_PATH}" )
500 elseif( EXISTS "${ANDROID_NDK}/../../linux-x86/toolchain/" )
510 set( ANDROID_NDK_TOOLCHAINS_PATH "${ANDROID_NDK}/../../${ANDROID_NDK_HOST_SYSTEM_NAME}/toolchain" )
539 # get all the details about standalone toolchain
546 message( FATAL_ERROR "Could not determine machine name of your toolchain. Probably your Android standalone toolchain is broken." )
654 message( FATAL_ERROR "Could not find any working toolchain in the NDK. Probably your Android NDK is broken." )
668 message( FATAL_ERROR "No one of known Android ABIs is supported by this cmake toolchain." )
677 message( FATAL_ERROR "Specified ANDROID_ABI = \"${ANDROID_ABI}\" is not supported by this cmake toolchain or your NDK/toolchain.
770 # choose toolchain
777 message( FATAL_ERROR "Specified toolchain \"${ANDROID_TOOLCHAIN_NAME}\" is missing in your NDK or broken. Please verify that your NDK is working or select another compiler toolchain.
778 To configure the toolchain set CMake variable ANDROID_TOOLCHAIN_NAME to one of the following values:\n${toolchains_list}\n" )
782 message( SEND_ERROR "Selected toolchain \"${ANDROID_TOOLCHAIN_NAME}\" is not able to compile binaries for the \"${ANDROID_ARCH_NAME}\" platform." )
838 message( SEND_ERROR "Specified Android native API level 'android-${ANDROID_NATIVE_API_LEVEL}' is not supported by your NDK/toolchain." )
941 # setup paths and STL for standalone toolchain
975 message( FATAL_ERROR "The required libstdsupc++.a is missing in your standalone toolchain.
976 Usually it happens because of bug in make-standalone-toolchain.sh script from NDK r7, r7b and r7c.
1228 message(WARNING "Path to your Android NDK (or toolchain) has non-alphanumeric symbols.\nThe build might be broken.\n")
1400 message( WARNING "The default bfd linker from arm GCC 4.6 toolchain can fail with 'unresolvable R_ARM_THM_CALL relocation' error message. See https://code.google.com/p/android/issues/detail?id=35342
1423 set( ANDROID_CXX_FLAGS "-gcc-toolchain ${ANDROID_TOOLCHAIN_ROOT} ${ANDROID_CXX_FLAGS}" )
1565 # only search for libraries and includes in the ndk toolchain
1630 # export toolchain settings for the try_compile() command
1662 file( WRITE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/android.toolchain.config.cmake" "${__toolchain_config}" )
1690 # Variables controlling behavior or set by cmake toolchain:
1707 # ANDROID_TOOLCHAIN_NAME : the NDK name of compiler toolchain
1708 # ANDROID_NDK_HOST_X64 : try to use x86_64 toolchain (default for x64 host systems)
1734 # BUILD_WITH_STANDALONE_TOOLCHAIN : TRUE if standalone toolchain is used
1752 # ANDROID_TOOLCHAIN_ROOT : path to the top level of toolchain (standalone or placed inside NDK)