forked from Team-6615-Bellevillains/sysid-nobackward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.gradle
45 lines (36 loc) · 1.09 KB
/
config.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Add WPI extensions.
apply plugin: 'edu.wpi.first.NativeUtils'
nativeUtils.addWpiNativeUtils()
nativeUtils.wpi.addVendorDeps()
nativeUtils.wpi.vendorDeps.nativeVendor.initializeNativeDependencies()
nativeUtils.wpi.vendorDeps.addVendorReposToMaven(true)
nativeUtils.wpi.configureDependencies {
wpiVersion = "2023.+"
niLibVersion = "2023.3.0"
googleTestVersion = "1.12.1-1"
}
nativeUtils.wpi.addWarnings()
if (project.name != 'wpilibcExamples') {
nativeUtils.wpi.addReleaseSymbolGeneration()
}
nativeUtils.setSinglePrintPerPlatform()
nativeUtils.enableSourceLink()
nativeUtils.platformConfigs.each {
if (it.name.contains('windows')) {
return
}
if (it.name.contains('osx')) {
it.linker.args << '-Wl,-rpath,\'@loader_path\''
it.linker.args << "-headerpad_max_install_names"
} else {
it.linker.args << '-Wl,-rpath,\'$ORIGIN\''
}
}
nativeUtils.platformConfigs.linuxathena.linker.args.add("-Wl,--fatal-warnings")
model {
binaries {
withType(NativeBinarySpec).all {
nativeUtils.usePlatformArguments(it)
}
}
}