Blob Blame History Raw
commit cad94ff4a3566142a7a9d993db7adc5e3eb398e8
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 6166361..b6f0efb 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -18,18 +18,27 @@
         'src/xml_text.cc',
         'src/xml_xpath_context.cc',
       ],
-      'dependencies': [
-        './vendor/libxml/libxml.gyp:libxml'
-      ],
       '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': {
             'OTHER_LDFLAGS': [
-              '-undefined dynamic_lookup'
+              '-undefined dynamic_lookup',
+              '<!@(xml2-config --cflags)'
             ],
           },
+        }, {
+          'cflags': [
+            '<!@(xml2-config --cflags)'
+          ],
         }]
       ]
     }