blob: dc089515536d8585116a5c8da0a7474f3eb1a46a [file] [log] [blame]
Xavier Ducrohet10e77772014-06-17 14:09:40 -07001apply plugin: 'c'
2apply plugin: 'sdk-files'
3apply plugin: 'windows-setup'
4
5executables {
6 avdLauncher {}
7}
8
9sources {
10 avdLauncher {
11 c {
12 source {
13 srcDir "src/source"
14 include "**/*.c"
15 }
16 }
17 }
18}
19
20sdk {
21 windows {
22 item( { getExeName("windows") } ) {
23 into 'lib'
Xavier Ducrohet18d93812014-06-18 21:06:19 -070024 name 'AVD Manager.exe'
Xavier Ducrohet10e77772014-06-17 14:09:40 -070025 builtBy 'avdLauncherExecutable'
26 }
27 }
28}
29
30def getExeName(String platform) {
31 // binaries will return a set of binaries
32 def binaries = executables.avdLauncher.binaries.matching { it.name == "avdLauncherExecutable" }
33 // calling .exeFile on the set returns an array with the result from each item in the set...
34 return binaries.executableFile.get(0)
35}
36