Skip to content

Android app written with c++ that have no external dependencies besides the Android SDK and NDK. This repository contains a CMakeLists.txt that generate at build time the LoadLibraries.java code that will load the native library at run time. One approach that doesn't uses java can be found in https://github.com/Marcos30004347/android-cpp-triangle

Notifications You must be signed in to change notification settings

Marcos30004347/android-cpp-triangle-with-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of android app written in c++ that uses just the SDK and the NDK to build the final APK.

dependencies:
- Android SDK
- Android NDK

"build.sh" requires you to set ANDROID_SDK env variable to the path that you have installed the Android SDK. "cmake/android.cmake" also needs ANDROID_NDK env variable to be the place that you have installed the Android NDK.

To build the apk run:
$ ./keystool.sh
$ ./build.sh

The apk will be in the build/ directory

references:
https://www.hanshq.net/command-line-android.html
https://github.com/hunter-packages/android-apk

About

Android app written with c++ that have no external dependencies besides the Android SDK and NDK. This repository contains a CMakeLists.txt that generate at build time the LoadLibraries.java code that will load the native library at run time. One approach that doesn't uses java can be found in https://github.com/Marcos30004347/android-cpp-triangle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published