You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
790 B

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("windows32AvdLauncherExecutable") } ) {
into 'lib'
name 'AVD Manager.exe'
builtBy 'windows32AvdLauncherExecutable'
}
}
}
def getExeName(String name) {
// binaries will return a set of binaries
def binaries = executables.avdLauncher.binaries.matching { it.name == name }
// calling .exeFile on the set returns an array with the result from each item in the set...
return binaries.executableFile.get(0)
}