1apply plugin: 'sdk-files' 2 3import com.android.tools.internal.emulator.BuildEmulator 4 5task buildDefaultEmulator(type: BuildEmulator) { 6 output = new File(project.buildDir, "default") 7} 8 9task buildWindowsEmulator(type: BuildEmulator) { 10 output = new File(project.buildDir, "windows") 11 windows = true 12} 13 14sdk { 15 common(mac, linux) { 16 item('android/avd/hardware-properties.ini') { 17 into 'lib' 18 notice null 19 } 20 item("$buildDefaultEmulator.output/emulator") { 21 executable true 22 builtBy buildDefaultEmulator 23 } 24 25/* 26XAV(2014-06-17) 27TEMPORARILY DISABLE BUILD TO USE PREBUILTS FOR DEFAULT 32bit(guest) EMU + GL LIBS 28 item("$buildDefaultEmulator.output/lib") { 29 into 'lib' 30 builtBy buildDefaultEmulator 31 } 32 33 item("$buildDefaultEmulator.output/emulator-arm") { 34 executable true 35 builtBy buildDefaultEmulator 36 } 37 item("$buildDefaultEmulator.output/emulator64-arm") { 38 executable true 39 builtBy buildDefaultEmulator 40 } 41 42 item("$buildDefaultEmulator.output/emulator-mips") { 43 executable true 44 builtBy buildDefaultEmulator 45 } 46 item("$buildDefaultEmulator.output/emulator64-mips") { 47 executable true 48 builtBy buildDefaultEmulator 49 } 50 51 item("$buildDefaultEmulator.output/emulator-x86") { 52 executable true 53 builtBy buildDefaultEmulator 54 } 55 item("$buildDefaultEmulator.output/emulator64-x86") { 56 executable true 57 builtBy buildDefaultEmulator 58 } 59*/ 60 } 61 62 63// -------------- 64// XAV(2014-06-17) TEMPORARY EMULATOR FROM PREBUILTS 65 mac { 66 item("$project.rootDir/../prebuilts/tools/darwin-x86/emulator/lib") { 67 into 'lib' 68 } 69 70 item("$project.rootDir/../prebuilts/tools/darwin-x86/emulator/emulator-arm") { 71 executable true 72 } 73 item("$project.rootDir/../prebuilts/tools/darwin-x86/emulator/emulator64-arm") { 74 executable true 75 } 76 77 item("$project.rootDir/../prebuilts/tools/darwin-x86/emulator/emulator-mips") { 78 executable true 79 } 80 item("$project.rootDir/../prebuilts/tools/darwin-x86/emulator/emulator64-mips") { 81 executable true 82 } 83 84 item("$project.rootDir/../prebuilts/tools/darwin-x86/emulator/emulator-x86") { 85 executable true 86 } 87 item("$project.rootDir/../prebuilts/tools/darwin-x86/emulator/emulator64-x86") { 88 executable true 89 } 90 } 91 linux { 92 item("$project.rootDir/../prebuilts/tools/linux-x86/emulator/lib") { 93 into 'lib' 94 } 95 96 item("$project.rootDir/../prebuilts/tools/linux-x86/emulator/emulator-arm") { 97 executable true 98 } 99 item("$project.rootDir/../prebuilts/tools/linux-x86/emulator/emulator64-arm") { 100 executable true 101 } 102 103 item("$project.rootDir/../prebuilts/tools/linux-x86/emulator/emulator-mips") { 104 executable true 105 } 106 item("$project.rootDir/../prebuilts/tools/linux-x86/emulator/emulator64-mips") { 107 executable true 108 } 109 110 item("$project.rootDir/../prebuilts/tools/linux-x86/emulator/emulator-x86") { 111 executable true 112 } 113 item("$project.rootDir/../prebuilts/tools/linux-x86/emulator/emulator64-x86") { 114 executable true 115 } 116 } 117// -------------- 118 119 windows { 120 item("$buildWindowsEmulator.output/emulator.exe") { 121 builtBy buildWindowsEmulator 122 } 123 124/* 125XAV(2014-06-17) 126TEMPORARILY DISABLE BUILD TO USE PREBUILTS FOR DEFAULT 32bit(guest) EMU + GL LIBS 127 item("$buildWindowsEmulator.output/lib") { 128 into 'lib' 129 builtBy buildWindowsEmulator 130 } 131 132 item("$buildWindowsEmulator.output/emulator-arm.exe") { 133 builtBy buildWindowsEmulator 134 } 135 item("$buildWindowsEmulator.output/emulator-mips.exe") { 136 builtBy buildWindowsEmulator 137 } 138 item("$buildWindowsEmulator.output/emulator-x86.exe") { 139 builtBy buildWindowsEmulator 140 } 141*/ 142 143// -------------- 144// XAV(2014-06-17) TEMPORARY EMULATOR FROM PREBUILTS 145 item("$project.rootDir/../prebuilts/tools/windows/emulator/lib") { 146 into 'lib' 147 } 148 149 item("$project.rootDir/../prebuilts/tools/windows/emulator/emulator-arm.exe") 150 item("$project.rootDir/../prebuilts/tools/windows/emulator/emulator-mips.exe") 151 item("$project.rootDir/../prebuilts/tools/windows/emulator/emulator-x86.exe") 152// -------------- 153 154/* 155XAV(2014-06-17): DISABLE win64 exe until it's ready 156 item("$buildWindowsEmulator.output/emulator64-arm.exe") { 157 builtBy buildWindowsEmulator 158 } 159 160 item("$buildWindowsEmulator.output/emulator64-mips.exe") { 161 builtBy buildWindowsEmulator 162 } 163 164 item("$buildWindowsEmulator.output/emulator64-x86.exe") { 165 builtBy buildWindowsEmulator 166 } 167*/ 168 } 169} 170 171