https://github.com/wirtos/cdroid
Build android apps with a bit of CMake and C without even a line of java, kotlin or gradle!
https://github.com/wirtos/cdroid
android c cpp native ndk ndk-cmake
Last synced: 1 day ago
JSON representation
Build android apps with a bit of CMake and C without even a line of java, kotlin or gradle!
- Host: GitHub
- URL: https://github.com/wirtos/cdroid
- Owner: Wirtos
- Created: 2020-11-18T06:42:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-19T18:39:35.000Z (over 5 years ago)
- Last Synced: 2025-06-23T15:04:37.823Z (10 months ago)
- Topics: android, c, cpp, native, ndk, ndk-cmake
- Language: CMake
- Homepage:
- Size: 11.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cdroid
Build android apps with a bit of CMake and C without even a line of java, kotlin or gradle!
### !!! Requires cmake >=3.18
```shell script
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="//build/cmake/android.toolchain.cmake" \
-DANDROID_SDK="" -DJAVA_HOME=""
-DANDROID_PLATFORM="android-30" -DANDROID_ABI=x86
cmake --build . --target create_keystore cdroid
```
- -DANDROID_SDK (absolute path to android SDK root) can be omitted, the script then will try to use \
ANDROID_HOME environment variable
- -DJAVA_HOME (absolute path to JDK root) can be omitted, the script will try to use JAVA_HOME environment variable instead
- https://developer.android.com/ndk/guides/cmake#variables
- create_keystore target can be ommited if you provide own keystore file in the CMakeLists.txt