mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Updates the gradle version to 2.14. In doing so, some model elements have changed. Additionally, some redundant elements have been removed from the gradle scripts.
50 lines
1.5 KiB
Groovy
50 lines
1.5 KiB
Groovy
// There are two hal libraries that are built
|
|
// - desktop which is used by simulation (gcc/msvc)
|
|
// - athena which is used by the roborio (arm)
|
|
|
|
apply plugin: 'cpp'
|
|
|
|
model {
|
|
components {
|
|
HALAthena(NativeLibrarySpec) {
|
|
targetPlatform 'arm'
|
|
binaries.all {
|
|
tasks.withType(CppCompile) {
|
|
addNiLibraryLinks(linker, targetPlatform)
|
|
}
|
|
}
|
|
sources {
|
|
cpp {
|
|
source {
|
|
srcDirs = ["lib/athena", "lib/athena/FRC_FPGA_ChipObject", "lib/shared"]
|
|
includes = ["**/*.cpp"]
|
|
}
|
|
exportedHeaders {
|
|
srcDirs = ["include", "lib/athena", "lib/athena/FRC_FPGA_ChipObject", "lib/shared"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// HALSim(NativeLibrarySpec) {
|
|
// binaries.all {
|
|
// if (toolChain in Gcc){
|
|
// cppCompiler.args "-std=c++1y"
|
|
// }
|
|
// }
|
|
//
|
|
// sources {
|
|
// cpp {
|
|
// source {
|
|
// srcDirs = ["lib/sim", "lib/shared"]
|
|
// includes = ["**/*.cpp"]
|
|
// }
|
|
// exportedHeaders {
|
|
// srcDirs = ["include", "lib/sim", "lib/shared"]
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
}
|
|
}
|