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