Skip to content

Commit 74e2e7c

Browse files
committed
add cmake build option
1 parent c8b388f commit 74e2e7c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,20 @@ dependencies {
3535

3636
* Demo and Library will be updated as needed. Welcome for your questions or PR.
3737

38-
* To build with the jni part, pleasae try:
38+
## Build
39+
40+
* Build with `Android Studio` and CMake: (Recommended)
41+
* Put `usingCMakeCompile=true` in your `local.properties`
42+
* Open the repo with the latest version of `Android Studio`
43+
* Waiting for the initialization. (NDK/cmake install)
44+
* Done.
45+
46+
* Using `Visual Studio Code`: (Simple)
47+
* Setup your Android SDK with ENV variable. (`ANDROID_SDK_HOME/ANDROID_SDK_ROOT/ANDROID_SDK`) are all OK.
48+
* Press `⌘ + shift + B` (Mac) or `ctrl + shift + B` (Win/Linux), choose the option `Enable CMake And Build Project With CMake`.
49+
* Done.
50+
51+
* Build `JNI` part with ndk-build: (Not recommended)
3952

4053
```shell
4154
export NDK=path/of/your/ndk

0 commit comments

Comments
 (0)