[build] Remove all references to Athena (#9019)

This commit is contained in:
Thad House
2026-06-23 06:20:34 -07:00
committed by GitHub
parent e3cbc5eb30
commit cc1c11c903
21 changed files with 24 additions and 31 deletions

View File

@@ -321,14 +321,14 @@ model {
}
}
}
installAthena(Task) {
installSystemcore(Task) {
$.binaries.each {
if (it in NativeExecutableBinarySpec && it.targetPlatform.name == nativeUtils.wpi.platforms.systemcore && it.component.name == 'benchmarkCpp') {
dependsOn it.tasks.install
}
}
}
installAthenaStatic(Task) {
installSystemcoreStatic(Task) {
$.binaries.each {
if (it in NativeExecutableBinarySpec && it.targetPlatform.name == nativeUtils.wpi.platforms.systemcore && it.component.name == 'benchmarkCppStatic') {
dependsOn it.tasks.install

View File

@@ -33,11 +33,9 @@
"skipInvalidPlatforms": true,
"binaryPlatforms": [
"linuxsystemcore",
"linuxathena",
"linuxarm32",
"linuxarm64",
"windowsx86-64",
"windowsx86",
"windowsarm64",
"linuxx86-64",
"osxuniversal"
]

View File

@@ -172,7 +172,7 @@ model {
components {
examplesMap.each { key, value ->
if (key == "usbviewer") {
if (!project.hasProperty('onlylinuxathena') && !project.hasProperty('onlylinuxsystemcore')) {
if (!project.hasProperty('onlylinuxsystemcore')) {
"${key}"(NativeExecutableSpec) {
targetBuildTypes 'debug'
binaries.all {

View File

@@ -1,6 +1,6 @@
import org.gradle.internal.os.OperatingSystem
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,6 +1,6 @@
import org.gradle.internal.os.OperatingSystem
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -70,10 +70,6 @@ ext {
sourceSets.main.java.srcDir "${projectDir}/src/generated/main/java"
cppSourcesZip {
from('src/main/native/athena') {
into '/athena'
}
from('src/main/native/systemcore') {
into '/systemcore'
}

View File

@@ -84,7 +84,7 @@ test {
finalizedBy jacocoTestReport
}
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore') || project.hasProperty('onlylinuxarm32') || project.hasProperty('onlylinuxarm64') || project.hasProperty('onlywindowsarm64')) {
if (project.hasProperty('onlylinuxsystemcore') || project.hasProperty('onlylinuxarm32') || project.hasProperty('onlylinuxarm64') || project.hasProperty('onlywindowsarm64')) {
test.enabled = false
}

View File

@@ -2,8 +2,7 @@ apply plugin: 'cpp'
apply plugin: 'org.wpilib.NativeUtils'
apply plugin: ExtraTasks
if (!project.hasProperty('onlylinuxathena') && !project.hasProperty('onlylinuxsystemcore')) {
ext.skiplinuxathena = true
if (!project.hasProperty('onlylinuxsystemcore')) {
ext.skiplinuxsystemcore = true
apply from: "${rootDir}/shared/config.gradle"
@@ -58,7 +57,7 @@ if (!project.hasProperty('onlylinuxathena') && !project.hasProperty('onlylinuxsy
}
}
binaries.all {
if (!project.hasProperty('onlylinuxathena') && !project.hasProperty('onlylinuxsystemcore')) {
if (!project.hasProperty('onlylinuxsystemcore')) {
project(':hal').addHalDependency(it, 'shared')
lib library: pluginName
if (project.hasProperty('includeNtCore')) {
@@ -82,7 +81,7 @@ if (!project.hasProperty('onlylinuxathena') && !project.hasProperty('onlylinuxsy
model {
tasks {
def c = $.components
if (!project.hasProperty('onlylinuxathena') && !project.hasProperty('onlylinuxsystemcore')) {
if (!project.hasProperty('onlylinuxsystemcore')) {
project.tasks.create('runCpp', Exec) {
group = 'WPILib'
description = "Run the ${pluginName}Dev executable"

View File

@@ -1,4 +1,4 @@
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,4 +1,4 @@
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,4 +1,4 @@
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,4 +1,4 @@
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,4 +1,4 @@
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,4 +1,4 @@
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,6 +1,6 @@
import org.gradle.internal.os.OperatingSystem
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,6 +1,6 @@
import org.gradle.internal.os.OperatingSystem
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,6 +1,6 @@
import org.gradle.internal.os.OperatingSystem
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,6 +1,6 @@
import org.gradle.internal.os.OperatingSystem
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,6 +1,6 @@
import org.gradle.internal.os.OperatingSystem
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -1,6 +1,6 @@
import org.gradle.internal.os.OperatingSystem
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore')) {
if (project.hasProperty('onlylinuxsystemcore')) {
return;
}

View File

@@ -226,7 +226,7 @@ model {
}
testTask.systemProperty 'java.library.path', filePath
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxsystemcore') || project.hasProperty('onlylinuxarm32') || project.hasProperty('onlylinuxarm64') || project.hasProperty('onlywindowsarm64')) {
if (project.hasProperty('onlylinuxsystemcore') || project.hasProperty('onlylinuxarm32') || project.hasProperty('onlylinuxarm64') || project.hasProperty('onlywindowsarm64')) {
testTask.enabled = false
}
test.dependsOn(testTask)
@@ -270,7 +270,7 @@ model {
}
testTask.systemProperty 'java.library.path', filePath
if (project.hasProperty('onlylinuxathena') || project.hasProperty('onlylinuxarm32') || project.hasProperty('onlylinuxarm64') || project.hasProperty('onlywindowsarm64')) {
if (project.hasProperty('onlylinuxarm32') || project.hasProperty('onlylinuxarm64') || project.hasProperty('onlywindowsarm64')) {
testTask.enabled = false
}
test.dependsOn(testTask)