[cmake-developers] Android Support

Mikhail Filimonov mfilimonov at nvidia.com
Tue Oct 18 11:05:03 EDT 2016


Hi Brad,
It looks that those commits broke CMake scripts used to generate Nsight Tegra projects:
https://gitlab.kitware.com/cmake/cmake/issues/16371
Even CMake/tree/master/Tests/VSNsightTegra doesn't work with CMake ToT

Regards,
Mikhail Filimonov

-----Original Message-----
From: cmake-developers [mailto:cmake-developers-bounces at cmake.org] On Behalf Of Brad King
Sent: Friday, August 12, 2016 6:13 PM
To: cmake-developers at cmake.org
Subject: [cmake-developers] Android Support

Hi Folks,

I've implemented native support for cross-compiling to Android with CMake using either an Android NDK or an Android Standalone Toolchain.
I plan to include this in the CMake 3.7 release.

Please see the MR here:

  https://gitlab.kitware.com/cmake/cmake/merge_requests/62

This enables building with simple toolchain files, or even without one:

  $ cmake ../src -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK=/path/to/ndk

Note that interface compatibility with popular third-party Android toolchain files is a non-goal of this work (though we should not break them too much).
Instead I'd like to make the support feel native within CMake.  For example, the Android API level is naturally specified by CMAKE_SYSTEM_VERSION.

If you're interested in this support please fetch the MR branch and try it out.  The Help/manual/cmake-toolchains.7.rst manual has been updated with documentation about how to use this.

-Brad
-- 

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/mailman/listinfo/cmake-developers
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


More information about the cmake-developers mailing list