| 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" |
| 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 |
| 18 # GCC. ("defines" does "-DFOO" which defines the macro FOO as 1.) | 18 # GCC. ("defines" does "-DFOO" which defines the macro FOO as 1.) |
| 19 cflags = [ "-DLIBXML_STATIC=" ] | 19 cflags = [ "-DLIBXML_STATIC=" ] |
| 20 | 20 |
| 21 include_dirs = [ | 21 include_dirs = [ |
| 22 "src/include", | 22 "src/include", |
| 23 "$os_include/include", | 23 "$os_include/include", |
| 24 ] | 24 ] |
| 25 } | 25 } |
| 26 | 26 |
| 27 static_library("libxml") { | 27 source_set("libxml") { |
| 28 output_name = "libxml2" | |
| 29 sources = [ | 28 sources = [ |
| 30 "chromium/libxml_utils.h", | 29 "chromium/libxml_utils.h", |
| 31 "chromium/libxml_utils.cc", | 30 "chromium/libxml_utils.cc", |
| 32 "linux/config.h", | 31 "linux/config.h", |
| 33 "linux/include/libxml/xmlversion.h", | 32 "linux/include/libxml/xmlversion.h", |
| 34 "mac/config.h", | 33 "mac/config.h", |
| 35 "mac/include/libxml/xmlversion.h", | 34 "mac/include/libxml/xmlversion.h", |
| 36 "src/include/libxml/c14n.h", | 35 "src/include/libxml/c14n.h", |
| 37 "src/include/libxml/catalog.h", | 36 "src/include/libxml/catalog.h", |
| 38 "src/include/libxml/chvalid.h", | 37 "src/include/libxml/chvalid.h", |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 # debugXML.c compares array 'arg' to NULL. | 180 # debugXML.c compares array 'arg' to NULL. |
| 182 "-Wno-tautological-pointer-compare", | 181 "-Wno-tautological-pointer-compare", |
| 183 ] | 182 ] |
| 184 } | 183 } |
| 185 } | 184 } |
| 186 | 185 |
| 187 include_dirs = [ | 186 include_dirs = [ |
| 188 "$os_include", | 187 "$os_include", |
| 189 ] | 188 ] |
| 190 } | 189 } |
| OLD | NEW |