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 || 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" |
11 } else if (is_win) { | 11 } else if (is_win) { |
12 os_include = "win32" | 12 os_include = "win32" |
13 } | 13 } |
14 | 14 |
15 config("libxml_config") { | 15 config("libxml_config") { |
16 # Define LIBXML_STATIC as nothing to match how libxml.h (an internal header) | 16 # Define LIBXML_STATIC as nothing to match how libxml.h (an internal header) |
17 # defines LIBXML_STATIC, otherwise we get the macro redefined warning from | 17 # defines LIBXML_STATIC, otherwise we get the macro redefined warning from |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 "-Wno-tautological-pointer-compare", | 175 "-Wno-tautological-pointer-compare", |
176 | 176 |
177 # 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 |
178 # match the prototype in pthreads.h | 178 # match the prototype in pthreads.h |
179 "-Wno-ignored-attributes", | 179 "-Wno-ignored-attributes", |
180 ] | 180 ] |
181 } | 181 } |
182 | 182 |
183 include_dirs = [ "$os_include" ] | 183 include_dirs = [ "$os_include" ] |
184 } | 184 } |
OLD | NEW |