blob: 67674c6a7ace74cbf7a7e00a8b0ab50631915f86 [file] [log] [blame]
Brian Silverman8fce7482020-01-05 13:18:21 -08001ext {
2 nativeName = 'ntcore'
3 devMain = 'edu.wpi.first.ntcore.DevMain'
4}
5
6apply from: "${rootDir}/shared/jni/setupBuild.gradle"
7
Austin Schuh812d0d12021-11-04 20:16:48 -07008Action<List<String>> symbolFilter = { symbols ->
9 symbols.removeIf({ !it.startsWith('NT_') })
10} as Action<List<String>>;
11
Brian Silverman8fce7482020-01-05 13:18:21 -080012nativeUtils.exportsConfigs {
13 ntcore {
Austin Schuh812d0d12021-11-04 20:16:48 -070014 x86ExcludeSymbols = [
15 '_CT??_R0?AV_System_error',
16 '_CT??_R0?AVexception',
17 '_CT??_R0?AVfailure',
18 '_CT??_R0?AVruntime_error',
19 '_CT??_R0?AVsystem_error',
20 '_CTA5?AVfailure',
21 '_TI5?AVfailure',
22 '_CT??_R0?AVout_of_range',
23 '_CTA3?AVout_of_range',
24 '_TI3?AVout_of_range',
25 '_CT??_R0?AVbad_cast'
26 ]
27 x64ExcludeSymbols = [
28 '_CT??_R0?AV_System_error',
29 '_CT??_R0?AVexception',
30 '_CT??_R0?AVfailure',
31 '_CT??_R0?AVruntime_error',
32 '_CT??_R0?AVsystem_error',
33 '_CTA5?AVfailure',
34 '_TI5?AVfailure',
35 '_CT??_R0?AVout_of_range',
36 '_CTA3?AVout_of_range',
37 '_TI3?AVout_of_range',
38 '_CT??_R0?AVbad_cast'
39 ]
Brian Silverman8fce7482020-01-05 13:18:21 -080040 }
41 ntcoreJNI {
Austin Schuh812d0d12021-11-04 20:16:48 -070042 x86SymbolFilter = symbolFilter
43 x64SymbolFilter = symbolFilter
Brian Silverman8fce7482020-01-05 13:18:21 -080044 }
45}