Chromium Code Reviews

Side by Side Diff: tools/gn/secondary/third_party/libxml/BUILD.gn

Issue 239543013: Work on Mac GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix line endings Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
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 157 matching lines...)
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 # See http://crbug.com/138571#c8 175 # See http://crbug.com/138571#c8
176 "-Wno-ignored-attributes", 176 "-Wno-ignored-attributes",
177 ] 177 ]
178 if (is_mac) {
179 # Mac Clang warnings.
180 cflags += [
181 # debugXML.c compares array 'arg' to NULL.
182 "-Wno-tautological-pointer-compare",
183 ]
184 }
178 } 185 }
179 186
180 include_dirs = [ 187 include_dirs = [
181 "$os_include", 188 "$os_include",
182 ] 189 ]
183 } 190 }
OLDNEW

Powered by Google App Engine