OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # Define an "os_include" variable that points at the OS-specific generated | 5 # Define an "os_include" variable that points at the OS-specific generated |
6 # headers. These were generated by running the configure script offline. | 6 # headers. These were generated by running the configure script offline. |
7 if (is_linux || is_android || is_nacl) { | 7 if (is_linux || is_android || is_nacl || is_fuchsia) { |
8 os_include = "linux" | 8 os_include = "linux" |
9 } else if (is_mac || is_ios) { | 9 } else if (is_mac || is_ios) { |
10 os_include = "mac" | 10 os_include = "mac" |
11 } else if (is_win) { | 11 } else if (is_win) { |
12 os_include = "win32" | 12 os_include = "win32" |
13 } | 13 } |
14 | 14 |
15 config("libxml_config") { | 15 config("libxml_config") { |
16 # Define LIBXML_STATIC as nothing to match how libxml.h (an internal header) | 16 # Define LIBXML_STATIC as nothing to match how libxml.h (an internal header) |
17 # defines LIBXML_STATIC, otherwise we get the macro redefined warning from | 17 # defines LIBXML_STATIC, otherwise we get the macro redefined warning from |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 cflags = [ | 64 cflags = [ |
65 # gcc spits out a bunch of warnings about passing too many arguments to | 65 # gcc spits out a bunch of warnings about passing too many arguments to |
66 # __xmlSimpleError. | 66 # __xmlSimpleError. |
67 "-Wno-format-extra-args", | 67 "-Wno-format-extra-args", |
68 ] | 68 ] |
69 } | 69 } |
70 } | 70 } |
71 | 71 |
72 static_library("libxml") { | 72 static_library("libxml") { |
73 output_name = "libxml2" | 73 output_name = "libxml2" |
| 74 |
74 # Commented out sources are libxml2 files we do not want to include. They are | 75 # Commented out sources are libxml2 files we do not want to include. They are |
75 # here to make it easy to identify files which are new. | 76 # here to make it easy to identify files which are new. |
76 sources = [ | 77 sources = [ |
77 "chromium/libxml_utils.cc", | 78 "chromium/libxml_utils.cc", |
78 "chromium/libxml_utils.h", | 79 "chromium/libxml_utils.h", |
79 "linux/config.h", | 80 "linux/config.h", |
80 "linux/include/libxml/xmlversion.h", | 81 "linux/include/libxml/xmlversion.h", |
81 "mac/config.h", | 82 "mac/config.h", |
82 "mac/include/libxml/xmlversion.h", | 83 "mac/include/libxml/xmlversion.h", |
| 84 |
83 #"src/DOCBparser.c", | 85 #"src/DOCBparser.c", |
84 "src/HTMLparser.c", | 86 "src/HTMLparser.c", |
85 "src/HTMLtree.c", | 87 "src/HTMLtree.c", |
| 88 |
86 #"src/SAX.c", | 89 #"src/SAX.c", |
87 "src/SAX2.c", | 90 "src/SAX2.c", |
88 "src/buf.c", | 91 "src/buf.c", |
89 "src/buf.h", | 92 "src/buf.h", |
| 93 |
90 #"src/c14n.c", | 94 #"src/c14n.c", |
91 #"src/catalog.c", | 95 #"src/catalog.c", |
92 "src/chvalid.c", | 96 "src/chvalid.c", |
| 97 |
93 #"src/debugXML.c", | 98 #"src/debugXML.c", |
94 "src/dict.c", | 99 "src/dict.c", |
95 "src/elfgcchack.h", | 100 "src/elfgcchack.h", |
96 "src/enc.h", | 101 "src/enc.h", |
97 "src/encoding.c", | 102 "src/encoding.c", |
98 "src/entities.c", | 103 "src/entities.c", |
99 "src/error.c", | 104 "src/error.c", |
100 "src/globals.c", | 105 "src/globals.c", |
101 "src/hash.c", | 106 "src/hash.c", |
102 "src/include/libxml/DOCBparser.h", | 107 "src/include/libxml/DOCBparser.h", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 "src/include/libxml/xmlschemas.h", | 145 "src/include/libxml/xmlschemas.h", |
141 "src/include/libxml/xmlschemastypes.h", | 146 "src/include/libxml/xmlschemastypes.h", |
142 "src/include/libxml/xmlstring.h", | 147 "src/include/libxml/xmlstring.h", |
143 "src/include/libxml/xmlunicode.h", | 148 "src/include/libxml/xmlunicode.h", |
144 "src/include/libxml/xmlwriter.h", | 149 "src/include/libxml/xmlwriter.h", |
145 "src/include/libxml/xpath.h", | 150 "src/include/libxml/xpath.h", |
146 "src/include/libxml/xpathInternals.h", | 151 "src/include/libxml/xpathInternals.h", |
147 "src/include/libxml/xpointer.h", | 152 "src/include/libxml/xpointer.h", |
148 "src/include/win32config.h", | 153 "src/include/win32config.h", |
149 "src/include/wsockcompat.h", | 154 "src/include/wsockcompat.h", |
| 155 |
150 #"src/legacy.c", | 156 #"src/legacy.c", |
151 "src/libxml.h", | 157 "src/libxml.h", |
152 "src/list.c", | 158 "src/list.c", |
153 "src/parser.c", | 159 "src/parser.c", |
154 "src/parserInternals.c", | 160 "src/parserInternals.c", |
155 "src/pattern.c", | 161 "src/pattern.c", |
| 162 |
156 #"src/relaxng.c", | 163 #"src/relaxng.c", |
157 "src/save.h", | 164 "src/save.h", |
| 165 |
158 #"src/schematron.c", | 166 #"src/schematron.c", |
159 "src/threads.c", | 167 "src/threads.c", |
160 "src/timsort.h", | 168 "src/timsort.h", |
161 "src/tree.c", | 169 "src/tree.c", |
162 "src/triodef.h", | 170 "src/triodef.h", |
163 "src/trionan.h", | 171 "src/trionan.h", |
| 172 |
164 #"src/trio.c", | 173 #"src/trio.c", |
165 #"src/trio.h", | 174 #"src/trio.h", |
166 #"src/triodef.h", | 175 #"src/triodef.h", |
167 # Note: xpath.c #includes trionan.c | 176 # Note: xpath.c #includes trionan.c |
168 #"src/trionan.c", | 177 #"src/trionan.c", |
169 #"src/triop.h", | 178 #"src/triop.h", |
170 #"src/triostr.c", | 179 #"src/triostr.c", |
171 #"src/triostr.h", | 180 #"src/triostr.h", |
172 "src/uri.c", | 181 "src/uri.c", |
173 "src/valid.c", | 182 "src/valid.c", |
| 183 |
174 #"src/xinclude.c", | 184 #"src/xinclude.c", |
175 #"src/xlink.c", | 185 #"src/xlink.c", |
176 "src/xmlIO.c", | 186 "src/xmlIO.c", |
177 "src/xmlmemory.c", | 187 "src/xmlmemory.c", |
| 188 |
178 #"src/xmlmodule.c", | 189 #"src/xmlmodule.c", |
179 "src/xmlreader.c", | 190 "src/xmlreader.c", |
| 191 |
180 #"src/xmlregexp.c", | 192 #"src/xmlregexp.c", |
181 "src/xmlsave.c", | 193 "src/xmlsave.c", |
| 194 |
182 #"src/xmlschemas.c", | 195 #"src/xmlschemas.c", |
183 #"src/xmlschemastypes.c", | 196 #"src/xmlschemastypes.c", |
184 "src/xmlstring.c", | 197 "src/xmlstring.c", |
185 "src/xmlunicode.c", | 198 "src/xmlunicode.c", |
186 "src/xmlwriter.c", | 199 "src/xmlwriter.c", |
187 "src/xpath.c", | 200 "src/xpath.c", |
| 201 |
188 #"src/xpointer.c", | 202 #"src/xpointer.c", |
189 #"src/xzlib.c", | 203 #"src/xzlib.c", |
190 "src/xzlib.h", | 204 "src/xzlib.h", |
191 "win32/config.h", | 205 "win32/config.h", |
192 "win32/include/libxml/xmlversion.h", | 206 "win32/include/libxml/xmlversion.h", |
193 ] | 207 ] |
194 | 208 |
195 configs -= [ "//build/config/compiler:chromium_code" ] | 209 configs -= [ "//build/config/compiler:chromium_code" ] |
196 configs += [ | 210 configs += [ |
197 "//build/config/compiler:no_chromium_code", | 211 "//build/config/compiler:no_chromium_code", |
(...skipping 13 matching lines...) Expand all Loading... |
211 if (is_mac || is_ios || is_android) { | 225 if (is_mac || is_ios || is_android) { |
212 # http://www.xmlsoft.org/threads.html says that this is required when using | 226 # http://www.xmlsoft.org/threads.html says that this is required when using |
213 # libxml from several threads, which can possibly happen in chrome. On | 227 # libxml from several threads, which can possibly happen in chrome. On |
214 # linux, this is picked up by transitivity from pkg-config output from | 228 # linux, this is picked up by transitivity from pkg-config output from |
215 # build/linux/system.gyp. | 229 # build/linux/system.gyp. |
216 defines = [ "_REENTRANT" ] | 230 defines = [ "_REENTRANT" ] |
217 } | 231 } |
218 | 232 |
219 include_dirs = [ "$os_include" ] | 233 include_dirs = [ "$os_include" ] |
220 } | 234 } |
OLD | NEW |