Skip to content

Commit

Permalink
Java: Support original zstd artifacts placement
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
agdavydov81 committed Oct 31, 2023
1 parent e1b95af commit c544028
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
20 changes: 9 additions & 11 deletions java/dfp-math/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sourceSets {
"$rootDir/NativeUtils/java/main/src/main/java",
"$rootDir/NativeUtils/Zstandard/java/src/main/java"]

main.resources.srcDirs += "$rootDir/native/binmathJava/"
main.resources.srcDirs += "$rootDir/native/binmathJava/Release/"
}

dependencies {
Expand All @@ -38,20 +38,18 @@ dependencies {

compileJava.dependsOn ":java:nativeWrappers:makeNativeWrappersDfpMath"

def versionSuffix = versioning()["suffix"]

task copyNativeDfpMathResourcesMuslToAmd64(type: Copy) {
from "$rootDir/native/bin/linux/musl-gcc"
into "$rootDir/native/binmathJava/resources_com_epam_deltix_dfpmath/linux/amd64"
include "**/*ddfpmath${versionSuffix}.so.zst"
from "$rootDir/native/binmath/Release/linux/musl-gcc"
into "$rootDir/native/binmathJava/Release/resources_com_epam_deltix_dfpmath/linux/amd64"
include "**/*.so.zst"
}

task copyNativeDfpMathResources(type: Copy, dependsOn: copyNativeDfpMathResourcesMuslToAmd64) {
from "$rootDir/native/bin"
into "$rootDir/native/binmathJava/resources_com_epam_deltix_dfpmath"
include "**/*ddfpmath${versionSuffix}.dylib.zst"
include "**/*ddfpmath${versionSuffix}.so.zst"
include "**/*ddfpmath${versionSuffix}.dll.zst"
from "$rootDir/native/binmath/Release"
into "$rootDir/native/binmathJava/Release/resources_com_epam_deltix_dfpmath"
include "**/*.dylib.zst"
include "**/*.so.zst"
include "**/*.dll.zst"
exclude 'linux/amd64/**'
exclude 'linux/musl-gcc/**'
}
Expand Down
20 changes: 9 additions & 11 deletions java/dfpNativeTests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sourceSets {
"$rootDir/NativeUtils/java/main/src/main/java",
"$rootDir/NativeUtils/Zstandard/java/src/main/java"]

test.resources.srcDirs += "$rootDir/native/binJava/"
test.resources.srcDirs += "$rootDir/native/binJava/Release/"
}

dependencies {
Expand All @@ -31,20 +31,18 @@ dependencies {

compileJava.dependsOn ":java:nativeWrappers:makeNativeWrappersDfp"

def versionSuffix = versioning()["suffix"]

task copyNativeDfpResourcesMuslToAmd64(type: Copy) {
from "$rootDir/native/bin/linux/musl-gcc"
into "$rootDir/native/binJava/resources_com_epam_deltix_dfp/linux/amd64"
include "**/*ddfp${versionSuffix}.so.zst"
from "$rootDir/native/bin/Release/linux/musl-gcc"
into "$rootDir/native/binJava/Release/resources_com_epam_deltix_dfp/linux/amd64"
include "**/*.so.zst"
}

task copyNativeDfpResources(type: Copy, dependsOn: copyNativeDfpResourcesMuslToAmd64) {
from "$rootDir/native/bin"
into "$rootDir/native/binJava/resources_com_epam_deltix_dfp"
include "**/*ddfp${versionSuffix}.dylib.zst"
include "**/*ddfp${versionSuffix}.so.zst"
include "**/*ddfp${versionSuffix}.dll.zst"
from "$rootDir/native/bin/Release"
into "$rootDir/native/binJava/Release/resources_com_epam_deltix_dfp"
include "**/*.dylib.zst"
include "**/*.so.zst"
include "**/*.dll.zst"
exclude 'linux/amd64/**'
exclude 'linux/musl-gcc/**'
}
Expand Down

0 comments on commit c544028

Please sign in to comment.