aboutsummaryrefslogtreecommitdiffstats
path: root/find_java
diff options
context:
space:
mode:
authorRaymond Chiu <chiur@google.com>2015-02-10 19:40:05 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-02-10 19:40:05 +0000
commitf7757fbc3e2361e3f3dfad355ed5f82397fb55d5 (patch)
treeb72aee78010fda9934bf861164a2707d6efe50b1 /find_java
parente50f48d93f311c7143a051e2244d68c9f19507c5 (diff)
parent7f3cb91779907c12d02e8e5c5f4a6a7c510d210e (diff)
downloadsdk-f7757fbc3e2361e3f3dfad355ed5f82397fb55d5.zip
sdk-f7757fbc3e2361e3f3dfad355ed5f82397fb55d5.tar.gz
sdk-f7757fbc3e2361e3f3dfad355ed5f82397fb55d5.tar.bz2
Merge "Add targetPlatform for executable binaries" into studio-1.2-dev
Diffstat (limited to 'find_java')
-rw-r--r--find_java/build.gradle27
1 files changed, 13 insertions, 14 deletions
diff --git a/find_java/build.gradle b/find_java/build.gradle
index b359e0a..8c1ed43 100644
--- a/find_java/build.gradle
+++ b/find_java/build.gradle
@@ -2,17 +2,19 @@ apply plugin: 'cpp'
apply plugin: 'sdk-files'
apply plugin: 'windows-setup'
-executables {
- findJava {}
-}
-
-sources {
- findJava {
- cpp {
- source {
- srcDir "src/source"
- include "**/*.cpp"
+model {
+ components {
+ findJava(NativeExecutableSpec) {
+ sources {
+ cpp {
+ source {
+ srcDir "src/source"
+ include "**/*.cpp"
+ }
+ }
}
+ targetPlatform "windows32"
+ targetPlatform "windows64"
}
}
}
@@ -39,9 +41,6 @@ sdk {
}
def getExeName(String name) {
- // binaries will return a set of binaries
- def binaries = executables.findJava.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)
+ return binaries.getByName(name).executableFile
}