mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
60 lines
1.5 KiB
Groovy
60 lines
1.5 KiB
Groovy
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
|
|
return;
|
|
}
|
|
|
|
apply plugin: 'cpp'
|
|
apply plugin: 'edu.wpi.first.NativeUtils'
|
|
apply plugin: ExtraTasks
|
|
|
|
description = "Core library for WebSocket extensions"
|
|
|
|
ext {
|
|
includeWpiutil = true
|
|
includeWpinet = true
|
|
pluginName = 'halsim_ws_core'
|
|
}
|
|
|
|
apply plugin: 'google-test-test-suite'
|
|
|
|
|
|
ext {
|
|
staticGtestConfigs = [:]
|
|
}
|
|
|
|
staticGtestConfigs["${pluginName}Test"] = []
|
|
apply from: "${rootDir}/shared/googletest.gradle"
|
|
|
|
apply from: "${rootDir}/shared/config.gradle"
|
|
apply from: "${rootDir}/shared/plugins/publish.gradle"
|
|
|
|
model {
|
|
components {
|
|
halsim_ws_core(NativeLibrarySpec) {
|
|
sources.cpp {
|
|
source {
|
|
srcDirs = ['src/main/native/cpp']
|
|
includes = ["**/*.cpp"]
|
|
}
|
|
exportedHeaders {
|
|
srcDirs = ["src/main/native/include"]
|
|
}
|
|
}
|
|
binaries.all {
|
|
project(':hal').addHalDependency(it, 'shared')
|
|
project(':ntcore').addNtcoreDependency(it, 'shared')
|
|
lib project: ':wpinet', library: 'wpinet', linkage: 'shared'
|
|
lib project: ':wpiutil', library: 'wpiutil', linkage: 'shared'
|
|
}
|
|
appendDebugPathToBinaries(binaries)
|
|
}
|
|
}
|
|
binaries {
|
|
all {
|
|
if (it.targetPlatform.name == nativeUtils.wpi.platforms.systemcore) {
|
|
it.buildable = false
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|