如何根据configuration更改库path?

我正在构build一个需要链接静态库的本地模块。 该库的path。 我的binding.gyp文件有以下外观:

{ "targets": [ { "target_name": "DcpServer", "sources": [ "DcpServer.cc" ], "include_dirs": [ "../../coratools", "../../../boost-1.65.1" ], "libraries": [ "<(module_root_dir)/../../coratools/release_uni64/coratools.lib" ], "defines": [ "CSIWEB_EMBEDDED", "UNICODE", "_UNICODE" ], "configurations": { "Release": { "msvs_settings": { "VCCLCompilerTool": { "ExceptionHandling": 1, "RuntimeTypeInfo": "true" } } }, "Debug": { "msvs_settings": { "VCCLCompilerTool": { "ExceptionHandling": 1, "RuntimeTypeInfo": "true" } } } } } ] } 

coratools.lib的path将根据是否selectdebugging或发行版configuration而有所不同。 问题是node-gyp不允许我把“libraries”键放在“configuration”属性中。 有没有办法做我想要的库path有条件的?