Use DPI_DEBUG_LEVEL environment variable for ODPI-C on non-Windows platforms

This commit is contained in:
Christopher Jones 2017-06-14 11:12:53 +10:00
parent 32d91901d7
commit 972faab614
1 changed files with 24 additions and 13 deletions

View File

@ -36,34 +36,45 @@
"conditions" : [
[
'OS=="linux"', {
"cflags" : ['-fexceptions'],
"cflags_cc" : ['-fexceptions'],
"libraries" : ["-ldl"]
"variables" : {
"dpi_debug%" : "<!(if [ -z \"${DPI_DEBUG_LEVEL+x}\" ]; then echo \"\"; else echo \"-DDPI_DEBUG_LEVEL=${DPI_DEBUG_LEVEL}\"; fi;)"
},
"cflags" : ['-fexceptions', '<(dpi_debug)'],
"cflags_cc" : ['-fexceptions', '<(dpi_debug)'],
"libraries" : ['-ldl'],
}
],
[
'OS=="mac"', {
"variables" : {
"dpi_debug%" : "<!(if [ -z \"${DPI_DEBUG_LEVEL+x}\" ]; then echo \"\"; else echo \"-DDPI_DEBUG_LEVEL=${DPI_DEBUG_LEVEL}\"; fi;)"
},
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"GCC_ENABLE_CPP_RTTI": "YES"
"GCC_ENABLE_CPP_RTTI": "YES",
'OTHER_CFLAGS': ['<(dpi_debug)'],
},
"cflags" : ['-fexceptions'],
"cflags_cc" : ['-fexceptions'],
"libraries" : ["-ldl"]
"libraries" : ['-ldl']
}
],
[
'OS=="aix"', {
"libraries" : ["-ldl"],
"cflags" : ['-fexceptions'],
"cflags_cc" : ['-fexceptions'],
"variables" : {
"dpi_debug%" : "<!(if [ -z \"${DPI_DEBUG_LEVEL+x}\" ]; then echo \"\"; else echo \"-DDPI_DEBUG_LEVEL=${DPI_DEBUG_LEVEL}\"; fi;)"
},
"cflags" : ['-fexceptions', '-fsigned-char', '<(dpi_debug)'],
"cflags_cc" : ['-fexceptions', '-fsigned-char', '<(dpi_debug)'],
"libraries" : ['-ldl'],
}
],
[
'OS=="solaris"', {
"libraries" : ["-ldl"],
"cflags" : ['-fexceptions'],
"cflags_cc" : ['-fexceptions']
"variables" : {
"dpi_debug%" : "<!(if [ -z \"${DPI_DEBUG_LEVEL+x}\" ]; then echo \"\"; else echo \"-DDPI_DEBUG_LEVEL=${DPI_DEBUG_LEVEL}\"; fi;)"
},
"cflags" : ['-fexceptions', '<(dpi_debug)'],
"cflags_cc" : ['-fexceptions', '<(dpi_debug)'],
"libraries" : ['-ldl'],
}
],
[