forked from ApesofWrath/FRC2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (45 loc) · 1.43 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
40
41
42
43
44
45
46
47
48
49
50
51
52
plugins {
id "cpp"
id "edu.wpi.first.GradleRIO" version "2019.0.0-alpha-3"
}
// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project EmbeddedTools.
deploy {
targets {
target("roborio", edu.wpi.first.gradlerio.frc.RoboRIO) {
// Team can be overridden by command line, for use with VSCode
team = getTeamOrDefault(5333)
}
}
artifacts {
artifact('frcCpp', edu.wpi.first.gradlerio.frc.FRCNativeArtifact) {
targets << "roborio"
component = 'frcUserProgram'
// Debug can be overridden by command line, for use with VSCode
debug = getDebugOrDefault(false)
}
}
}
model {
components {
frcUserProgram(NativeExecutableSpec) {
targetPlatform 'roborio'
// -g is the debug information flag. You should leave this here, unless
// you have good reason to remove it.
binaries.all {
cppCompiler.args('-g')
}
sources.cpp {
source {
srcDir 'src/main/cpp'
}
}
// Defining my dependencies. In this case, WPILib (+ friends), CTRE Toolsuite (Talon SRX)
// and NavX.
useLibrary(it, "wpilib", "ctre", "navx", "pathfinder")
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.9'
}