| 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 53 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 # 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. |
| 74 sources = [ | 76 sources = [ |
| 75 "chromium/libxml_utils.cc", | 77 "chromium/libxml_utils.cc", |
| 76 "chromium/libxml_utils.h", | 78 "chromium/libxml_utils.h", |
| 77 "linux/config.h", | 79 "linux/config.h", |
| 78 "linux/include/libxml/xmlversion.h", | 80 "linux/include/libxml/xmlversion.h", |
| 79 "mac/config.h", | 81 "mac/config.h", |
| 80 "mac/include/libxml/xmlversion.h", | 82 "mac/include/libxml/xmlversion.h", |
| 81 #"src/DOCBparser.c", | 83 #"src/DOCBparser.c", |
| 82 "src/HTMLparser.c", | 84 "src/HTMLparser.c", |
| 83 "src/HTMLtree.c", | 85 "src/HTMLtree.c", |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 "src/save.h", | 157 "src/save.h", |
| 156 #"src/schematron.c", | 158 #"src/schematron.c", |
| 157 "src/threads.c", | 159 "src/threads.c", |
| 158 "src/timsort.h", | 160 "src/timsort.h", |
| 159 "src/tree.c", | 161 "src/tree.c", |
| 160 "src/triodef.h", | 162 "src/triodef.h", |
| 161 "src/trionan.h", | 163 "src/trionan.h", |
| 162 #"src/trio.c", | 164 #"src/trio.c", |
| 163 #"src/trio.h", | 165 #"src/trio.h", |
| 164 #"src/triodef.h", | 166 #"src/triodef.h", |
| 167 # Note: xpath.c #includes trionan.c |
| 165 #"src/trionan.c", | 168 #"src/trionan.c", |
| 166 #"src/trionan.h", | |
| 167 #"src/triop.h", | 169 #"src/triop.h", |
| 168 #"src/triostr.c", | 170 #"src/triostr.c", |
| 169 #"src/triostr.h", | 171 #"src/triostr.h", |
| 170 "src/uri.c", | 172 "src/uri.c", |
| 171 "src/valid.c", | 173 "src/valid.c", |
| 172 #"src/xinclude.c", | 174 #"src/xinclude.c", |
| 173 #"src/xlink.c", | 175 #"src/xlink.c", |
| 174 "src/xmlIO.c", | 176 "src/xmlIO.c", |
| 175 "src/xmlmemory.c", | 177 "src/xmlmemory.c", |
| 176 #"src/xmlmodule.c", | 178 #"src/xmlmodule.c", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 if (is_mac || is_ios || is_android) { | 211 if (is_mac || is_ios || is_android) { |
| 210 # http://www.xmlsoft.org/threads.html says that this is required when using | 212 # http://www.xmlsoft.org/threads.html says that this is required when using |
| 211 # libxml from several threads, which can possibly happen in chrome. On | 213 # libxml from several threads, which can possibly happen in chrome. On |
| 212 # linux, this is picked up by transitivity from pkg-config output from | 214 # linux, this is picked up by transitivity from pkg-config output from |
| 213 # build/linux/system.gyp. | 215 # build/linux/system.gyp. |
| 214 defines = [ "_REENTRANT" ] | 216 defines = [ "_REENTRANT" ] |
| 215 } | 217 } |
| 216 | 218 |
| 217 include_dirs = [ "$os_include" ] | 219 include_dirs = [ "$os_include" ] |
| 218 } | 220 } |
| OLD | NEW |