JPGygax68
7/17/2013 - 2:41 PM

How to specify build-specific library directories for node-gyp (binding.gyp)

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' ],          
        }]
      ]
    }
  ]
}