| 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) { | 7 if (is_linux || is_android) { |
| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 "src/nanohttp.c", | 103 "src/nanohttp.c", |
| 104 "src/parser.c", | 104 "src/parser.c", |
| 105 "src/parserInternals.c", | 105 "src/parserInternals.c", |
| 106 "src/pattern.c", | 106 "src/pattern.c", |
| 107 "src/relaxng.c", | 107 "src/relaxng.c", |
| 108 "src/SAX.c", | 108 "src/SAX.c", |
| 109 "src/SAX2.c", | 109 "src/SAX2.c", |
| 110 "src/schematron.c", | 110 "src/schematron.c", |
| 111 "src/threads.c", | 111 "src/threads.c", |
| 112 "src/tree.c", | 112 "src/tree.c", |
| 113 |
| 113 #"src/trio.c", | 114 #"src/trio.c", |
| 114 #"src/trio.h", | 115 #"src/trio.h", |
| 115 #"src/triodef.h", | 116 #"src/triodef.h", |
| 116 #"src/trionan.c", | 117 #"src/trionan.c", |
| 117 #"src/trionan.h", | 118 #"src/trionan.h", |
| 118 #"src/triop.h", | 119 #"src/triop.h", |
| 119 #"src/triostr.c", | 120 #"src/triostr.c", |
| 120 #"src/triostr.h", | 121 #"src/triostr.h", |
| 121 "src/uri.c", | 122 "src/uri.c", |
| 122 "src/valid.c", | 123 "src/valid.c", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 144 | 145 |
| 145 public_configs = [ ":libxml_config" ] | 146 public_configs = [ ":libxml_config" ] |
| 146 public_deps = [ | 147 public_deps = [ |
| 147 "//third_party/icu:icuuc", | 148 "//third_party/icu:icuuc", |
| 148 ] | 149 ] |
| 149 deps = [ | 150 deps = [ |
| 150 "//third_party/zlib", | 151 "//third_party/zlib", |
| 151 ] | 152 ] |
| 152 | 153 |
| 153 if (is_win) { | 154 if (is_win) { |
| 154 cflags_c = [ | 155 cflags_c = [ "/wd4101" ] # Unreferenced local variable. |
| 155 "/wd4101", # Unreferenced local variable. | |
| 156 ] | |
| 157 } else if (is_mac || is_android) { | 156 } else if (is_mac || is_android) { |
| 158 # http://www.xmlsoft.org/threads.html says that this is required when using | 157 # http://www.xmlsoft.org/threads.html says that this is required when using |
| 159 # libxml from several threads, which can possibly happen in chrome. On | 158 # libxml from several threads, which can possibly happen in chrome. On |
| 160 # linux, this is picked up by transitivity from pkg-config output from | 159 # linux, this is picked up by transitivity from pkg-config output from |
| 161 # build/linux/system.gyp. | 160 # build/linux/system.gyp. |
| 162 defines = [ "_REENTRANT" ] | 161 defines = [ "_REENTRANT" ] |
| 163 } | 162 } |
| 164 | 163 |
| 165 if (is_clang) { | 164 if (is_clang) { |
| 166 cflags = [ | 165 cflags = [ |
| 167 # libxml passes `const unsigned char*` through `const char*`. | 166 # libxml passes `const unsigned char*` through `const char*`. |
| 168 "-Wno-pointer-sign", | 167 "-Wno-pointer-sign", |
| 169 | 168 |
| 170 # pattern.c and uri.c both have an intentional `for (...);` / | 169 # pattern.c and uri.c both have an intentional `for (...);` / |
| 171 # `while(...);` loop. I submitted a patch to move the `'` to its own | 170 # `while(...);` loop. I submitted a patch to move the `'` to its own |
| 172 # line, but until that's landed suppress the warning: | 171 # line, but until that's landed suppress the warning: |
| 173 "-Wno-empty-body", | 172 "-Wno-empty-body", |
| 174 | 173 |
| 175 # debugXML.c compares array 'arg' to NULL. | 174 # debugXML.c compares array 'arg' to NULL. |
| 176 "-Wno-tautological-pointer-compare", | 175 "-Wno-tautological-pointer-compare", |
| 177 | 176 |
| 178 # threads.c attempts to forward declare a pthread_equal which doesn't | 177 # threads.c attempts to forward declare a pthread_equal which doesn't |
| 179 # match the prototype in pthreads.h | 178 # match the prototype in pthreads.h |
| 180 "-Wno-ignored-attributes", | 179 "-Wno-ignored-attributes", |
| 181 ] | 180 ] |
| 182 } | 181 } |
| 183 | 182 |
| 184 include_dirs = [ | 183 include_dirs = [ "$os_include" ] |
| 185 "$os_include", | |
| 186 ] | |
| 187 } | 184 } |
| OLD | NEW |