Blob Blame History Raw
commit f879e3481ca7d4a091a82f84df74f7518e6d7884
Author: Tom Hughes <tom@compton.nu>
Date:   Thu Dec 3 00:06:52 2015 +0000

    Remove dependency on bundled libxml2

diff --git a/binding.gyp b/binding.gyp
index 244096e..46c2fcd 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -24,55 +24,29 @@
         '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'
       ],
       'conditions': [
+        ['OS=="win"', {
+          # no Windows support yet...
+        }, {
+          'libraries': [
+            '<!@(xml2-config --libs)'
+          ],
+        }],
         ['OS=="mac"', {
           # node-gyp 2.x doesn't add this anymore
           # https://github.com/TooTallNate/node-gyp/pull/612
           'xcode_settings': {
             'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
             'OTHER_LDFLAGS': [
-              '-undefined dynamic_lookup'
+              '-undefined dynamic_lookup',
+              '<!@(xml2-config --cflags)'
             ],
           },
+        }, {
+          'cflags': [
+            '<!@(xml2-config --cflags)'
+          ],
         }]
       ]
     }