| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 public_deps = [ | 146 public_deps = [ |
| 147 "//third_party/icu:icuuc", | 147 "//third_party/icu:icuuc", |
| 148 ] | 148 ] |
| 149 deps = [ | 149 deps = [ |
| 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 "/wd4267", # TODO(jschuh): crbug.com/167187 size_t to int truncations. | |
| 157 ] | 156 ] |
| 158 } else if (is_mac || is_android) { | 157 } else if (is_mac || is_android) { |
| 159 # 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 |
| 160 # libxml from several threads, which can possibly happen in chrome. On | 159 # libxml from several threads, which can possibly happen in chrome. On |
| 161 # linux, this is picked up by transitivity from pkg-config output from | 160 # linux, this is picked up by transitivity from pkg-config output from |
| 162 # build/linux/system.gyp. | 161 # build/linux/system.gyp. |
| 163 defines = [ "_REENTRANT" ] | 162 defines = [ "_REENTRANT" ] |
| 164 } | 163 } |
| 165 | 164 |
| 166 if (is_clang) { | 165 if (is_clang) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 179 # 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 |
| 180 # match the prototype in pthreads.h | 179 # match the prototype in pthreads.h |
| 181 "-Wno-ignored-attributes", | 180 "-Wno-ignored-attributes", |
| 182 ] | 181 ] |
| 183 } | 182 } |
| 184 | 183 |
| 185 include_dirs = [ | 184 include_dirs = [ |
| 186 "$os_include", | 185 "$os_include", |
| 187 ] | 186 ] |
| 188 } | 187 } |
| OLD | NEW |