mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
builds two libraries, Athena and Desktop. Simulation should use Desktop, Robots should use Athena Also: - copied Driverstation and Joystick from Devices into Sim - Descreased dependency of pthreads in JNI. - removed Simulation ifdef from non simulation - added missing decprecated attribute for msvc - removed usage reporting from sim - removed unused pom.xml and constexpr Change-Id: If8eb540f9434dce17c77a245fda6985713e80b2d
47 lines
1.4 KiB
Groovy
47 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"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|