-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.gradle
43 lines (37 loc) · 985 Bytes
/
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
import org.gradle.internal.os.OperatingSystem
nativeUtils.addWpiNativeUtils()
nativeUtils.withRoboRIO()
nativeUtils {
wpi {
configureDependencies {
wpiVersion = "2020.+"
niLibVersion = "2020.7.2"
opencvVersion = "3.4.7-2"
googleTestVersion = "1.9.0-3-437e100"
}
}
}
nativeUtils.wpi.addWarnings()
nativeUtils.wpi.addWarningsAsErrors()
nativeUtils.setSinglePrintPerPlatform()
nativeUtils.configurePlatform(nativeUtils.wpi.platforms.roborio) {
cCompiler.args << '-std=c11'
}
model {
components {
all {
targetPlatform nativeUtils.wpi.platforms.roborio
}
}
// Uncomment this, and remove above lines to enable builds for all platforms
// components {
// all {
// nativeUtils.useAllPlatforms(it)
// }
// }
binaries {
withType(NativeBinarySpec).all {
nativeUtils.usePlatformArguments(it)
}
}
}