commit 7263630a74666720d581488756cd3d350d4f26fa
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 a540ecd..37e0f6f 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -25,55 +25,29 @@
'src/xml_text.cc',
'src/xml_pi.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)'
+ ],
}]
]
}