Skip to content

Commit 6cbbb61

Browse files
committed
Expand native library search paths for cmake/Windows
1 parent 386e66b commit 6cbbb61

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,22 @@ task generateJNI(type: Exec) {
8484
}
8585

8686
test {
87-
systemProperty "java.library.path", "$buildDir/install/lib/"
87+
systemProperty "java.library.path", "$buildDir/install/lib:$buildDir/install/lib64:$buildDir/install/bin:$buildDir/tiledb_jni:$buildDir/tiledb_jni/Release"
8888
testLogging {
8989
showStandardStreams = true
9090
}
9191
}
9292

9393
jar {
9494
into(new File('lib', osdetector.classifier).toString()) {
95+
// Linux and macOS
9596
from file("$buildDir/install/lib/${System.mapLibraryName("tiledb")}")
96-
from file("$buildDir/install/lib/${System.mapLibraryName("tiledbjni")}")
9797
from file("$buildDir/install/lib64/${System.mapLibraryName("tiledb")}")
98-
from file("$buildDir/install/lib64/${System.mapLibraryName("tiledbjni")}")
98+
from file("$buildDir/tiledb_jni/${System.mapLibraryName("tiledbjni")}")
99+
// Windows
100+
from file("$buildDir/install/bin/${System.mapLibraryName("tbb")}")
101+
from file("$buildDir/install/bin/${System.mapLibraryName("tiledb")}")
102+
from file("$buildDir/tiledb_jni/Release/${System.mapLibraryName("tiledbjni")}")
99103
}
100104

101105
manifest {

0 commit comments

Comments
 (0)