mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Could not include the ctre and NetComm folders, as those would require changing ctre dependancies. Also removes a duplicated FRCComm header that was not needed.
50 lines
1.4 KiB
Groovy
50 lines
1.4 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/FRC_FPGA_ChipObject"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 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"]
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
}
|
|
}
|