OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['OS=="linux"', {'os_include': 'linux'}], | 8 ['OS=="linux"', {'os_include': 'linux'}], |
9 ['OS=="mac"', {'os_include': 'mac'}], | 9 ['OS=="mac"', {'os_include': 'mac'}], |
10 ['OS=="win"', {'os_include': 'win32'}], | 10 ['OS=="win"', {'os_include': 'win32'}], |
11 ], | 11 ], |
| 12 'use_system_libxml%': 0, |
12 }, | 13 }, |
13 'includes': [ | 14 'includes': [ |
14 '../../build/common.gypi', | 15 '../../build/common.gypi', |
15 ], | 16 ], |
16 'targets': [ | 17 'targets': [ |
17 { | 18 { |
18 'target_name': 'libxml', | 19 'target_name': 'libxml', |
19 'type': 'static_library', | |
20 'msvs_guid': 'F9810DE8-CBC3-4605-A7B1-ECA2D5292FD7', | |
21 'sources': [ | |
22 'include/libxml/c14n.h', | |
23 'include/libxml/catalog.h', | |
24 'include/libxml/chvalid.h', | |
25 'include/libxml/debugXML.h', | |
26 'include/libxml/dict.h', | |
27 'include/libxml/DOCBparser.h', | |
28 'include/libxml/encoding.h', | |
29 'include/libxml/entities.h', | |
30 'include/libxml/globals.h', | |
31 'include/libxml/hash.h', | |
32 'include/libxml/HTMLparser.h', | |
33 'include/libxml/HTMLtree.h', | |
34 'include/libxml/list.h', | |
35 'include/libxml/nanoftp.h', | |
36 'include/libxml/nanohttp.h', | |
37 'include/libxml/parser.h', | |
38 'include/libxml/parserInternals.h', | |
39 'include/libxml/pattern.h', | |
40 'include/libxml/relaxng.h', | |
41 'include/libxml/SAX.h', | |
42 'include/libxml/SAX2.h', | |
43 'include/libxml/schemasInternals.h', | |
44 'include/libxml/schematron.h', | |
45 'include/libxml/threads.h', | |
46 'include/libxml/tree.h', | |
47 'include/libxml/uri.h', | |
48 'include/libxml/valid.h', | |
49 'include/libxml/xinclude.h', | |
50 'include/libxml/xlink.h', | |
51 'include/libxml/xmlautomata.h', | |
52 'include/libxml/xmlerror.h', | |
53 'include/libxml/xmlexports.h', | |
54 'include/libxml/xmlIO.h', | |
55 'include/libxml/xmlmemory.h', | |
56 'include/libxml/xmlmodule.h', | |
57 'include/libxml/xmlreader.h', | |
58 'include/libxml/xmlregexp.h', | |
59 'include/libxml/xmlsave.h', | |
60 'include/libxml/xmlschemas.h', | |
61 'include/libxml/xmlschemastypes.h', | |
62 'include/libxml/xmlstring.h', | |
63 'include/libxml/xmlunicode.h', | |
64 'include/libxml/xmlwriter.h', | |
65 'include/libxml/xpath.h', | |
66 'include/libxml/xpathInternals.h', | |
67 'include/libxml/xpointer.h', | |
68 'include/win32config.h', | |
69 'include/wsockcompat.h', | |
70 'linux/config.h', | |
71 'linux/include/libxml/xmlversion.h', | |
72 'mac/config.h', | |
73 'mac/include/libxml/xmlversion.h', | |
74 'win32/config.h', | |
75 'win32/include/libxml/xmlversion.h', | |
76 'acconfig.h', | |
77 'c14n.c', | |
78 'catalog.c', | |
79 'chvalid.c', | |
80 'debugXML.c', | |
81 'dict.c', | |
82 'DOCBparser.c', | |
83 'elfgcchack.h', | |
84 'encoding.c', | |
85 'entities.c', | |
86 'error.c', | |
87 'globals.c', | |
88 'hash.c', | |
89 'HTMLparser.c', | |
90 'HTMLtree.c', | |
91 'legacy.c', | |
92 'libxml.h', | |
93 'list.c', | |
94 'nanoftp.c', | |
95 'nanohttp.c', | |
96 'parser.c', | |
97 'parserInternals.c', | |
98 'pattern.c', | |
99 'relaxng.c', | |
100 'SAX.c', | |
101 'SAX2.c', | |
102 'schematron.c', | |
103 'threads.c', | |
104 'tree.c', | |
105 #'trio.c', | |
106 #'trio.h', | |
107 #'triodef.h', | |
108 #'trionan.c', | |
109 #'trionan.h', | |
110 #'triop.h', | |
111 #'triostr.c', | |
112 #'triostr.h', | |
113 'uri.c', | |
114 'valid.c', | |
115 'xinclude.c', | |
116 'xlink.c', | |
117 'xmlIO.c', | |
118 'xmlmemory.c', | |
119 'xmlmodule.c', | |
120 'xmlreader.c', | |
121 'xmlregexp.c', | |
122 'xmlsave.c', | |
123 'xmlschemas.c', | |
124 'xmlschemastypes.c', | |
125 'xmlstring.c', | |
126 'xmlunicode.c', | |
127 'xmlwriter.c', | |
128 'xpath.c', | |
129 'xpointer.c', | |
130 ], | |
131 'defines': [ | |
132 'LIBXML_STATIC', | |
133 ], | |
134 'include_dirs': [ | |
135 '<(os_include)', | |
136 '<(os_include)/include', | |
137 'include', | |
138 ], | |
139 'dependencies': [ | |
140 '../icu38/icu38.gyp:icuuc', | |
141 '../zlib/zlib.gyp:zlib', | |
142 ], | |
143 'export_dependent_settings': [ | |
144 '../icu38/icu38.gyp:icuuc', | |
145 ], | |
146 'direct_dependent_settings': { | |
147 'defines': [ | |
148 'LIBXML_STATIC', | |
149 ], | |
150 'include_dirs': [ | |
151 '<(os_include)/include', | |
152 'include', | |
153 ], | |
154 }, | |
155 'conditions': [ | 20 'conditions': [ |
156 ['OS=="mac"', {'defines': ['_REENTRANT']}], | 21 ['OS=="linux" and use_system_libxml', { |
157 ['OS=="win"', { | 22 'type': 'settings', |
158 'product_name': 'libxml2', | 23 'direct_dependent_settings': { |
159 }, { # else: OS!="win" | 24 'cflags': [ |
160 'product_name': 'xml2', | 25 '<!@(python ../../build/linux/pkg_config_wrapper.py --cflags libxm
l-2.0)', |
| 26 ], |
| 27 }, |
| 28 'link_settings': { |
| 29 'libraries': [ |
| 30 '<!@(python ../../build/linux/pkg_config_wrapper.py --libs libxml-
2.0)', |
| 31 ], |
| 32 }, |
| 33 }, { # else: OS != "linux" or ! use_system_libxml |
| 34 'type': 'static_library', |
| 35 'msvs_guid': 'F9810DE8-CBC3-4605-A7B1-ECA2D5292FD7', |
| 36 'sources': [ |
| 37 'include/libxml/c14n.h', |
| 38 'include/libxml/catalog.h', |
| 39 'include/libxml/chvalid.h', |
| 40 'include/libxml/debugXML.h', |
| 41 'include/libxml/dict.h', |
| 42 'include/libxml/DOCBparser.h', |
| 43 'include/libxml/encoding.h', |
| 44 'include/libxml/entities.h', |
| 45 'include/libxml/globals.h', |
| 46 'include/libxml/hash.h', |
| 47 'include/libxml/HTMLparser.h', |
| 48 'include/libxml/HTMLtree.h', |
| 49 'include/libxml/list.h', |
| 50 'include/libxml/nanoftp.h', |
| 51 'include/libxml/nanohttp.h', |
| 52 'include/libxml/parser.h', |
| 53 'include/libxml/parserInternals.h', |
| 54 'include/libxml/pattern.h', |
| 55 'include/libxml/relaxng.h', |
| 56 'include/libxml/SAX.h', |
| 57 'include/libxml/SAX2.h', |
| 58 'include/libxml/schemasInternals.h', |
| 59 'include/libxml/schematron.h', |
| 60 'include/libxml/threads.h', |
| 61 'include/libxml/tree.h', |
| 62 'include/libxml/uri.h', |
| 63 'include/libxml/valid.h', |
| 64 'include/libxml/xinclude.h', |
| 65 'include/libxml/xlink.h', |
| 66 'include/libxml/xmlautomata.h', |
| 67 'include/libxml/xmlerror.h', |
| 68 'include/libxml/xmlexports.h', |
| 69 'include/libxml/xmlIO.h', |
| 70 'include/libxml/xmlmemory.h', |
| 71 'include/libxml/xmlmodule.h', |
| 72 'include/libxml/xmlreader.h', |
| 73 'include/libxml/xmlregexp.h', |
| 74 'include/libxml/xmlsave.h', |
| 75 'include/libxml/xmlschemas.h', |
| 76 'include/libxml/xmlschemastypes.h', |
| 77 'include/libxml/xmlstring.h', |
| 78 'include/libxml/xmlunicode.h', |
| 79 'include/libxml/xmlwriter.h', |
| 80 'include/libxml/xpath.h', |
| 81 'include/libxml/xpathInternals.h', |
| 82 'include/libxml/xpointer.h', |
| 83 'include/win32config.h', |
| 84 'include/wsockcompat.h', |
| 85 'linux/config.h', |
| 86 'linux/include/libxml/xmlversion.h', |
| 87 'mac/config.h', |
| 88 'mac/include/libxml/xmlversion.h', |
| 89 'win32/config.h', |
| 90 'win32/include/libxml/xmlversion.h', |
| 91 'acconfig.h', |
| 92 'c14n.c', |
| 93 'catalog.c', |
| 94 'chvalid.c', |
| 95 'debugXML.c', |
| 96 'dict.c', |
| 97 'DOCBparser.c', |
| 98 'elfgcchack.h', |
| 99 'encoding.c', |
| 100 'entities.c', |
| 101 'error.c', |
| 102 'globals.c', |
| 103 'hash.c', |
| 104 'HTMLparser.c', |
| 105 'HTMLtree.c', |
| 106 'legacy.c', |
| 107 'libxml.h', |
| 108 'list.c', |
| 109 'nanoftp.c', |
| 110 'nanohttp.c', |
| 111 'parser.c', |
| 112 'parserInternals.c', |
| 113 'pattern.c', |
| 114 'relaxng.c', |
| 115 'SAX.c', |
| 116 'SAX2.c', |
| 117 'schematron.c', |
| 118 'threads.c', |
| 119 'tree.c', |
| 120 #'trio.c', |
| 121 #'trio.h', |
| 122 #'triodef.h', |
| 123 #'trionan.c', |
| 124 #'trionan.h', |
| 125 #'triop.h', |
| 126 #'triostr.c', |
| 127 #'triostr.h', |
| 128 'uri.c', |
| 129 'valid.c', |
| 130 'xinclude.c', |
| 131 'xlink.c', |
| 132 'xmlIO.c', |
| 133 'xmlmemory.c', |
| 134 'xmlmodule.c', |
| 135 'xmlreader.c', |
| 136 'xmlregexp.c', |
| 137 'xmlsave.c', |
| 138 'xmlschemas.c', |
| 139 'xmlschemastypes.c', |
| 140 'xmlstring.c', |
| 141 'xmlunicode.c', |
| 142 'xmlwriter.c', |
| 143 'xpath.c', |
| 144 'xpointer.c', |
| 145 ], |
| 146 'defines': [ |
| 147 'LIBXML_STATIC', |
| 148 ], |
| 149 'include_dirs': [ |
| 150 '<(os_include)', |
| 151 '<(os_include)/include', |
| 152 'include', |
| 153 ], |
| 154 'dependencies': [ |
| 155 '../icu38/icu38.gyp:icuuc', |
| 156 '../zlib/zlib.gyp:zlib', |
| 157 ], |
| 158 'export_dependent_settings': [ |
| 159 '../icu38/icu38.gyp:icuuc', |
| 160 ], |
| 161 'direct_dependent_settings': { |
| 162 'defines': [ |
| 163 'LIBXML_STATIC', |
| 164 ], |
| 165 'include_dirs': [ |
| 166 '<(os_include)/include', |
| 167 'include', |
| 168 ], |
| 169 }, |
| 170 'conditions': [ |
| 171 ['OS=="mac"', {'defines': ['_REENTRANT']}], |
| 172 ['OS=="win"', { |
| 173 'product_name': 'libxml2', |
| 174 }, { # else: OS!="win" |
| 175 'product_name': 'xml2', |
| 176 }], |
| 177 ], |
161 }], | 178 }], |
162 ], | 179 ], |
163 }, | 180 }, |
164 { | 181 { |
165 'target_name': 'xmlcatalog', | 182 'target_name': 'xmlcatalog', |
166 'type': 'executable', | 183 'type': 'executable', |
167 'sources': [ | 184 'sources': [ |
168 'xmlcatalog.c', | 185 'xmlcatalog.c', |
169 ], | 186 ], |
170 'include_dirs': [ | 187 'include_dirs': [ |
(...skipping 29 matching lines...) Expand all Loading... |
200 'link_settings': { | 217 'link_settings': { |
201 'libraries': [ | 218 'libraries': [ |
202 '-lm', | 219 '-lm', |
203 ], | 220 ], |
204 }, | 221 }, |
205 }], | 222 }], |
206 ], | 223 ], |
207 }, | 224 }, |
208 ], | 225 ], |
209 } | 226 } |
OLD | NEW |