aboutsummaryrefslogtreecommitdiff
path: root/avdlauncher/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'avdlauncher/build.gradle')
-rw-r--r--avdlauncher/build.gradle36
1 files changed, 36 insertions, 0 deletions
diff --git a/avdlauncher/build.gradle b/avdlauncher/build.gradle
new file mode 100644
index 000000000..c28064296
--- /dev/null
+++ b/avdlauncher/build.gradle
@@ -0,0 +1,36 @@
+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)
+}
+