mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Add missing sources to published zip files (#8055)
Gradle publishing does not capture all of the source files that are used during a build. This should get most of them, and get it equivalent to what bazel pushes out.
This commit is contained in:
@@ -80,6 +80,9 @@ cppHeadersZip {
|
||||
from(generatedHeaders) {
|
||||
into '/'
|
||||
}
|
||||
from('src/mrc/include') {
|
||||
into '/'
|
||||
}
|
||||
}
|
||||
|
||||
Action<List<String>> symbolFilter = { symbols ->
|
||||
|
||||
@@ -48,6 +48,12 @@ cppHeadersZip {
|
||||
}
|
||||
}
|
||||
|
||||
cppSourcesZip {
|
||||
from(generatedSources) {
|
||||
into '/'
|
||||
}
|
||||
}
|
||||
|
||||
Action<List<String>> symbolFilter = { symbols ->
|
||||
symbols.removeIf({ !it.startsWith('NT_') })
|
||||
} as Action<List<String>>;
|
||||
|
||||
@@ -23,6 +23,9 @@ task cppSourcesZip(type: Zip) {
|
||||
from("$buildDir/generated/cpp") {
|
||||
into '/'
|
||||
}
|
||||
from("src/generated/main/native/cpp") {
|
||||
into '/'
|
||||
}
|
||||
}
|
||||
|
||||
task cppHeadersZip(type: Zip) {
|
||||
|
||||
@@ -21,6 +21,9 @@ task cppSourcesZip(type: Zip) {
|
||||
from("$buildDir/generated/cpp") {
|
||||
into '/'
|
||||
}
|
||||
from("src/generated/main/native/cpp") {
|
||||
into '/'
|
||||
}
|
||||
}
|
||||
|
||||
cppSourcesZip.dependsOn generateCppVersion
|
||||
|
||||
@@ -52,6 +52,12 @@ cppHeadersZip {
|
||||
}
|
||||
}
|
||||
|
||||
cppSourcesZip {
|
||||
from('src/main/native/thirdparty/sleipnir/src') {
|
||||
into '/'
|
||||
}
|
||||
}
|
||||
|
||||
model {
|
||||
components {
|
||||
all {
|
||||
|
||||
@@ -198,6 +198,12 @@ cppHeadersZip {
|
||||
}
|
||||
}
|
||||
|
||||
cppSourcesZip {
|
||||
from('src/main/native/thirdparty/tcpsockets/cpp') {
|
||||
into '/'
|
||||
}
|
||||
}
|
||||
|
||||
model {
|
||||
components {
|
||||
all {
|
||||
|
||||
@@ -193,6 +193,9 @@ cppHeadersZip {
|
||||
}
|
||||
|
||||
cppSourcesZip {
|
||||
from('src/main/native/thirdparty/debugging/src') {
|
||||
into '/'
|
||||
}
|
||||
from('src/main/native/thirdparty/fmtlib/src') {
|
||||
into '/'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user