blob: 8c1ed439f7e247ab1e4f5523d26c7eee8e395114 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
apply plugin: 'cpp'
apply plugin: 'sdk-files'
apply plugin: 'windows-setup'
model {
components {
findJava(NativeExecutableSpec) {
sources {
cpp {
source {
srcDir "src/source"
include "**/*.cpp"
}
}
}
targetPlatform "windows32"
targetPlatform "windows64"
}
}
}
sdk {
windows {
item( { getExeName("windows32FindJavaExecutable") } ) {
into 'lib'
name 'find_java32.exe'
builtBy 'windows32FindJavaExecutable'
notice 'NOTICE'
}
item( { getExeName("windows64FindJavaExecutable") } ) {
into 'lib'
name 'find_java64.exe'
builtBy 'windows64FindJavaExecutable'
notice 'NOTICE'
}
item('find_java.bat') {
into 'lib'
notice 'NOTICE'
}
}
}
def getExeName(String name) {
return binaries.getByName(name).executableFile
}
|