2017-10-18 02:27:55 -05:00
|
|
|
description = "A simulation shared object that simply prints robot behaviors"
|
|
|
|
|
|
|
|
|
|
apply plugin: 'edu.wpi.first.NativeUtils'
|
|
|
|
|
apply plugin: 'cpp'
|
|
|
|
|
|
2017-10-25 10:52:35 -07:00
|
|
|
if (!project.hasProperty('onlyAthena')) {
|
|
|
|
|
ext.skipAthena = true
|
2017-10-18 02:27:55 -05:00
|
|
|
|
2017-10-25 10:52:35 -07:00
|
|
|
apply from: "../../config.gradle"
|
2017-10-18 02:27:55 -05:00
|
|
|
|
|
|
|
|
|
2017-10-25 10:52:35 -07:00
|
|
|
model {
|
|
|
|
|
components {
|
2017-11-10 19:26:33 -08:00
|
|
|
halsim_print(NativeLibrarySpec) {
|
|
|
|
|
sources {
|
|
|
|
|
cpp {
|
|
|
|
|
source {
|
|
|
|
|
srcDirs = [ 'src/main/native/cpp' ]
|
|
|
|
|
includes = ["**/*.cpp"]
|
|
|
|
|
}
|
|
|
|
|
exportedHeaders {
|
|
|
|
|
srcDirs = ["src/main/native/include"]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-18 02:27:55 -05:00
|
|
|
}
|
2017-10-25 10:52:35 -07:00
|
|
|
|
|
|
|
|
binaries {
|
|
|
|
|
all {
|
|
|
|
|
project(':hal').addHalCompilerArguments(it)
|
|
|
|
|
project(':hal').addHalToLinker(it)
|
|
|
|
|
}
|
|
|
|
|
withType(StaticLibraryBinarySpec) {
|
|
|
|
|
it.buildable = false
|
|
|
|
|
}
|
2017-10-18 02:27:55 -05:00
|
|
|
}
|
|
|
|
|
}
|
2017-10-25 10:52:35 -07:00
|
|
|
apply from: 'publish.gradle'
|
2017-10-18 02:27:55 -05:00
|
|
|
}
|