From 8becab8e2fa89aaedec40e504d5eb4c7dd98e296 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 28 Aug 2024 17:09:15 +0200 Subject: [PATCH] adds platform for javacv --- gradle.properties | 13 +++++++++++++ vitrivr-engine-core/build.gradle | 2 ++ vitrivr-engine-index/build.gradle | 31 ++++++++++++++++++++++++++++++- 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 7fa61360..6a0165b6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -27,3 +27,16 @@ version_twelvemonkeys=3.11.0 version_jogl=2.3.2 version_joml=1.9.25 version_ktor=2.3.12 +version_javacpp=1.5.10 +version_artoolkitplus=2.3.1-1.5.9 +version_ffmpeg=6.1.1-1.5.10 +version_flycapture=2.13.3.31-1.5.9 +version_leptonica=1.84.1-1.5.10 +version_libdc1394=2.2.6-1.5.9 +version_libfreenect=0.5.7-1.5.9 +version_libfreenect2=0.2.0-1.5.9 +version_librealsense=1.12.4-1.5.9 +version_librealsense2=2.53.1-1.5.9 +version_openblas=0.3.26-1.5.10 +version_opencv=4.9.0-1.5.10 +version_tesseract=5.3.4-1.5.10 \ No newline at end of file diff --git a/vitrivr-engine-core/build.gradle b/vitrivr-engine-core/build.gradle index 86c51aa2..04b18b28 100755 --- a/vitrivr-engine-core/build.gradle +++ b/vitrivr-engine-core/build.gradle @@ -12,6 +12,8 @@ dependencies { /* Test Fixtures from Cottontail DB core. .*/ testFixturesImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: version_junit testFixturesImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: version_junit + + } /* Publication of vitrivr engine core to Maven Central. */ diff --git a/vitrivr-engine-index/build.gradle b/vitrivr-engine-index/build.gradle index eb664f6f..0f128bf9 100644 --- a/vitrivr-engine-index/build.gradle +++ b/vitrivr-engine-index/build.gradle @@ -4,13 +4,42 @@ plugins { id 'signing' } + + +switch (org.gradle.internal.os.OperatingSystem.current()) { + case org.gradle.internal.os.OperatingSystem.LINUX: + project.ext.set("javacppPlatform", 'linux-x86_64') + break + case org.gradle.internal.os.OperatingSystem.WINDOWS: + project.ext.set("javacppPlatform", 'windows-x86_64') + break + case org.gradle.internal.os.OperatingSystem.MAC_OS: + project.ext.set("javacppPlatform", 'macosx-x86_64') + break +} + dependencies { + /* vitrivr core dependency. */ api project(':vitrivr-engine-core') api project(':vitrivr-engine-module-m3d') /** Java CV (used for video decoding). */ - implementation group: 'org.bytedeco', name: 'javacv-platform', version: version_javacv + implementation group: 'org.bytedeco', name: 'javacv', version: version_javacv + implementation group: 'org.bytedeco', name: 'javacpp', version: version_javacpp, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'artoolkitplus', version: version_artoolkitplus, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'ffmpeg', version: version_ffmpeg, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'flycapture', version: version_flycapture, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'leptonica', version: version_leptonica, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'libdc1394', version: version_libdc1394, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'libfreenect', version: version_libfreenect, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'libfreenect2', version: version_libfreenect2, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'librealsense', version: version_librealsense, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'librealsense2', version: version_librealsense2, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'openblas', version: version_openblas, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'opencv', version: version_opencv, classifier: project.ext.javacppPlatform + implementation group: 'org.bytedeco', name: 'tesseract', version: version_tesseract, classifier: project.ext.javacppPlatform + /** ScrImage (used for image resizing). */ implementation group: 'com.sksamuel.scrimage', name: 'scrimage-core', version: version_scrimage