Files
rk35xx-android14/sdk/find_java/build.gradle
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

48 lines
1.1 KiB
Groovy

apply plugin: 'cpp'
apply plugin: 'sdk-files'
apply plugin: 'windows-setup'
executables {
findJava {}
}
sources {
findJava {
cpp {
source {
srcDir "src/source"
include "**/*.cpp"
}
}
}
}
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) {
// 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)
}