[cmake-developers] Android variables

Ruslan Baratov ruslan_baratov at yahoo.com
Thu Nov 10 22:46:06 EST 2016


Okay, thanks. But this doesn't answer my question. So can we introduce
new variable CMAKE_C_PREPROCESSOR with the value
|"${CMAKE_CXX_ANDROID_TOOLCHAIN_PREFIX}cpp${CMAKE_CXX_ANDROID_TOOLCHAIN_SUFFIX}"?
Similar to CMAKE_C_COMPILER, CMAKE_CXX_COMPILER, CMAKE_AR. What about
ANDROID_TOOLCHAIN_MACHINE_NAME? Your proposal is to parse the last
component of |||CMAKE_CXX_ANDROID_TOOLCHAIN_PREFIX? Does this one look good:

||

    ||get_filename_component(ANDROID_TOOLCHAIN_MACHINE_NAME
    "${CMAKE_CXX_ANDROID_TOOLCHAIN_PREFIX}" NAME)||
    ||string(REGEX REPLACE "-$" ""
    ||||||ANDROID_TOOLCHAIN_MACHINE_NAME||
    "${||||||ANDROID_TOOLCHAIN_MACHINE_NAME||}")
    ||||||

||?

Ruslo

||On 11-Nov-16 00:29, Brad King wrote:
> On 11/10/2016 10:05 AM, Ruslan Baratov via cmake-developers wrote:
>> variables describing Android tools:
> See:
>
> * https://cmake.org/cmake/help/v3.7/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_PREFIX.html
> * https://cmake.org/cmake/help/v3.7/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_SUFFIX.html
> * https://gitlab.kitware.com/cmake/cmake/blob/v3.7.0-rc3/Tests/RunCMake/Android/common.cmake#L9-13
>
> -Brad
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20161111/01f91307/attachment.html>


More information about the cmake-developers mailing list