aboutsummaryrefslogtreecommitdiffstats
path: root/avdlauncher
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@google.com>2015-02-12 13:14:37 -0800
committerXavier Ducrohet <xav@google.com>2015-02-12 13:14:37 -0800
commit4cab9f439720ff9fd914f8bfcbf6b72b04a50d6b (patch)
tree6015ffd3940dedacfbaa33ad0a0165358bf35785 /avdlauncher
parentf7757fbc3e2361e3f3dfad355ed5f82397fb55d5 (diff)
downloadsdk-4cab9f439720ff9fd914f8bfcbf6b72b04a50d6b.zip
sdk-4cab9f439720ff9fd914f8bfcbf6b72b04a50d6b.tar.gz
sdk-4cab9f439720ff9fd914f8bfcbf6b72b04a50d6b.tar.bz2
Revert "Add targetPlatform for executable binaries"
This reverts commit 7f3cb91779907c12d02e8e5c5f4a6a7c510d210e.
Diffstat (limited to 'avdlauncher')
-rw-r--r--avdlauncher/build.gradle30
1 files changed, 16 insertions, 14 deletions
diff --git a/avdlauncher/build.gradle b/avdlauncher/build.gradle
index b0e2c90..c280642 100644
--- a/avdlauncher/build.gradle
+++ b/avdlauncher/build.gradle
@@ -2,33 +2,35 @@ apply plugin: 'c'
apply plugin: 'sdk-files'
apply plugin: 'windows-setup'
-model {
- components {
- avdLauncher(NativeExecutableSpec) {
- sources {
- c {
- source {
- srcDir "src/source"
- include "**/*.c"
- }
- }
+executables {
+ avdLauncher {}
+}
+
+sources {
+ avdLauncher {
+ c {
+ source {
+ srcDir "src/source"
+ include "**/*.c"
}
- targetPlatform "windows32"
}
}
}
sdk {
windows {
- item( { getExeName("avdLauncherExecutable") } ) {
+ item( { getExeName("windows32AvdLauncherExecutable") } ) {
into 'lib'
name 'AVD Manager.exe'
- builtBy 'avdLauncherExecutable'
+ builtBy 'windows32AvdLauncherExecutable'
}
}
}
def getExeName(String name) {
- return binaries.getByName(name).executableFile
+ // 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)
}