Xavier Ducrohet | 10e7777 | 2014-06-17 14:09:40 -0700 | [diff] [blame] | 1 | apply plugin: 'c' |
| 2 | apply plugin: 'sdk-files' |
| 3 | apply plugin: 'windows-setup' |
| 4 | |
| 5 | executables { |
| 6 | avdLauncher {} |
| 7 | } |
| 8 | |
| 9 | sources { |
| 10 | avdLauncher { |
| 11 | c { |
| 12 | source { |
| 13 | srcDir "src/source" |
| 14 | include "**/*.c" |
| 15 | } |
| 16 | } |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | sdk { |
| 21 | windows { |
Xavier Ducrohet | 8e66edf | 2014-11-07 10:55:10 -0800 | [diff] [blame] | 22 | item( { getExeName("windows32AvdLauncherExecutable") } ) { |
Xavier Ducrohet | 10e7777 | 2014-06-17 14:09:40 -0700 | [diff] [blame] | 23 | into 'lib' |
Xavier Ducrohet | 18d9381 | 2014-06-18 21:06:19 -0700 | [diff] [blame] | 24 | name 'AVD Manager.exe' |
Xavier Ducrohet | 8e66edf | 2014-11-07 10:55:10 -0800 | [diff] [blame] | 25 | builtBy 'windows32AvdLauncherExecutable' |
Xavier Ducrohet | 10e7777 | 2014-06-17 14:09:40 -0700 | [diff] [blame] | 26 | } |
| 27 | } |
| 28 | } |
| 29 | |
Xavier Ducrohet | 8e66edf | 2014-11-07 10:55:10 -0800 | [diff] [blame] | 30 | def getExeName(String name) { |
Xavier Ducrohet | 10e7777 | 2014-06-17 14:09:40 -0700 | [diff] [blame] | 31 | // binaries will return a set of binaries |
Xavier Ducrohet | 8e66edf | 2014-11-07 10:55:10 -0800 | [diff] [blame] | 32 | def binaries = executables.avdLauncher.binaries.matching { it.name == name } |
Xavier Ducrohet | 10e7777 | 2014-06-17 14:09:40 -0700 | [diff] [blame] | 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 | |