blob: 5739b711135f01db0a9385f517b959710c74d99e [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
8nativeUtils.exportsConfigs {
9 ntcore {
10 x86ExcludeSymbols = ['_CT??_R0?AV_System_error', '_CT??_R0?AVexception', '_CT??_R0?AVfailure',
11 '_CT??_R0?AVruntime_error', '_CT??_R0?AVsystem_error', '_CTA5?AVfailure',
12 '_TI5?AVfailure', '_CT??_R0?AVout_of_range', '_CTA3?AVout_of_range',
13 '_TI3?AVout_of_range', '_CT??_R0?AVbad_cast']
14 x64ExcludeSymbols = ['_CT??_R0?AV_System_error', '_CT??_R0?AVexception', '_CT??_R0?AVfailure',
15 '_CT??_R0?AVruntime_error', '_CT??_R0?AVsystem_error', '_CTA5?AVfailure',
16 '_TI5?AVfailure', '_CT??_R0?AVout_of_range', '_CTA3?AVout_of_range',
17 '_TI3?AVout_of_range', '_CT??_R0?AVbad_cast']
18 }
19 ntcoreJNI {
20 x86SymbolFilter = { symbols ->
21 symbols.removeIf({ !it.startsWith('NT_') })
22 }
23 x64SymbolFilter = { symbols ->
24 symbols.removeIf({ !it.startsWith('NT_') })
25 }
26 }
27}
28
29if (!project.hasProperty('skipPMD')) {
30 pmdMain {
31 pmdMain.enabled = false
32 }
33}