This repository has been archived by the owner on Jul 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
70 lines (61 loc) · 1.84 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
plugins {
id "cpp"
id "visual-studio"
id "jaci.openrio.gradle.GradleRIO" version "2017.11.09"
}
def TEAM = 4635
// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project EmbeddedTools.
deploy {
targets {
target("roborio", jaci.openrio.gradle.frc.RoboRIO) {
team = TEAM
addresses << "roboRIO-4635-FRC." << "10.46.35.68"
}
}
artifacts {
artifact('frcNative', jaci.openrio.gradle.frc.FRCNativeArtifact) {
targets << "roborio"
component = 'frcUserProgram'
debug = false
}
}
}
// Defining my C++ project. In this case, it is called 'frcUserProgram',
// and is of the language C++.
model {
libraries {
}
components {
frcUserProgram(NativeExecutableSpec) {
// Target the RoboRIO (arm-frc-linux-gnueabihf)
targetPlatform 'roborio'
sources.cpp {
// This is where our source files are located (src/cpp for C++ files, src/include for headers)
source {
srcDirs = ['src/']
include '**/*.cpp'
}
exportedHeaders{
srcDirs = ['src/', 'include/']
include '**/*.hpp', '**/*.h'
}
// Define my dependencies. In this case, WPILib (+ friends), CTRE Toolsuite (Talon SRX) and NavX.
lib library: "wpilib"
lib library: "ctre"
lib library: "navx"
//lib library: "pathfinder"
//lib library: "boost"
}
}
}
binaries {
all {
cppCompiler.args '-g'
linker.args '-g'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
}