Fixes halsim_print to not try and build when the 'onlyAthena' flag has been set (#685)

Building a non-athena library in athena only is not possible.
This commit is contained in:
Thad House
2017-10-25 10:52:35 -07:00
committed by Fred Silberberg
parent a6e6ae41b9
commit ce4c9edd1f

View File

@@ -3,24 +3,26 @@ description = "A simulation shared object that simply prints robot behaviors"
apply plugin: 'edu.wpi.first.NativeUtils'
apply plugin: 'cpp'
ext.skipAthena = true
if (!project.hasProperty('onlyAthena')) {
ext.skipAthena = true
apply from: "../../config.gradle"
apply from: "../../config.gradle"
model {
components {
halsim_print(NativeLibrarySpec)
}
binaries {
all {
project(':hal').addHalCompilerArguments(it)
project(':hal').addHalToLinker(it)
model {
components {
halsim_print(NativeLibrarySpec)
}
withType(StaticLibraryBinarySpec) {
it.buildable = false
binaries {
all {
project(':hal').addHalCompilerArguments(it)
project(':hal').addHalToLinker(it)
}
withType(StaticLibraryBinarySpec) {
it.buildable = false
}
}
}
apply from: 'publish.gradle'
}
apply from: 'publish.gradle'