| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 "src/xmlwriter.c", | 135 "src/xmlwriter.c", |
| 136 "src/xpath.c", | 136 "src/xpath.c", |
| 137 "src/xpointer.c", | 137 "src/xpointer.c", |
| 138 "win32/config.h", | 138 "win32/config.h", |
| 139 "win32/include/libxml/xmlversion.h", | 139 "win32/include/libxml/xmlversion.h", |
| 140 ] | 140 ] |
| 141 | 141 |
| 142 configs -= [ "//build/config/compiler:chromium_code" ] | 142 configs -= [ "//build/config/compiler:chromium_code" ] |
| 143 configs += [ "//build/config/compiler:no_chromium_code" ] | 143 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 144 | 144 |
| 145 direct_dependent_configs = [ ":libxml_config" ] | 145 public_configs = [ ":libxml_config" ] |
| 146 forward_dependent_configs_from = [ "//third_party/icu:icuuc" ] | 146 public_deps = [ |
| 147 | 147 "//third_party/icu:icuuc", |
| 148 ] |
| 148 deps = [ | 149 deps = [ |
| 149 "//third_party/icu:icuuc", | |
| 150 "//third_party/zlib", | 150 "//third_party/zlib", |
| 151 ] | 151 ] |
| 152 | 152 |
| 153 if (is_win) { | 153 if (is_win) { |
| 154 cflags_c = [ | 154 cflags_c = [ |
| 155 "/wd4101", # Unreferenced local variable. | 155 "/wd4101", # Unreferenced local variable. |
| 156 ] | 156 ] |
| 157 } else if (is_mac || is_android) { | 157 } else if (is_mac || is_android) { |
| 158 # http://www.xmlsoft.org/threads.html says that this is required when using | 158 # 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 | 159 # libxml from several threads, which can possibly happen in chrome. On |
| (...skipping 18 matching lines...) Expand all Loading... |
| 178 # threads.c attempts to forward declare a pthread_equal which doesn't | 178 # threads.c attempts to forward declare a pthread_equal which doesn't |
| 179 # match the prototype in pthreads.h | 179 # match the prototype in pthreads.h |
| 180 "-Wno-ignored-attributes", | 180 "-Wno-ignored-attributes", |
| 181 ] | 181 ] |
| 182 } | 182 } |
| 183 | 183 |
| 184 include_dirs = [ | 184 include_dirs = [ |
| 185 "$os_include", | 185 "$os_include", |
| 186 ] | 186 ] |
| 187 } | 187 } |
| OLD | NEW |