Add jna lib to jvm jar resources
This commit is contained in:
parent
e6fabc81b3
commit
90c4fd3328
@ -4,18 +4,6 @@ plugins {
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
test {
|
||||
environment "LD_LIBRARY_PATH", file("${projectDir}/libs/x86_64_linux").absolutePath
|
||||
testLogging {
|
||||
events "PASSED", "SKIPPED", "FAILED", "STANDARD_OUT", "STANDARD_ERROR"
|
||||
}
|
||||
}
|
||||
|
||||
//task buildRust(type: Exec) {
|
||||
// workingDir '../'
|
||||
// commandLine './build.sh'
|
||||
//}
|
||||
|
||||
dependencies {
|
||||
implementation platform('org.jetbrains.kotlin:kotlin-bom')
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
|
4
build.sh
4
build.sh
@ -10,8 +10,8 @@ export LD_LIBRARY_PATH=`pwd`/target/debug
|
||||
cc cc/bdk_ffi_test.c -o cc/bdk_ffi_test -L target/debug -l bdk_ffi -l pthread -l dl -l m
|
||||
|
||||
# bdk-kotlin jar
|
||||
mkdir -p bdk-kotlin/jvm/libs/x86_64_linux
|
||||
cp target/debug/libbdk_ffi.so bdk-kotlin/jvm/libs/x86_64_linux
|
||||
mkdir -p bdk-kotlin/jvm/src/main/resources/jnaLibs/x86_64_linux
|
||||
cp target/debug/libbdk_ffi.so bdk-kotlin/jvm/src/main/resources/jnaLibs/x86_64_linux
|
||||
|
||||
(cd bdk-kotlin && gradle :jvm:build)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user