blob: 6c64f6dec1c43403682611ce75513e487e19865f [file] [log] [blame]
Xavier Ducrohet10e77772014-06-17 14:09:40 -07001apply plugin: 'c'
2apply plugin: 'sdk-files'
3apply plugin: 'windows-setup'
4
Xavier Ducrohet4cab9f42015-02-12 13:14:37 -08005executables {
6 sdkLauncher {}
7}
8
9sources {
10 sdkLauncher {
11 c {
12 source {
13 srcDir "src/source"
14 include "**/*.c"
Xavier Ducrohet10e77772014-06-17 14:09:40 -070015 }
16 }
17 }
18}
19
20sdk {
21 windows {
Xavier Ducrohet4cab9f42015-02-12 13:14:37 -080022 item( { getExeName("windows32SdkLauncherExecutable") } ) {
Xavier Ducrohet10e77772014-06-17 14:09:40 -070023 into 'lib'
Xavier Ducrohet2bc5f0e2014-06-18 09:36:15 -070024 name 'SDK Manager.exe'
Xavier Ducrohet4cab9f42015-02-12 13:14:37 -080025 builtBy 'windows32SdkLauncherExecutable'
Xavier Ducrohet10e77772014-06-17 14:09:40 -070026 }
27 }
28}
29
Xavier Ducrohet8e66edf2014-11-07 10:55:10 -080030def getExeName(String name) {
Xavier Ducrohet4cab9f42015-02-12 13:14:37 -080031 // binaries will return a set of binaries
32 def binaries = executables.sdkLauncher.binaries.matching { it.name == name }
33 // calling .exeFile on the set returns an array with the result from each item in the set...
34 return binaries.executableFile.get(0)
Xavier Ducrohet10e77772014-06-17 14:09:40 -070035}
36