mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
In roborio GCC 5.5, __FRC_ROBORIO__ has been added directly to the compiler. So we can instead use that to detect if we are build for the roborio, and in a much more reliable way.
40 lines
1008 B
Groovy
40 lines
1008 B
Groovy
description = "A simulation shared object that simply prints robot behaviors"
|
|
|
|
apply plugin: 'edu.wpi.first.NativeUtils'
|
|
apply plugin: 'cpp'
|
|
|
|
if (!project.hasProperty('onlyAthena')) {
|
|
ext.skipAthena = true
|
|
|
|
apply from: "../../config.gradle"
|
|
|
|
|
|
model {
|
|
components {
|
|
halsim_print(NativeLibrarySpec) {
|
|
sources {
|
|
cpp {
|
|
source {
|
|
srcDirs = [ 'src/main/native/cpp' ]
|
|
includes = ["**/*.cpp"]
|
|
}
|
|
exportedHeaders {
|
|
srcDirs = ["src/main/native/include"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
binaries {
|
|
all {
|
|
project(':hal').addHalToLinker(it)
|
|
}
|
|
withType(StaticLibraryBinarySpec) {
|
|
it.buildable = false
|
|
}
|
|
}
|
|
}
|
|
apply from: 'publish.gradle'
|
|
}
|