new_contents: {
    'targets': [
      {
        # have to specify 'liblib' here since gyp will remove the first one :\
        'target_name': 'liblibxmljs',
        'sources': [
          'src/libxmljs.cc',
          'src/xml_attribute.cc',
          'src/xml_document.cc',
          'src/xml_element.cc',
          'src/xml_namespace.cc',
          'src/xml_node.cc',
          'src/xml_sax_parser.cc',
          'src/xml_syntax_error.cc',
          'src/xml_xpath_context.cc',
        ],
        'conditions': [
          ['OS=="win"', {
            # no Windows support yet...
          }, {
            'libraries': [
              '<!@(xml2-config --libs)'
            ],
          }],
          ['OS=="mac"', {
            # cflags on OS X are stupid and have to be defined like this
            'xcode_settings': {
              'OTHER_CFLAGS': [
                '<!@(xml2-config --cflags)'
              ]
            }
          }, {
            'cflags': [
              '<!@(xml2-config --cflags)'
            ],
          }]
        ]
      }
    ]
  }
  
subject: add a binding.gyp file for node-gyp support