text: {
    'targets': [
      {
        'target_name': 'xmljs-myh',
        'product_extension': 'node',
        'type': 'shared_library',
        'include_dirs': [
          'vendor/libxml.conf',
          'vendor/libxml.conf/include',
          'vendor/libxml/include',
          "<!(node -e \"require('nan')\")"
        ],
        'cflags': [ '-Wall' ],
        'xcode_settings': {
          'OTHER_CFLAGS': [ '-Wall' ]
        },
        'sources': [
          'src/libxmljs.cc',
          'src/xml_attribute.cc',
          'src/xml_document.cc',
          'src/xml_element.cc',
          'src/xml_comment.cc',
          'src/xml_namespace.cc',
          'src/xml_node.cc',
          'src/xml_sax_parser.cc',
          'src/xml_syntax_error.cc',
          'src/xml_text.cc',
          'src/xml_xpath_context.cc',
          'vendor/libxml/buf.c',
          'vendor/libxml/catalog.c',
          'vendor/libxml/chvalid.c',
          'vendor/libxml/dict.c',
          'vendor/libxml/encoding.c',
          'vendor/libxml/entities.c',
          'vendor/libxml/error.c',
          'vendor/libxml/globals.c',
          'vendor/libxml/hash.c',
          'vendor/libxml/HTMLparser.c',
          'vendor/libxml/HTMLtree.c',
          'vendor/libxml/legacy.c',
          'vendor/libxml/list.c',
          'vendor/libxml/parser.c',
          'vendor/libxml/parserInternals.c',
          'vendor/libxml/pattern.c',
          'vendor/libxml/relaxng.c',
          'vendor/libxml/SAX2.c',
          'vendor/libxml/SAX.c',
          'vendor/libxml/tree.c',
          'vendor/libxml/threads.c',
          'vendor/libxml/uri.c',
          'vendor/libxml/valid.c',
          'vendor/libxml/xinclude.c',
          'vendor/libxml/xlink.c',
          'vendor/libxml/xmlIO.c',
          'vendor/libxml/xmlmemory.c',
          'vendor/libxml/xmlmodule.c',
          'vendor/libxml/xmlreader.c',
          'vendor/libxml/xmlregexp.c',
          'vendor/libxml/xmlsave.c',
          'vendor/libxml/xmlschemas.c',
          'vendor/libxml/xmlschemastypes.c',
          'vendor/libxml/xmlstring.c',
          'vendor/libxml/xmlunicode.c',
          'vendor/libxml/xmlwriter.c',
          'vendor/libxml/xpath.c',
          'vendor/libxml/xpointer.c'
        ],
        'defines': [
          'IN_LIBXMLJS',
          '_REENTRANT',
        ],
        'conditions': [
          ['OS=="mac"', {
            # node-gyp 2.x doesn't add this anymore
            # https://github.com/TooTallNate/node-gyp/pull/612
            'xcode_settings': {
              'OTHER_LDFLAGS': [
                '-undefined dynamic_lookup'
              ],
            },
          }],
          ['OS=="win"', {
            'defines': [
              'HAVE_WIN32_THREADS',
              'BUILDING_NODE_EXTENSION',
            ],
          }, {
            'defines': [
              'HAVE_LIBPTHREAD',
              'HAVE_PTHREAD_H',
              'HAVE_UNISTD_H',
              'HAVE_RAND_R',
            ],
          }],
        ]
      }
    ]
  }
  