mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +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.
44 lines
1003 B
Groovy
44 lines
1003 B
Groovy
apply plugin: 'maven-publish'
|
|
apply plugin: 'edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin'
|
|
|
|
if (!hasProperty('releaseType')) {
|
|
WPILibVersion {
|
|
releaseType = 'dev'
|
|
}
|
|
}
|
|
|
|
def pubVersion = ''
|
|
if (project.hasProperty("publishVersion")) {
|
|
pubVersion = project.publishVersion
|
|
} else {
|
|
pubVersion = WPILibVersion.version
|
|
}
|
|
|
|
def baseArtifactId = 'halsim-print'
|
|
def artifactGroupId = 'edu.wpi.first.halsim'
|
|
|
|
|
|
model {
|
|
publishing {
|
|
def libSpec
|
|
$.components.each {
|
|
if (it in NativeLibrarySpec) {
|
|
$.binaries.each {
|
|
if (it in SharedLibraryBinarySpec) {
|
|
libSpec = it.sharedLibraryFile
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
publications {
|
|
cpp(MavenPublication) {
|
|
artifact libSpec
|
|
artifactId = baseArtifactId
|
|
groupId artifactGroupId
|
|
version pubVersion
|
|
}
|
|
}
|
|
}
|
|
}
|