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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 # libxml passes `const unsigned char*` through `const char*`. | 167 # libxml passes `const unsigned char*` through `const char*`. |
168 "-Wno-pointer-sign", | 168 "-Wno-pointer-sign", |
169 | 169 |
170 # pattern.c and uri.c both have an intentional `for (...);` / | 170 # pattern.c and uri.c both have an intentional `for (...);` / |
171 # `while(...);` loop. I submitted a patch to move the `'` to its own | 171 # `while(...);` loop. I submitted a patch to move the `'` to its own |
172 # line, but until that's landed suppress the warning: | 172 # line, but until that's landed suppress the warning: |
173 "-Wno-empty-body", | 173 "-Wno-empty-body", |
174 | 174 |
175 # debugXML.c compares array 'arg' to NULL. | 175 # debugXML.c compares array 'arg' to NULL. |
176 "-Wno-tautological-pointer-compare", | 176 "-Wno-tautological-pointer-compare", |
| 177 |
| 178 # threads.c attempts to forward declare a pthread_equal which doesn't |
| 179 # match the prototype in pthreads.h |
| 180 "-Wno-ignored-attributes", |
177 ] | 181 ] |
178 } | 182 } |
179 | 183 |
180 include_dirs = [ | 184 include_dirs = [ |
181 "$os_include", | 185 "$os_include", |
182 ] | 186 ] |
183 } | 187 } |
OLD | NEW |