Skip to content

Hello world Android NDK application to show how to build with android-cmake

Notifications You must be signed in to change notification settings

Discordia/android-cmake-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello world Android NDK application to show how to use android-cmake and android.apk.cmake from here:
https://github.com/Discordia/android-cmake

Building
-------------------
1. Create a android ndk standalone toolchain.
2. Clone the android-cmake project
3. Set the following env parameters:
ANDROID_NDK_HOME=<path to where android ndk is installed>
ANDROID_STANDALONE_TOOLCHAIN=<path to the ndk standalone toolchain>
ANDROID_CMAKE_HOME=<path to the android-cmake project>
4. In project root do:
  mkdir build && cd build
  cmake -DCMAKE_TOOLCHAIN_FILE=/usr/local/android/android-cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Debug .. 
  make

About

Hello world Android NDK application to show how to build with android-cmake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages