[apriltag, build] Update native utils, add apriltag impl and JNI (#4733)

Co-authored-by: Peter Johnson <johnson.peter@gmail.com>
This commit is contained in:
Thad House
2022-11-30 00:16:29 -08:00
committed by GitHub
parent 53875419a1
commit 5e74ff26d8
17 changed files with 794 additions and 36 deletions

13
shared/apriltaglib.gradle Normal file
View File

@@ -0,0 +1,13 @@
nativeUtils {
nativeDependencyContainer {
apriltaglib(getNativeDependencyTypeClass('WPIStaticMavenDependency')) {
groupId = "edu.wpi.first.thirdparty.frc2023"
artifactId = "apriltaglib"
headerClassifier = "headers"
sourceClassifier = "sources"
ext = "zip"
version = '3.2.0-1'
targetPlatforms.addAll(nativeUtils.wpi.platforms.allPlatforms)
}
}
}

View File

@@ -13,12 +13,9 @@ nativeUtils.withCrossLinuxArm64()
nativeUtils {
wpi {
configureDependencies {
wpiVersion = "-1"
niLibVersion = "2023.1.0"
opencvVersion = "4.6.0-3"
googleTestVersion = "1.11.0-4"
imguiVersion = "1.88-12"
wpimathVersion = "-1"
}
}
}
@@ -37,7 +34,7 @@ nativeUtils.platformConfigs.each {
if (it.name.contains('osx')) {
it.linker.args << '-Wl,-rpath,\'@loader_path\''
it.linker.args << "-headerpad_max_install_names"
} else {
} else if (it.name.contains('linux')) {
it.linker.args << '-Wl,-rpath,\'$ORIGIN\''
}
}

13
shared/imgui.gradle Normal file
View File

@@ -0,0 +1,13 @@
nativeUtils {
nativeDependencyContainer {
imgui(getNativeDependencyTypeClass('WPIStaticMavenDependency')) {
groupId = "edu.wpi.first.thirdparty.frc2023"
artifactId = "imgui"
headerClassifier = "headers"
sourceClassifier = "sources"
ext = "zip"
version = '1.88-12'
targetPlatforms.addAll(nativeUtils.wpi.platforms.allPlatforms)
}
}
}