diff --git a/shared/ceres.gradle b/shared/ceres.gradle new file mode 100644 index 00000000000..e6629acc9f5 --- /dev/null +++ b/shared/ceres.gradle @@ -0,0 +1,13 @@ +nativeUtils { + nativeDependencyContainer { + ceres(getNativeDependencyTypeClass('WPIStaticMavenDependency')) { + groupId = "edu.wpi.first.thirdparty.frc2024" + artifactId = "ceres" + headerClassifier = "headers" + sourceClassifier = "sources" + ext = "zip" + version = '2.2-1' + targetPlatforms.addAll(nativeUtils.wpi.platforms.allPlatforms) + } + } +} diff --git a/wpical/build.gradle b/wpical/build.gradle index 240b734ac38..ba440035ded 100644 --- a/wpical/build.gradle +++ b/wpical/build.gradle @@ -25,6 +25,8 @@ apply from: "${rootDir}/shared/config.gradle" def wpilibVersionFileInput = file("src/main/generate/WPILibVersion.cpp.in") def wpilibVersionFileOutput = file("$buildDir/generated/main/cpp/WPILibVersion.cpp") +apply from: "${rootDir}/shared/ceres.gradle" + task generateCppVersion() { description = 'Generates the wpilib version class' group = 'WPILib' @@ -108,6 +110,7 @@ model { lib project: ':wpiutil', library: 'wpiutil', linkage: 'static' lib project: ':wpigui', library: 'wpigui', linkage: 'static' lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' + nativeUtils.useRequiredLibrary(it, 'ceres') if (it.targetPlatform.operatingSystem.isWindows()) { it.linker.args << 'Gdi32.lib' << 'Shell32.lib' << 'd3d11.lib' << 'd3dcompiler.lib' } else if (it.targetPlatform.operatingSystem.isMacOsX()) {