forked from libxmljs/libxmljs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
binding.gyp
86 lines (86 loc) · 2.47 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
'targets': [
{
'target_name': 'xmljs',
'product_extension': 'node',
'type': 'shared_library',
'include_dirs': [
'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_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=="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'
],
},
}],
['OS=="win"', {
'defines': [
'BUILDING_NODE_EXTENSION',
],
}]
]
}
]
}