Files
allwpilib/simulation/halsim_print/build.gradle
Thad House 8106fbdbea Removes custom CONFIG_ATHENA compiler directive (#796)
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.
2017-12-08 21:40:11 -08:00

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'
}