Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

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

Issue 2692273008: Hacky slashy (Closed)
Patch Set: tidy up required gn flags, use sdk Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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 || is_nacl) { 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 } else if (current_os == "fuchsia") {
14 os_include = "fuchsia"
13 } 15 }
14 16
15 config("libxml_config") { 17 config("libxml_config") {
16 # Define LIBXML_STATIC as nothing to match how libxml.h (an internal header) 18 # 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 19 # defines LIBXML_STATIC, otherwise we get the macro redefined warning from
18 # GCC. ("defines" does "-DFOO" which defines the macro FOO as 1.) 20 # GCC. ("defines" does "-DFOO" which defines the macro FOO as 1.)
19 cflags = [ "-DLIBXML_STATIC=" ] 21 cflags = [ "-DLIBXML_STATIC=" ]
20 22
21 include_dirs = [ 23 include_dirs = [
22 "src/include", 24 "src/include",
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 if (is_mac || is_ios || is_android) { 203 if (is_mac || is_ios || is_android) {
202 # http://www.xmlsoft.org/threads.html says that this is required when using 204 # http://www.xmlsoft.org/threads.html says that this is required when using
203 # libxml from several threads, which can possibly happen in chrome. On 205 # libxml from several threads, which can possibly happen in chrome. On
204 # linux, this is picked up by transitivity from pkg-config output from 206 # linux, this is picked up by transitivity from pkg-config output from
205 # build/linux/system.gyp. 207 # build/linux/system.gyp.
206 defines = [ "_REENTRANT" ] 208 defines = [ "_REENTRANT" ]
207 } 209 }
208 210
209 include_dirs = [ "$os_include" ] 211 include_dirs = [ "$os_include" ]
210 } 212 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698