mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
[build] Move version file to its own source set (#4638)
This commit is contained in:
@@ -85,8 +85,7 @@ model {
|
||||
cpp {
|
||||
source {
|
||||
srcDirs = [
|
||||
'src/main/native/cpp',
|
||||
"$buildDir/generated/cpp"
|
||||
'src/main/native/cpp'
|
||||
]
|
||||
include '**/*.cpp'
|
||||
}
|
||||
@@ -100,6 +99,22 @@ model {
|
||||
it.buildable = false
|
||||
return
|
||||
}
|
||||
|
||||
it.sources {
|
||||
versionSources(CppSourceSet) {
|
||||
source {
|
||||
srcDirs = [
|
||||
"${rootDir}/shared/singlelib",
|
||||
"$buildDir/generated/cpp"
|
||||
]
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDirs 'src/main/native/include'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cppCompiler.define 'DYNAMIC_CAMERA_SERVER'
|
||||
project(':ntcore').addNtcoreDependency(it, 'shared')
|
||||
project(':hal').addHalDependency(it, 'shared')
|
||||
|
||||
Reference in New Issue
Block a user