mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Putting an early exit if statement at the top instead of wrapping the whole file contents unbreaks unit test configs, as was discovered for SysId. It reduces nesting as well. Unused plugins were removed from the beginnings of files as well.
36 lines
791 B
Groovy
36 lines
791 B
Groovy
if (project.hasProperty('onlylinuxathena')) {
|
|
return;
|
|
}
|
|
|
|
description = "WebSocket Client Extension"
|
|
|
|
ext {
|
|
includeWpiutil = true
|
|
pluginName = 'halsim_ws_client'
|
|
}
|
|
|
|
apply plugin: 'google-test-test-suite'
|
|
|
|
ext {
|
|
staticGtestConfigs = [:]
|
|
}
|
|
|
|
staticGtestConfigs["${pluginName}Test"] = []
|
|
apply from: "${rootDir}/shared/googletest.gradle"
|
|
|
|
apply from: "${rootDir}/shared/plugins/setupBuild.gradle"
|
|
|
|
model {
|
|
binaries {
|
|
all {
|
|
if (it.targetPlatform.name == nativeUtils.wpi.platforms.roborio) {
|
|
it.buildable = false
|
|
return
|
|
}
|
|
|
|
lib project: ':wpinet', library: 'wpinet', linkage: 'shared'
|
|
lib project: ":simulation:halsim_ws_core", library: "halsim_ws_core", linkage: "static"
|
|
}
|
|
}
|
|
}
|