mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
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:
committed by
Fred Silberberg
parent
a6e6ae41b9
commit
ce4c9edd1f
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user