blob: 12511fd89e5611c54ae836fad548afb4c94e668c [file] [log] [blame]
Xavier Ducrohet53a60292014-06-11 21:28:58 -07001apply plugin: 'cpp'
2apply plugin: 'sdk-files'
3apply plugin: 'windows-setup'
4
5executables {
6 findJava {}
7}
8
9sources {
10 findJava {
11 cpp {
12 source {
13 srcDir "src/source"
14 include "**/*.cpp"
15 }
16 }
17 }
18}
19
20sdk {
21 windows {
22 item( { getExeName("windows") } ) {
23 name 'find_java.exe'
24 builtBy 'findJavaExecutable'
25 }
26 }
27}
28
29def getExeName(String platform) {
30 // binaries will return a set of binaries
31 def binaries = executables.findJava.binaries.matching { it.name == "findJavaExecutable" }
32 // calling .exeFile on the set returns an array with the result from each item in the set...
33 return binaries.executableFile.get(0)
34}
35