aboutsummaryrefslogtreecommitdiffstats
path: root/sdklauncher/build.gradle
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@google.com>2014-06-17 14:09:40 -0700
committerXavier Ducrohet <xav@google.com>2014-06-17 14:28:13 -0700
commit10e77770399d5f7c84bb365d56a012b65ba512df (patch)
tree104485062335e0efda794a5a0d66f1666f4b13df /sdklauncher/build.gradle
parentecf2fbf21b7babfcd746ea1c622573268719eb53 (diff)
downloadsdk-10e77770399d5f7c84bb365d56a012b65ba512df.zip
sdk-10e77770399d5f7c84bb365d56a012b65ba512df.tar.gz
sdk-10e77770399d5f7c84bb365d56a012b65ba512df.tar.bz2
AVD/SDK Launchers win build.
Change-Id: Iacff7f6bfe95a2a95b85cf00cd3e2dd34e5358b6
Diffstat (limited to 'sdklauncher/build.gradle')
-rw-r--r--sdklauncher/build.gradle36
1 files changed, 36 insertions, 0 deletions
diff --git a/sdklauncher/build.gradle b/sdklauncher/build.gradle
new file mode 100644
index 0000000..48ef10a
--- /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("windows") } ) {
+ into 'lib'
+ name 'SDK Launcher.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)
+}
+