diff options
Diffstat (limited to 'sdklauncher/build.gradle')
-rw-r--r-- | sdklauncher/build.gradle | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sdklauncher/build.gradle b/sdklauncher/build.gradle new file mode 100644 index 000000000..6c64f6dec --- /dev/null +++ b/sdklauncher/build.gradle @@ -0,0 +1,36 @@ +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("windows32SdkLauncherExecutable") } ) { + into 'lib' + name 'SDK Manager.exe' + builtBy 'windows32SdkLauncherExecutable' + } + } +} + +def getExeName(String name) { + // binaries will return a set of binaries + def binaries = executables.sdkLauncher.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) +} + |