diff options
author | Xavier Ducrohet <xav@google.com> | 2014-06-17 14:09:40 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@google.com> | 2014-06-17 14:28:13 -0700 |
commit | 10e77770399d5f7c84bb365d56a012b65ba512df (patch) | |
tree | 104485062335e0efda794a5a0d66f1666f4b13df /sdklauncher | |
parent | ecf2fbf21b7babfcd746ea1c622573268719eb53 (diff) | |
download | sdk-10e77770399d5f7c84bb365d56a012b65ba512df.zip sdk-10e77770399d5f7c84bb365d56a012b65ba512df.tar.gz sdk-10e77770399d5f7c84bb365d56a012b65ba512df.tar.bz2 |
AVD/SDK Launchers win build.
Change-Id: Iacff7f6bfe95a2a95b85cf00cd3e2dd34e5358b6
Diffstat (limited to 'sdklauncher')
-rw-r--r-- | sdklauncher/Android.mk | 2 | ||||
-rw-r--r-- | sdklauncher/build.gradle | 36 | ||||
-rw-r--r-- | sdklauncher/src/source/sdklauncher.c (renamed from sdklauncher/sdklauncher.c) | 0 |
3 files changed, 37 insertions, 1 deletions
diff --git a/sdklauncher/Android.mk b/sdklauncher/Android.mk index 6b317a5..3d5a989 100644 --- a/sdklauncher/Android.mk +++ b/sdklauncher/Android.mk @@ -16,7 +16,7 @@ include $(CLEAR_VARS) ifeq ($(HOST_OS),windows) LOCAL_SRC_FILES := \ - sdklauncher.c + src/source/sdklauncher.c LOCAL_CFLAGS += -Wall -Wno-unused-parameter LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE -DSH_HISTORY 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) +} + diff --git a/sdklauncher/sdklauncher.c b/sdklauncher/src/source/sdklauncher.c index 6b2c45c..6b2c45c 100644 --- a/sdklauncher/sdklauncher.c +++ b/sdklauncher/src/source/sdklauncher.c |