-
Notifications
You must be signed in to change notification settings - Fork 49
/
build-android.cmd
29 lines (22 loc) · 996 Bytes
/
build-android.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
pushd "%~dp0"
REM Users may override the default %ANDROID_SDK_ROOT% location if necessary
if "%ANDROID_SDK_ROOT%" == "" set "ANDROID_SDK_ROOT=C:\Android\android-sdk"
if "%ANDROID_NDK_VERSION%" == "" set "ANDROID_NDK_VERSION=21.4.7075529"
if "%ANDROID_CMAKE_VERSION%" == "" set "ANDROID_CMAKE_VERSION=3.10.2.4988404"
if "%ANDROID_HOME%" == "" set "ANDROID_HOME=%ANDROID_SDK_ROOT%"
if "%ANDROID_NDK%" == "" set "ANDROID_NDK=%ANDROID_SDK_ROOT%\ndk\%ANDROID_NDK_VERSION%"
if "%ANDROID_NDK_HOME%" == "" set "ANDROID_NDK_HOME=%ANDROID_NDK%"
REM Consider using %ANDROID_NDK_ROOT% environment variable
REM Install Android tools if necessary
call tools\setup-buildtools-android.cmd
set "PATH=%ANDROID_SDK_ROOT%\cmake\%ANDROID_CMAKE_VERSION%\bin;%ANDROID_NDK%;%PATH%"
echo Building SDK
pushd .\lib\android_build
call .\gradlew.bat maesdk:assemble app:assemble %*
popd
echo Building Tests
pushd .\lib\android_build
call .\gradlew.bat maesdk:test %*
popd
popd