mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
HalDesktop is not nessecary right now, and it breaks the mac build This will be revisited once the NI Driverstation is needed for sim Change-Id: I2c665d0abfaeee3b9d20d4d8aad8d4eed8a7b38b
48 lines
1.4 KiB
Groovy
48 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'
|
|
tasks.withType(CppCompile) {
|
|
dependsOn addNiLibraryLinks
|
|
}
|
|
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"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// HALDesktop(NativeLibrarySpec) {
|
|
// binaries.all {
|
|
// if (toolChain in Gcc){
|
|
// cppCompiler.args "-std=c++1y"
|
|
// }
|
|
// }
|
|
//
|
|
// sources {
|
|
// cpp {
|
|
// source {
|
|
// srcDirs = ["lib/Desktop", "lib/Shared"]
|
|
// includes = ["**/*.cpp"]
|
|
// }
|
|
// exportedHeaders {
|
|
// srcDirs = ["include", "lib/Desktop", "lib/Shared"]
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
}
|
|
}
|