It doesn't look like there's a way, but I'll ask anyway.
I have a node-gyp project that has a half dozen sources or so, and I want to apply a definition to one of them, any way to specify that?
{
"targets": [
{
"target_name": "sack_vfs",
"sources": [ "vfs_module.cc",
"src/sack.cc",
"src/sqlite3.c",
"com_interface.cc",
"sql_module.cc",
"thread_module.cc",
"jsonParse.cc",
"tls_interface.cc",
"srg_module.cc",
],
'defines': [
'TARGETNAME="sack_vfs.node"',
"__STATIC__","USE_SQLITE","USE_SQLITE_INTERFACE","FORCE_COLOR_MACROS",
"NO_OPEN_MACRO","NO_FILEOP_ALIAS","JSON_PARSER_MAIN_SOURCE", "SQLITE_ENABLE_LOCKING_STYLE=0"
],
....
}
"SQLITE_ENABLE_LOCKING_STYLE=0" I would like to only apply to sqlite3.c