node-oracledb/binding.gyp

166 lines
6.3 KiB
Plaintext
Raw Permalink Normal View History

2015-01-21 00:51:22 +08:00
{
"targets": [
{
"target_name" : "oracledb",
"sources" : [
2019-05-03 07:13:32 +08:00
"src/njsAqDeqOptions.c",
"src/njsAqEnqOptions.c",
"src/njsAqMessage.c",
"src/njsAqQueue.c",
2019-03-13 08:02:49 +08:00
"src/njsBaton.c",
2022-06-07 20:19:23 +08:00
"src/njsTokenCallback.c",
2019-03-13 08:02:49 +08:00
"src/njsConnection.c",
"src/njsDbObject.c",
"src/njsJsonBuffer.c",
2019-03-13 08:02:49 +08:00
"src/njsLob.c",
"src/njsModule.c",
"src/njsPool.c",
"src/njsResultSet.c",
"src/njsSodaCollection.c",
"src/njsSodaDatabase.c",
"src/njsSodaDocCursor.c",
"src/njsSodaDocument.c",
"src/njsSodaOperation.c",
"src/njsSubscription.c",
"src/njsUtils.c",
"src/njsVariable.c",
2017-06-14 07:17:58 +08:00
"odpi/src/dpiConn.c",
"odpi/src/dpiContext.c",
"odpi/src/dpiData.c",
2017-10-23 10:26:54 +08:00
"odpi/src/dpiDebug.c",
2017-06-14 07:17:58 +08:00
"odpi/src/dpiDeqOptions.c",
"odpi/src/dpiEnqOptions.c",
"odpi/src/dpiEnv.c",
"odpi/src/dpiError.c",
"odpi/src/dpiGen.c",
"odpi/src/dpiGlobal.c",
"odpi/src/dpiHandleList.c",
2017-11-17 19:34:03 +08:00
"odpi/src/dpiHandlePool.c",
"odpi/src/dpiJson.c",
2017-06-14 07:17:58 +08:00
"odpi/src/dpiLob.c",
"odpi/src/dpiMsgProps.c",
"odpi/src/dpiObjectAttr.c",
"odpi/src/dpiObject.c",
"odpi/src/dpiObjectType.c",
"odpi/src/dpiOci.c",
2017-06-14 07:17:58 +08:00
"odpi/src/dpiOracleType.c",
"odpi/src/dpiPool.c",
2019-05-03 07:07:13 +08:00
"odpi/src/dpiQueue.c",
2017-06-14 07:17:58 +08:00
"odpi/src/dpiRowid.c",
2018-09-27 13:00:08 +08:00
"odpi/src/dpiSodaColl.c",
"odpi/src/dpiSodaCollCursor.c",
"odpi/src/dpiSodaDb.c",
"odpi/src/dpiSodaDoc.c",
"odpi/src/dpiSodaDocCursor.c",
2017-06-14 07:17:58 +08:00
"odpi/src/dpiStmt.c",
"odpi/src/dpiStringList.c",
2017-06-14 07:17:58 +08:00
"odpi/src/dpiSubscr.c",
"odpi/src/dpiUtils.c",
"odpi/src/dpiVar.c",
"odpi/src/dpiVector.c"
2015-01-21 00:51:22 +08:00
],
"conditions" : [
[
'OS=="linux"', {
"variables" : {
"dpi_check%" : "<!(INSTURL=\"https://node-oracledb.readthedocs.io/en/latest/user_guide/installation.html#github\"; ERR=\"oracledb ERR! Error:\"; if [ -f odpi/include/dpi.h ]; then echo \"Has dpi.h\"; else echo \"$ERR Cannot find odpi/include/dpi.h. For GitHub ZIP downloads you must separately download the odpi subdirectory from GitHub.\" >&2; echo \"$ERR See $INSTURL\" >&2; echo \"\" >&2; fi;)"
},
2017-10-23 10:26:54 +08:00
"cflags" : ['-fexceptions'],
"libraries" : ['-ldl', '-lpthread'],
2015-01-21 00:51:22 +08:00
}
],
[
'OS=="mac"', {
"variables" : {
"dpi_check%" : "<!(INSTURL=\"https://node-oracledb.readthedocs.io/en/latest/user_guide/installation.html#github\"; ERR=\"oracledb ERR! Error:\"; if [ -f odpi/include/dpi.h ]; then echo \"Has dpi.h\"; else echo \"$ERR Cannot find odpi/include/dpi.h. For GitHub ZIP downloads you must separately download the odpi subdirectory from GitHub.\" >&2; echo \"$ERR See $INSTURL\" >&2; echo \"\" >&2; fi;)"
},
2020-11-16 11:55:41 +08:00
"libraries" : ['-ldl', '-lpthread', '-Wl,-rpath,/usr/local/lib']
2015-01-21 00:51:22 +08:00
}
],
[
'OS=="aix"', {
"variables" : {
"dpi_check%" : "<!(INSTURL=\"https://node-oracledb.readthedocs.io/en/latest/user_guide/installation.html#github\"; ERR=\"oracledb ERR! Error:\"; if [ -f odpi/include/dpi.h ]; then echo \"Has dpi.h\"; else echo \"$ERR Cannot find odpi/include/dpi.h. For GitHub ZIP downloads you must separately download the odpi subdirectory from GitHub.\" >&2; echo \"$ERR See $INSTURL\" >&2; echo \"\" >&2; fi;)"
},
2017-10-23 10:26:54 +08:00
"cflags" : ['-fexceptions', '-fsigned-char'],
"libraries" : ['-ldl', '-lpthread'],
}
],
2015-01-21 00:51:22 +08:00
[
'OS=="solaris"', {
"variables" : {
"dpi_check%" : "<!(INSTURL=\"https://node-oracledb.readthedocs.io/en/latest/user_guide/installation.html#github\"; ERR=\"oracledb ERR! Error:\"; if [ -f odpi/include/dpi.h ]; then echo \"Has dpi.h\"; else echo \"$ERR Cannot find odpi/include/dpi.h. For GitHub ZIP downloads you must separately download the odpi subdirectory from GitHub.\" >&2; echo \"$ERR See $INSTURL\" >&2; echo \"\" >&2; fi;)"
},
2017-10-23 10:26:54 +08:00
"cflags" : ['-fexceptions'],
"libraries" : ['-ldl', '-lpthread'],
2015-01-21 00:51:22 +08:00
}
],
[
"OS=='win'", {
"configurations" : {
"Release" : {
"msvs_settings": {
"VCCLCompilerTool": {
"RuntimeLibrary": 0,
"Optimization": 3,
"FavorSizeOrSpeed": 1,
"InlineFunctionExpansion": 2,
"WholeProgramOptimization": "true",
"OmitFramePointers": "true",
"EnableFunctionLevelLinking": "true",
"EnableIntrinsicFunctions": "true",
"RuntimeTypeInfo": "false",
"PreprocessorDefinitions": [
2017-11-17 19:34:03 +08:00
"WIN32_LEAN_AND_MEAN"
],
"ExceptionHandling": "0",
"AdditionalOptions": [
"/EHsc"
]
},
"VCLibrarianTool": {
"AdditionalOptions": [
"/LTCG"
]
},
"VCLinkerTool": {
"LinkTimeCodeGeneration": 1,
"OptimizeReferences": 2,
"EnableCOMDATFolding": 2,
"LinkIncremental": 1,
}
}
2016-03-24 18:15:29 +08:00
},
"Debug": {
"msvs_settings": {
"VCCLCompilerTool": {
"PreprocessorDefinitions": [
2017-11-17 19:34:03 +08:00
"WIN32_LEAN_AND_MEAN"
],
"ExceptionHandling": "0",
"AdditionalOptions": [
"/EHsc"
]
},
"VCLibrarianTool": {
"AdditionalOptions": [
"/LTCG"
]
},
"VCLinkerTool": {
"LinkTimeCodeGeneration": 1,
"LinkIncremental": 1,
}
}
}
2016-03-24 18:15:29 +08:00
}
}
],
],
"include_dirs" : [ "odpi/src/",
2019-03-13 08:02:49 +08:00
"odpi/include/"
],
2015-01-21 00:51:22 +08:00
}
]
}