2018-04-29 13:29:07 -07:00
|
|
|
ext {
|
2022-10-08 10:01:31 -07:00
|
|
|
addNtcoreDependency = { binary, shared->
|
|
|
|
|
binary.lib project: ':ntcore', library: 'ntcore', linkage: shared
|
2025-02-19 23:08:17 -06:00
|
|
|
binary.lib project: ':datalog', library: 'datalog', linkage: shared
|
2022-10-08 10:01:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
addNtcoreJniDependency = { binary->
|
|
|
|
|
binary.lib project: ':ntcore', library: 'ntcoreJNIShared', linkage: 'shared'
|
2025-02-19 23:08:17 -06:00
|
|
|
binary.lib project: ':datalog', library: 'datalogJNIShared', linkage: 'shared'
|
2022-10-08 10:01:31 -07:00
|
|
|
}
|
|
|
|
|
|
2018-04-29 13:29:07 -07:00
|
|
|
nativeName = 'ntcore'
|
2025-11-07 19:58:22 -05:00
|
|
|
devMain = 'org.wpilib.networktables.DevMain'
|
2023-12-01 18:31:06 -05:00
|
|
|
generatedSources = "$projectDir/src/generated/main/native/cpp"
|
|
|
|
|
generatedHeaders = "$projectDir/src/generated/main/native/include"
|
2022-10-08 10:01:31 -07:00
|
|
|
jniSplitSetup = {
|
|
|
|
|
}
|
|
|
|
|
splitSetup = {
|
|
|
|
|
it.tasks.withType(CppCompile) {
|
|
|
|
|
it.includes 'src/main/native/cpp'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
exeSplitSetup = {
|
|
|
|
|
}
|
2018-04-29 13:29:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply from: "${rootDir}/shared/jni/setupBuild.gradle"
|
|
|
|
|
|
2022-05-07 10:54:14 -07:00
|
|
|
model {
|
|
|
|
|
components {}
|
|
|
|
|
binaries {
|
|
|
|
|
all {
|
|
|
|
|
if (!it.buildable || !(it instanceof NativeBinarySpec)) {
|
|
|
|
|
return
|
|
|
|
|
}
|
2025-05-06 05:10:07 +00:00
|
|
|
lib project: ':wpinet', library: 'wpinet', linkage: 'shared'
|
|
|
|
|
lib project: ':wpiutil', library: 'wpiutil', linkage: 'shared'
|
2025-05-29 21:41:50 -07:00
|
|
|
lib project: ':datalog', library: 'datalog', linkage: 'shared'
|
2022-05-07 10:54:14 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-01 18:31:06 -05:00
|
|
|
sourceSets.main.java.srcDir "${projectDir}/src/generated/main/java"
|
2022-10-08 10:01:31 -07:00
|
|
|
|
|
|
|
|
cppHeadersZip {
|
|
|
|
|
from(generatedHeaders) {
|
|
|
|
|
into '/'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-16 00:20:28 -04:00
|
|
|
cppSourcesZip {
|
|
|
|
|
from(generatedSources) {
|
|
|
|
|
into '/'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-19 17:59:14 -07:00
|
|
|
Action<List<String>> symbolFilter = { symbols ->
|
|
|
|
|
symbols.removeIf({ !it.startsWith('NT_') })
|
|
|
|
|
} as Action<List<String>>;
|
|
|
|
|
|
2019-06-28 14:09:10 -07:00
|
|
|
nativeUtils.exportsConfigs {
|
|
|
|
|
ntcore {
|
|
|
|
|
}
|
|
|
|
|
ntcoreJNI {
|
2021-09-19 17:59:14 -07:00
|
|
|
x64SymbolFilter = symbolFilter
|
2018-04-29 13:29:07 -07:00
|
|
|
}
|
|
|
|
|
}
|
2025-02-19 23:08:17 -06:00
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
api project(":datalog")
|
|
|
|
|
}
|