blob: b04ee052304b037a9b8121f9c1eb6faf34a8c798 [file] [log] [blame]
Xavier Ducrohet10e77772014-06-17 14:09:40 -07001apply plugin: 'c'
2apply plugin: 'sdk-files'
3apply plugin: 'windows-setup'
4
Raymond Chiu7f3cb912015-02-06 13:49:12 -08005model {
6 components {
7 sdkLauncher(NativeExecutableSpec) {
8 sources {
9 c {
10 source {
11 srcDir "src/source"
12 include "**/*.c"
13 }
14 }
Xavier Ducrohet10e77772014-06-17 14:09:40 -070015 }
Raymond Chiu7f3cb912015-02-06 13:49:12 -080016 targetPlatform "windows32"
Xavier Ducrohet10e77772014-06-17 14:09:40 -070017 }
18 }
19}
20
21sdk {
22 windows {
Raymond Chiu7f3cb912015-02-06 13:49:12 -080023 item( { getExeName("sdkLauncherExecutable") } ) {
Xavier Ducrohet10e77772014-06-17 14:09:40 -070024 into 'lib'
Xavier Ducrohet2bc5f0e2014-06-18 09:36:15 -070025 name 'SDK Manager.exe'
Raymond Chiu7f3cb912015-02-06 13:49:12 -080026 builtBy 'sdkLauncherExecutable'
Xavier Ducrohet10e77772014-06-17 14:09:40 -070027 }
28 }
29}
30
Xavier Ducrohet8e66edf2014-11-07 10:55:10 -080031def getExeName(String name) {
Raymond Chiu7f3cb912015-02-06 13:49:12 -080032 return binaries.getByName(name).executableFile
Xavier Ducrohet10e77772014-06-17 14:09:40 -070033}
34