blob: c93cde4f38cdad4679214add905a02c3c952ed94 [file] [log] [blame]
{
"targets": [{
"target_name": "cproton",
"type": "loadable_module",
"sources": ["javascriptJAVASCRIPT_wrap.cxx"],
"conditions": [
["OS=='win'", {
"cflags_cc+": ["/W3", "/Zi"],
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [ '/EHsc' ],
'ShowIncludes': 'false',
'PreprocessorDefinitions': [ '_WIN32_WINNT=0x0600', 'PN_NODEFINE_SSIZE_T' ]
}
},
"include_dirs+": [".", "@Proton_SOURCE_DIR@/proton-c/include"],
"libraries": ["qpid-proton"],
}],
["OS=='linux'", {
"cflags_cc+": ["-Wall", "-Wno-comment", "-g"],
"include_dirs+": [".", "@Proton_SOURCE_DIR@/proton-c/include"],
"libraries": ["-lqpid-proton", "-L@Proton_BINARY_DIR@/proton-c", "-Wl,-rpath=\'$$ORIGIN\'"],
}],
["OS=='mac'", {
"cflags_cc+": ["-Wall", "-Wno-comment", "-g"],
"include_dirs+": [".", "@Proton_SOURCE_DIR@/proton-c/include"],
"libraries": ["-lqpid-proton", "@Proton_BINARY_DIR@/proton-c", "-Wl,-install_name,@rpath/proton.node", "-Wl,-rpath,@loader_path/", "-Wl,-headerpad_max_install_names"],
}],
]
}]
}