Xavier Ducrohet | f50b728 | 2014-05-12 10:58:07 -0700 | [diff] [blame^] | 1 | apply plugin: 'sdk-files' |
| 2 | |
| 3 | task buildDefaultEmulator << { |
| 4 | Process p = "$projectDir/android-rebuild.sh --out-dir=$project.buildDir".execute() |
| 5 | println p.text |
| 6 | } |
| 7 | |
| 8 | task buildWindowsEmulator << { |
| 9 | Process p = "$projectDir/android-rebuild.sh --mingw --out-dir=$project.buildDir".execute() |
| 10 | println p.text |
| 11 | } |
| 12 | |
| 13 | sdk { |
| 14 | common(mac, linux) { |
| 15 | path("$project.buildDir/lib") { |
| 16 | into 'lib' |
| 17 | builtBy buildDefaultEmulator |
| 18 | } |
| 19 | |
| 20 | path("$project.buildDir/emulator") { |
| 21 | executable true |
| 22 | builtBy buildDefaultEmulator |
| 23 | } |
| 24 | |
| 25 | path("$project.buildDir/emulator-arm") { |
| 26 | executable true |
| 27 | builtBy buildDefaultEmulator |
| 28 | } |
| 29 | path("$project.buildDir/emulator64-arm") { |
| 30 | executable true |
| 31 | builtBy buildDefaultEmulator |
| 32 | } |
| 33 | |
| 34 | path("$project.buildDir/emulator-mips") { |
| 35 | executable true |
| 36 | builtBy buildDefaultEmulator |
| 37 | } |
| 38 | path("$project.buildDir/emulator64-mips") { |
| 39 | executable true |
| 40 | builtBy buildDefaultEmulator |
| 41 | } |
| 42 | |
| 43 | path("$project.buildDir/emulator-x86") { |
| 44 | executable true |
| 45 | builtBy buildDefaultEmulator |
| 46 | } |
| 47 | path("$project.buildDir/emulator64-x86") { |
| 48 | executable true |
| 49 | builtBy buildDefaultEmulator |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | windows { |
| 54 | path("$project.buildDir/lib") { |
| 55 | into 'lib' |
| 56 | builtBy buildWindowsEmulator |
| 57 | } |
| 58 | |
| 59 | path("$project.buildDir/emulator.exe") { |
| 60 | builtBy buildWindowsEmulator |
| 61 | } |
| 62 | |
| 63 | path("$project.buildDir/emulator-arm.exe") { |
| 64 | builtBy buildWindowsEmulator |
| 65 | } |
| 66 | path("$project.buildDir/emulator64-arm.exe") { |
| 67 | builtBy buildWindowsEmulator |
| 68 | } |
| 69 | |
| 70 | path("$project.buildDir/emulator-mips.exe") { |
| 71 | builtBy buildWindowsEmulator |
| 72 | } |
| 73 | path("$project.buildDir/emulator64-mips.exe") { |
| 74 | builtBy buildWindowsEmulator |
| 75 | } |
| 76 | |
| 77 | path("$project.buildDir/emulator-x86.exe") { |
| 78 | builtBy buildWindowsEmulator |
| 79 | } |
| 80 | path("$project.buildDir/emulator64-x86.exe") { |
| 81 | builtBy buildWindowsEmulator |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | |