Git Product home page Git Product logo

android-cmake's Introduction

CMake is great, and so is Android. This is a collection of CMake scripts, and
patches for common libraries that may be useful to the Android NDK community.
It is based on experience from porting OpenCV library to Android.

Main goal is to share these scripts so that devs that use CMake as their build
system may easily compile native code for Android.

This project includes ports of the follow:

* boost
* eigen
* glues

And a few samples, to get you started.

Also, used by the OpenCV project: http://opencv.org/android

------------------------------------------
THIS FORK
------------------------------------------

This fork adds the android.apk.cmake file that can be used to create an apk 
directly from CMake. It is an edited version of the Apk.cmake file that can 
be found here: https://github.com/Uroc327Mirrors/pixellight/tree/master/cmake/Android

Usage
------------------------------------------
1. Clone this project
2. Create a android ndk standalone toolchain
3. Export these paths:
export ANDROID_HOME=~/android-sdk-linux
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
4. Set these env parameters:
ANDROID_STANDALONE_TOOLCHAIN=<path to the ndk standalone toolchain>
ANDROID_CMAKE_HOME=<path to the android-cmake project>
5. Include the android.apk.cmake in a cmake CMakeLists.txt by using the line:
include("$ENV{ANDROID_CMAKE_HOME}/android.apk.cmake" REQUIRED)
6. After your .so lib has been built call the cmake macro android_create_apk(...)

Example
-----------------------------------------
An example project can be found here:
https://github.com/Discordia/android-cmake-example

android-cmake's People

Contributors

ethanrublee avatar paroj avatar aichim avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.