Skip to content

Commit

Permalink
publish source and headers of all generated files
Browse files Browse the repository at this point in the history
Fixes wpilibsuite#6962
Don't specially include ntcore generated files from build directory in doxygen, as they are now pregenerated in source
  • Loading branch information
sciencewhiz committed Aug 14, 2024
1 parent a2060fe commit 7dc9f2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ doxygen {
cppIncludeRoots.add(it.absolutePath)
}
}
cppIncludeRoots << '../ntcore/build/generated/main/native/include/'

if (project.hasProperty('docWarningsAsErrors')) {
// apriltag
Expand Down
6 changes: 5 additions & 1 deletion shared/javacpp/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ task cppSourcesZip(type: Zip) {
from('src/main/native/cpp') {
into '/'
}
from("$buildDir/generated/cpp") {
into '/'
}
}

task cppHeadersZip(type: Zip) {
Expand All @@ -32,7 +35,8 @@ task cppHeadersZip(type: Zip) {
}

ext.includeDirs = [
project.file('src/main/native/include')
project.file('src/main/native/include'),
project.file('src/generated/main/native/include')
]

ext.includeDirs.each {
Expand Down

0 comments on commit 7dc9f2c

Please sign in to comment.