2018-04-29 13:29:07 -07:00
|
|
|
ext {
|
|
|
|
|
nativeName = 'ntcore'
|
|
|
|
|
devMain = 'edu.wpi.first.ntcore.DevMain'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
lib project: ':wpinet', library: 'wpinet', linkage: 'shared'
|
|
|
|
|
lib project: ':wpiutil', library: 'wpiutil', linkage: 'shared'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
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 {
|
2020-12-30 16:17:20 -08:00
|
|
|
x64ExcludeSymbols = [
|
|
|
|
|
'_CT??_R0?AV_System_error',
|
|
|
|
|
'_CT??_R0?AVexception',
|
|
|
|
|
'_CT??_R0?AVfailure',
|
|
|
|
|
'_CT??_R0?AVruntime_error',
|
|
|
|
|
'_CT??_R0?AVsystem_error',
|
|
|
|
|
'_CTA5?AVfailure',
|
|
|
|
|
'_TI5?AVfailure',
|
|
|
|
|
'_CT??_R0?AVout_of_range',
|
|
|
|
|
'_CTA3?AVout_of_range',
|
|
|
|
|
'_TI3?AVout_of_range',
|
|
|
|
|
'_CT??_R0?AVbad_cast'
|
|
|
|
|
]
|
2019-06-28 14:09:10 -07:00
|
|
|
}
|
|
|
|
|
ntcoreJNI {
|
2021-09-19 17:59:14 -07:00
|
|
|
x64SymbolFilter = symbolFilter
|
2018-04-29 13:29:07 -07:00
|
|
|
}
|
|
|
|
|
}
|