From 7f3cb91779907c12d02e8e5c5f4a6a7c510d210e Mon Sep 17 00:00:00 2001 From: Raymond Chiu Date: Fri, 6 Feb 2015 13:49:12 -0800 Subject: Add targetPlatform for executable binaries Make dsl changes due to gradle update. Change-Id: I65729783f5c8f985ed31a231e7dd9a0b9e50f7b3 --- emulator/mksdcard/build.gradle | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'emulator') diff --git a/emulator/mksdcard/build.gradle b/emulator/mksdcard/build.gradle index 677f763..bd029b2 100644 --- a/emulator/mksdcard/build.gradle +++ b/emulator/mksdcard/build.gradle @@ -2,17 +2,20 @@ apply plugin: 'c' apply plugin: 'sdk-files' apply plugin: 'native-setup' -executables { - mksdcard {} -} - -sources { - mksdcard { - c { - source { - srcDir "src/source" - include "**/*.c" +model { + components { + mksdcard(NativeExecutableSpec) { + sources { + c { + source { + srcDir "src/source" + include "**/*.c" + } + } } + targetPlatform "darwin" + targetPlatform "linux" + targetPlatform "windows32" } } } @@ -43,9 +46,6 @@ sdk { } def getExeName(String platform) { - // binaries will return a set of binaries - def binaries = executables.mksdcard.binaries.matching { it.name == "${platform}MksdcardExecutable" } - // calling .exeFile on the set returns an array with the result from each item in the set... - return binaries.executableFile.get(0) + return binaries.getByName("${platform}MksdcardExecutable").executableFile } -- cgit v1.1