mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
[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:
13
shared/apriltaglib.gradle
Normal file
13
shared/apriltaglib.gradle
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
13
shared/imgui.gradle
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user