2024-11-30 18:04:00 +00:00
|
|
|
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
|
2023-09-27 21:45:25 -07:00
|
|
|
return;
|
|
|
|
|
}
|
2020-08-20 01:14:03 -04:00
|
|
|
|
2023-09-27 21:45:25 -07:00
|
|
|
description = "WebSocket Client Extension"
|
2020-08-20 01:14:03 -04:00
|
|
|
|
2023-09-27 21:45:25 -07:00
|
|
|
ext {
|
|
|
|
|
includeWpiutil = true
|
|
|
|
|
pluginName = 'halsim_ws_client'
|
|
|
|
|
}
|
2020-08-20 01:14:03 -04:00
|
|
|
|
2023-09-27 21:45:25 -07:00
|
|
|
apply plugin: 'google-test-test-suite'
|
2020-08-20 01:14:03 -04:00
|
|
|
|
2023-09-27 21:45:25 -07:00
|
|
|
ext {
|
|
|
|
|
staticGtestConfigs = [:]
|
|
|
|
|
}
|
2020-08-20 01:14:03 -04:00
|
|
|
|
2023-09-27 21:45:25 -07:00
|
|
|
staticGtestConfigs["${pluginName}Test"] = []
|
|
|
|
|
apply from: "${rootDir}/shared/googletest.gradle"
|
2020-08-20 01:14:03 -04:00
|
|
|
|
2023-09-27 21:45:25 -07:00
|
|
|
apply from: "${rootDir}/shared/plugins/setupBuild.gradle"
|
2020-08-20 01:14:03 -04:00
|
|
|
|
2023-09-27 21:45:25 -07:00
|
|
|
model {
|
|
|
|
|
binaries {
|
|
|
|
|
all {
|
2025-01-13 11:23:54 -08:00
|
|
|
if (it.targetPlatform.name == nativeUtils.wpi.platforms.systemcore) {
|
2023-09-27 21:45:25 -07:00
|
|
|
it.buildable = false
|
|
|
|
|
return
|
2020-08-20 01:14:03 -04:00
|
|
|
}
|
2023-09-27 21:45:25 -07:00
|
|
|
|
2025-12-12 21:25:57 -07:00
|
|
|
project(':hal').addHalDependency(it, 'shared')
|
|
|
|
|
project(':ntcore').addNtcoreDependency(it, 'shared')
|
2023-09-27 21:45:25 -07:00
|
|
|
lib project: ':wpinet', library: 'wpinet', linkage: 'shared'
|
2025-12-12 21:25:57 -07:00
|
|
|
lib project: ':wpiutil', library: 'wpiutil', linkage: 'shared'
|
2023-09-27 21:45:25 -07:00
|
|
|
lib project: ":simulation:halsim_ws_core", library: "halsim_ws_core", linkage: "static"
|
2020-08-20 01:14:03 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|