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) { |
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" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 static_library("libxml") { | 72 static_library("libxml") { |
73 output_name = "libxml2" | 73 output_name = "libxml2" |
74 sources = [ | 74 sources = [ |
75 "chromium/libxml_utils.cc", | 75 "chromium/libxml_utils.cc", |
76 "chromium/libxml_utils.h", | 76 "chromium/libxml_utils.h", |
77 "linux/config.h", | 77 "linux/config.h", |
78 "linux/include/libxml/xmlversion.h", | 78 "linux/include/libxml/xmlversion.h", |
79 "mac/config.h", | 79 "mac/config.h", |
80 "mac/include/libxml/xmlversion.h", | 80 "mac/include/libxml/xmlversion.h", |
81 "src/DOCBparser.c", | 81 #"src/DOCBparser.c", |
82 "src/HTMLparser.c", | 82 "src/HTMLparser.c", |
83 "src/HTMLtree.c", | 83 "src/HTMLtree.c", |
84 "src/SAX.c", | 84 #"src/SAX.c", |
85 "src/SAX2.c", | 85 "src/SAX2.c", |
86 "src/buf.c", | 86 "src/buf.c", |
87 "src/buf.h", | 87 "src/buf.h", |
88 "src/c14n.c", | 88 #"src/c14n.c", |
89 "src/catalog.c", | 89 #"src/catalog.c", |
90 "src/chvalid.c", | 90 "src/chvalid.c", |
91 "src/debugXML.c", | 91 #"src/debugXML.c", |
92 "src/dict.c", | 92 "src/dict.c", |
93 "src/elfgcchack.h", | 93 "src/elfgcchack.h", |
94 "src/enc.h", | 94 "src/enc.h", |
95 "src/encoding.c", | 95 "src/encoding.c", |
96 "src/entities.c", | 96 "src/entities.c", |
97 "src/error.c", | 97 "src/error.c", |
98 "src/globals.c", | 98 "src/globals.c", |
99 "src/hash.c", | 99 "src/hash.c", |
100 "src/include/libxml/DOCBparser.h", | 100 "src/include/libxml/DOCBparser.h", |
101 "src/include/libxml/HTMLparser.h", | 101 "src/include/libxml/HTMLparser.h", |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 "src/include/libxml/xmlschemas.h", | 138 "src/include/libxml/xmlschemas.h", |
139 "src/include/libxml/xmlschemastypes.h", | 139 "src/include/libxml/xmlschemastypes.h", |
140 "src/include/libxml/xmlstring.h", | 140 "src/include/libxml/xmlstring.h", |
141 "src/include/libxml/xmlunicode.h", | 141 "src/include/libxml/xmlunicode.h", |
142 "src/include/libxml/xmlwriter.h", | 142 "src/include/libxml/xmlwriter.h", |
143 "src/include/libxml/xpath.h", | 143 "src/include/libxml/xpath.h", |
144 "src/include/libxml/xpathInternals.h", | 144 "src/include/libxml/xpathInternals.h", |
145 "src/include/libxml/xpointer.h", | 145 "src/include/libxml/xpointer.h", |
146 "src/include/win32config.h", | 146 "src/include/win32config.h", |
147 "src/include/wsockcompat.h", | 147 "src/include/wsockcompat.h", |
148 "src/legacy.c", | 148 #"src/legacy.c", |
149 "src/libxml.h", | 149 "src/libxml.h", |
150 "src/list.c", | 150 "src/list.c", |
151 "src/parser.c", | 151 "src/parser.c", |
152 "src/parserInternals.c", | 152 "src/parserInternals.c", |
153 "src/pattern.c", | 153 "src/pattern.c", |
154 "src/relaxng.c", | 154 #"src/relaxng.c", |
155 "src/save.h", | 155 "src/save.h", |
156 "src/schematron.c", | 156 #"src/schematron.c", |
157 "src/threads.c", | 157 "src/threads.c", |
158 "src/timsort.h", | 158 "src/timsort.h", |
159 "src/tree.c", | 159 "src/tree.c", |
160 "src/triodef.h", | 160 "src/triodef.h", |
161 "src/trionan.h", | 161 "src/trionan.h", |
162 | |
163 #"src/trio.c", | 162 #"src/trio.c", |
164 #"src/trio.h", | 163 #"src/trio.h", |
165 #"src/triodef.h", | 164 #"src/triodef.h", |
166 #"src/trionan.c", | 165 #"src/trionan.c", |
167 #"src/trionan.h", | 166 #"src/trionan.h", |
168 #"src/triop.h", | 167 #"src/triop.h", |
169 #"src/triostr.c", | 168 #"src/triostr.c", |
170 #"src/triostr.h", | 169 #"src/triostr.h", |
171 "src/uri.c", | 170 "src/uri.c", |
172 "src/valid.c", | 171 "src/valid.c", |
173 "src/xinclude.c", | 172 #"src/xinclude.c", |
174 "src/xlink.c", | 173 #"src/xlink.c", |
175 "src/xmlIO.c", | 174 "src/xmlIO.c", |
176 "src/xmlmemory.c", | 175 "src/xmlmemory.c", |
177 "src/xmlmodule.c", | 176 #"src/xmlmodule.c", |
178 "src/xmlreader.c", | 177 "src/xmlreader.c", |
179 "src/xmlregexp.c", | 178 #"src/xmlregexp.c", |
180 "src/xmlsave.c", | 179 "src/xmlsave.c", |
181 "src/xmlschemas.c", | 180 #"src/xmlschemas.c", |
182 "src/xmlschemastypes.c", | 181 #"src/xmlschemastypes.c", |
183 "src/xmlstring.c", | 182 "src/xmlstring.c", |
184 "src/xmlunicode.c", | 183 "src/xmlunicode.c", |
185 "src/xmlwriter.c", | 184 "src/xmlwriter.c", |
186 "src/xpath.c", | 185 "src/xpath.c", |
187 "src/xpointer.c", | 186 #"src/xpointer.c", |
188 | |
189 #"src/xzlib.c", | 187 #"src/xzlib.c", |
190 "src/xzlib.h", | 188 "src/xzlib.h", |
191 "win32/config.h", | 189 "win32/config.h", |
192 "win32/include/libxml/xmlversion.h", | 190 "win32/include/libxml/xmlversion.h", |
193 ] | 191 ] |
194 | 192 |
195 configs -= [ "//build/config/compiler:chromium_code" ] | 193 configs -= [ "//build/config/compiler:chromium_code" ] |
196 configs += [ | 194 configs += [ |
197 "//build/config/compiler:no_chromium_code", | 195 "//build/config/compiler:no_chromium_code", |
198 | 196 |
(...skipping 12 matching lines...) Expand all Loading... |
211 if (is_mac || is_ios || is_android) { | 209 if (is_mac || is_ios || is_android) { |
212 # http://www.xmlsoft.org/threads.html says that this is required when using | 210 # 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 | 211 # libxml from several threads, which can possibly happen in chrome. On |
214 # linux, this is picked up by transitivity from pkg-config output from | 212 # linux, this is picked up by transitivity from pkg-config output from |
215 # build/linux/system.gyp. | 213 # build/linux/system.gyp. |
216 defines = [ "_REENTRANT" ] | 214 defines = [ "_REENTRANT" ] |
217 } | 215 } |
218 | 216 |
219 include_dirs = [ "$os_include" ] | 217 include_dirs = [ "$os_include" ] |
220 } | 218 } |
OLD | NEW |