Skip to content

Instantly share code, notes, and snippets.

@JPGygax68
Last active September 18, 2017 19:09
Show Gist options
  • Save JPGygax68/6021213 to your computer and use it in GitHub Desktop.
Save JPGygax68/6021213 to your computer and use it in GitHub Desktop.
#Node: How to specify build-specific library directories for #node-gyp (binding.gyp)
{
'targets': [
{
'target_name': 'lsexcel_node',
'include_dirs': [ 'support/' ],
'sources': [ 'bindings.cc', 'support/utils.cc' ],
'configurations': {
'Debug': {
'msvs_settings': {
'VCLinkerTool': {
'AdditionalLibraryDirectories': ['../../libdbg']
}
}
},
'Release': {
'msvs_settings': {
'VCLinkerTool': {
'AdditionalLibraryDirectories': ['../../lib/']
}
}
}
},
'conditions': [
['OS=="win"', {
'libraries': [ '-llsexcel.lib' ],
}]
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment