/
build.gradle
56 lines (52 loc) · 1.52 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
53
54
55
56
apply plugin: "jaci.openrio.gradle.GradleRIO"
apply plugin: "cpp"
deploy {
targets {
target("roborio5333", jaci.openrio.gradle.frc.RoboRIO) {
team = 5333
}
}
artifacts {
artifact("robotCode", jaci.openrio.gradle.frc.FRCNativeArtifact) {
targets << "roborio5333"
component = 'frcUserProgram'
predeploy << { execute 'rm frcUserProgram' }
debug = false
}
fileCollectionArtifact('paths') {
files = project(':common').fileTree(dir: 'src/paths', include: '*.csv')
directory = '/home/lvuser/paths'
targets << "roborio5333"
}
}
}
wpi {
ctreVersion = "5.2.2.0"
wpilibVersion = "2018.4.1"
}
model {
components {
frcUserProgram(NativeExecutableSpec) {
targetPlatform 'roborio'
binaries.all {
cppCompiler.args << '-g'
}
sources.cpp {
source {
srcDir 'src/cpp'
include '**/*.cpp'
}
exportedHeaders {
srcDir 'src/include'
include '**/*.hpp', '**/*.h'
}
lib library: "wpilib"
lib library: "ctre"
lib library: "navx"
lib library: "openrio.powerup.matchData"
lib library: "pathfinder"
lib project: ":common", library: "curtinFrcCommon", linkage: "static"
}
}
}
}