aboutsummaryrefslogtreecommitdiffstats
path: root/sdklauncher
diff options
context:
space:
mode:
Diffstat (limited to 'sdklauncher')
-rw-r--r--sdklauncher/Android.mk2
-rw-r--r--sdklauncher/build.gradle36
-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