-
Notifications
You must be signed in to change notification settings - Fork 69
/
build.gradle
39 lines (37 loc) · 1.17 KB
/
build.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
apply plugin: "edu.wpi.first.GradleRIO"
deploy {
targets {
target("roborio", edu.wpi.first.gradlerio.frc.RoboRIO) {
team = 5333
}
}
artifacts {
// Define my robot artifact. The FRCNativeArtifact type gives access to
// robotCommand and other tools necessary for the RoboRIO to detect
// and run our code.
artifact('robotCode', edu.wpi.first.gradlerio.frc.FRCNativeArtifact) {
targets << "roborio"
component = 'frcUserProgram'
}
}
}
model {
components {
frcUserProgram(NativeExecutableSpec) {
// Target the RoboRIO (arm-frc2019-linux-gnueabihf)
targetPlatform 'roborio'
sources.cpp {
// This is where our source files are located (src/cpp for C++ files, src/include for headers)
source {
srcDir 'src/cpp'
include '**/*.cpp'
}
exportedHeaders {
srcDir 'src/include'
include '**/*.hpp', '**/*.h'
}
}
useLibrary(it, "wpilib", "ctre", "navx")
}
}
}