Skip to content

Commit e42bdbb

Browse files
authored
Update README.md
1 parent 21b9ac9 commit e42bdbb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ Open [APPENDIX.md](APPENDIX.md) for additional information and see [Milestones](
9999
See [windows workflow guide](https://github.com/axis-project/axis/issues/564)
100100

101101
#### Android
102+
103+
##### With Android Studio
102104
1. Install Android Studio 2021.1.1+
103105
2. When starting Android Studio for the first time, It will guide you to install the SDK and other tools, just install them
104106
3. Start Android and choose [Open an existing Android Studio Project] and select ```axis\tests\cpp-tests\proj.android```
@@ -109,6 +111,21 @@ See [windows workflow guide](https://github.com/axis-project/axis/issues/564)
109111
* CMake 3.10+
110112
5. Wait for ```Gradle sync``` finish.
111113
6. Note: If you use non-sdk provided CMake edition, you will need to download ```ninja``` from https://github.com/ninja-build/ninja/releases, and copy ```ninja.exe``` to cmake's bin directory
114+
115+
##### Without Android Studio
116+
1. Download command-tools from https://developer.android.com/studio#command-tools
117+
2. Install Android devtools (for example in windows)
118+
```bat
119+
# unzip command-tools at D:\dev\adt\
120+
# Install android devtools
121+
cd D:\dev\adt\
122+
mkdir sdk
123+
.\cmdline-tools\bin\sdkmanager.bat --verbose --sdk_root=D:\dev\adt\sdk "platform-tools" "cmdline-tools;latest" "platforms;android-33" "build-tools;30.0.3" "cmake;3.22.1" "ndk;23.2.8568313"
124+
set ANDROID_HOME=D:\dev\adt\sdk
125+
126+
# Goto xxx\proj.android
127+
.\gradlew.bat assembleRelease -PPROP_BUILD_TYPE=cmake -PPROP_APP_ABI=arm64-v8a --parallel --info
128+
```
112129

113130
#### iOS
114131
1. Ensure xcode12+ & [cmake3.21+](https://github.com/Kitware/CMake/releases) are installed, install cmake command line support: ```sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install```

0 commit comments

Comments
 (0)