{
    "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"],
            }],
        ]
    }]
}
