mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
* Modify halsim to be able to load extension libraries if they are available. It will read the list of libraries to try from the HALSIM_EXTENSIONS environment variable. Multiple libraries can be given if separated by ';' (Windows) or ':' (Unix). The library must have an 'HALSIM_InitExtension' method that returns >= 0 on success. The library is expected to use the interface expressed by hal/src/src/main/native/include/MockData * Add a simple halsim library that just prints robot values. This makes a good test bed for cross platform purposes, and provides the ultimate in light weight simulators. This initial version only prints PWM values.
27 lines
539 B
Groovy
27 lines
539 B
Groovy
description = "A simulation shared object that simply prints robot behaviors"
|
|
|
|
apply plugin: 'edu.wpi.first.NativeUtils'
|
|
apply plugin: 'cpp'
|
|
|
|
ext.skipAthena = true
|
|
|
|
apply from: "../../config.gradle"
|
|
|
|
|
|
model {
|
|
components {
|
|
halsim_print(NativeLibrarySpec)
|
|
}
|
|
|
|
binaries {
|
|
all {
|
|
project(':hal').addHalCompilerArguments(it)
|
|
project(':hal').addHalToLinker(it)
|
|
}
|
|
withType(StaticLibraryBinarySpec) {
|
|
it.buildable = false
|
|
}
|
|
}
|
|
}
|
|
apply from: 'publish.gradle'
|