Unverified Commit 2ef042d5 authored by Max Lv's avatar Max Lv Committed by GitHub

Merge pull request #1593 from chon219/fix-windows-script

fixed windows build script for overture
parents d7ecc348 0fa97f06
...@@ -38,7 +38,7 @@ android { ...@@ -38,7 +38,7 @@ android {
task goBuild(type: Exec) { task goBuild(type: Exec) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) { if (Os.isFamily(Os.FAMILY_WINDOWS)) {
executable "cmd.exe" executable "cmd.exe"
args "/c", "src/overture/make.bat " + minSdkVersion args "/c", "src\\overture\\make.bat " + minSdkVersion
} else { } else {
executable "sh" executable "sh"
args "-c", "src/overture/make.bash " + minSdkVersion args "-c", "src/overture/make.bash " + minSdkVersion
...@@ -48,7 +48,7 @@ task goBuild(type: Exec) { ...@@ -48,7 +48,7 @@ task goBuild(type: Exec) {
task goClean(type: Exec) { task goClean(type: Exec) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) { if (Os.isFamily(Os.FAMILY_WINDOWS)) {
executable "cmd.exe" executable "cmd.exe"
args "/c", "src/overture/clean.bat" args "/c", "src\\overture\\clean.bat"
} else { } else {
executable "sh" executable "sh"
args "-c", "src/overture/clean.bash" args "-c", "src/overture/clean.bash"
......
@ECHO OFF @ECHO OFF
SET DIR=%CD% SET DIR=%~dp0
SET DEPS=%DIR%\.deps SET DEPS=%DIR%\.deps
RD /SQ %DEPS% RD /S /Q %DEPS%
RD /SQ %DIR%\go\bin RD /S /Q %DIR%\go\bin
RD /SQ %DIR%\bin RD /S /Q %DIR%\bin
ECHO "Successfully clean overture" ECHO "Successfully clean overture"
...@@ -5,7 +5,7 @@ IF NOT DEFINED ANDROID_NDK_HOME ( ...@@ -5,7 +5,7 @@ IF NOT DEFINED ANDROID_NDK_HOME (
SET ANDROID_NDK_HOME=%ANDROID_HOME%\ndk-bundle SET ANDROID_NDK_HOME=%ANDROID_HOME%\ndk-bundle
) )
SET DIR=%CD% SET DIR=%~dp0
SET MIN_API=%1% SET MIN_API=%1%
SET TARGET=%DIR%\bin SET TARGET=%DIR%\bin
SET DEPS=%DIR%\.deps SET DEPS=%DIR%\.deps
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment