Hi, I'd like it to be this easy to create an Android toolchain file:
set(CMAKE_SYSTEM_NAME Android) set(ANDROID_SDK_ROOT "/home/stephen/android/android-sdk-linux/") set(ANDROID_NDK_ROOT "/home/stephen/android/android-ndk-r9/") set(ANDROID_NDK_PLATFORM "android-18") set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) In order to do that, more stuff would need to be in the Android.cmake platform file. The platform file I'm currently experimenting with is here: http://www.steveire.com/Android.cmake I would aim to obsolete the toolchain file which is commonly used for Android, which is here: http://code.google.com/p/android-cmake/source/browse/toolchain/android.toolchain.cmake I think part of the solution will need to be an interface in CMake for selecting an STL version. That will probably also be usable to select between libstdc++ and libc++ when using clang. Any comments on adding that kind of thing to the Android toolchain file? Thanks, Steve. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
