blob: 61b41e1ae158626d3d4623f7412feda1a1fb670f [file] [log] [blame]
apply plugin: 'c'
apply plugin: 'sdk-files'
apply plugin: 'windows-setup'
executables {
sdkLauncher {}
}
sources {
sdkLauncher {
c {
source {
srcDir "src/source"
include "**/*.c"
}
}
}
}
sdk {
windows {
item( { getExeName("windows") } ) {
into 'lib'
name 'SDK Manager.exe'
builtBy 'sdkLauncherExecutable'
}
}
}
def getExeName(String platform) {
// binaries will return a set of binaries
def binaries = executables.sdkLauncher.binaries.matching { it.name == "sdkLauncherExecutable" }
// calling .exeFile on the set returns an array with the result from each item in the set...
return binaries.executableFile.get(0)
}