diff options
author | Xavier Ducrohet <xav@google.com> | 2014-05-12 16:42:41 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@google.com> | 2014-05-12 16:42:51 -0700 |
commit | f891ab3c6fa1dc561bb0454349790173df6b0396 (patch) | |
tree | cafc7078bdb91c242ea3958da3bb1fe68bc2ee2c /build.gradle | |
parent | d4878f00058ba025f4b159e546046d19a2d8ef03 (diff) | |
download | qemu-f891ab3c6fa1dc561bb0454349790173df6b0396.tar.gz |
Use new custom task to build emulator.
Change-Id: Ib087e2de998b0a10c8f851e498beb2157f11d5bb
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/build.gradle b/build.gradle index 0a6caee3d8..a5dfda1225 100644 --- a/build.gradle +++ b/build.gradle @@ -1,83 +1,84 @@ apply plugin: 'sdk-files' -task buildDefaultEmulator << { - Process p = "$projectDir/android-rebuild.sh --out-dir=$project.buildDir".execute() - println p.text +import com.android.tools.internal.emulator.BuildEmulator + +task buildDefaultEmulator(type: BuildEmulator) { + output = new File(project.buildDir, "default") } -task buildWindowsEmulator << { - Process p = "$projectDir/android-rebuild.sh --mingw --out-dir=$project.buildDir".execute() - println p.text +task buildWindowsEmulator(type: BuildEmulator) { + output = new File(project.buildDir, "windows") + windows = true } sdk { common(mac, linux) { - path("$project.buildDir/lib") { + path("$buildDefaultEmulator.output/lib") { into 'lib' builtBy buildDefaultEmulator } - path("$project.buildDir/emulator") { + path("$buildDefaultEmulator.output/emulator") { executable true builtBy buildDefaultEmulator } - path("$project.buildDir/emulator-arm") { + path("$buildDefaultEmulator.output/emulator-arm") { executable true builtBy buildDefaultEmulator } - path("$project.buildDir/emulator64-arm") { + path("$buildDefaultEmulator.output/emulator64-arm") { executable true builtBy buildDefaultEmulator } - path("$project.buildDir/emulator-mips") { + path("$buildDefaultEmulator.output/emulator-mips") { executable true builtBy buildDefaultEmulator } - path("$project.buildDir/emulator64-mips") { + path("$buildDefaultEmulator.output/emulator64-mips") { executable true builtBy buildDefaultEmulator } - path("$project.buildDir/emulator-x86") { + path("$buildDefaultEmulator.output/emulator-x86") { executable true builtBy buildDefaultEmulator } - path("$project.buildDir/emulator64-x86") { + path("$buildDefaultEmulator.output/emulator64-x86") { executable true builtBy buildDefaultEmulator } } windows { - path("$project.buildDir/lib") { + path("$buildWindowsEmulator.output/lib") { into 'lib' builtBy buildWindowsEmulator } - path("$project.buildDir/emulator.exe") { + path("$buildWindowsEmulator.output/emulator.exe") { builtBy buildWindowsEmulator } - path("$project.buildDir/emulator-arm.exe") { + path("$buildWindowsEmulator.output/emulator-arm.exe") { builtBy buildWindowsEmulator } - path("$project.buildDir/emulator64-arm.exe") { + path("$buildWindowsEmulator.output/emulator64-arm.exe") { builtBy buildWindowsEmulator } - path("$project.buildDir/emulator-mips.exe") { + path("$buildWindowsEmulator.output/emulator-mips.exe") { builtBy buildWindowsEmulator } - path("$project.buildDir/emulator64-mips.exe") { + path("$buildWindowsEmulator.output/emulator64-mips.exe") { builtBy buildWindowsEmulator } - path("$project.buildDir/emulator-x86.exe") { + path("$buildWindowsEmulator.output/emulator-x86.exe") { builtBy buildWindowsEmulator } - path("$project.buildDir/emulator64-x86.exe") { + path("$buildWindowsEmulator.output/emulator64-x86.exe") { builtBy buildWindowsEmulator } } |