[Android] Update build script

This commit is contained in:
zilmar 2016-11-28 07:20:56 +11:00
parent edcf7e4a08
commit a6167b5bb0
1 changed files with 10 additions and 8 deletions

View File

@ -9,18 +9,20 @@ cd /d %origdir%
set VersionName= set VersionName=
if not "%1" == "" set VersionName= %1 if not "%1" == "" set VersionName= %1
set NDK-BUILDER= set NDK-BUILDER=""
if exist "C:\Android\android-ndk-r10d\ndk-build.cmd" ( set NDK-BUILDER="C:\Android\android-ndk-r10d\ndk-build.cmd" )
if exist "C:\Android\android-ndk-r11c\ndk-build.cmd" ( set NDK-BUILDER="C:\Android\android-ndk-r11c\ndk-build.cmd" ) if exist "C:\Android\android-ndk-r11c\ndk-build.cmd" ( set NDK-BUILDER="C:\Android\android-ndk-r11c\ndk-build.cmd" )
if exist "D:\Android\android-ndk-r13b\ndk-build.cmd" ( set NDK-BUILDER="D:\Android\android-ndk-r13b\ndk-build.cmd" )
if %NDK-BUILDER% == "" ( if %NDK-BUILDER% == "" (
echo can not find android NDK echo can not find android NDK
goto :EndErr goto :EndErr
) )
set ANDROID_SDK= set ANDROID_SDK=""
if exist "C:\Android\android-sdk" ( set ANDROID_SDK="C:\Android\android-sdk" ) if exist "D:\Android\android-sdk" ( set ANDROID_SDK="D:\Android\android-sdk" )
if %NDK-BUILDER% == "" ( if %ANDROID_SDK% == "" (
echo can not find android SDK echo can not find android SDK
goto :EndErr goto :EndErr
) )
call "%base_dir%\Android\Script\buildAssets.cmd" call "%base_dir%\Android\Script\buildAssets.cmd"