Skip to content

Commit

Permalink
Add ceres
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 committed Oct 22, 2024
1 parent 1c80870 commit dfe4dfb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions shared/ceres.gradle
Original file line number Diff line number Diff line change
@@ -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)
}
}
}
3 changes: 3 additions & 0 deletions wpical/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit dfe4dfb

Please sign in to comment.