OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 # Define an "os_include" variable that points at the OS-specific generated | 8 # Define an "os_include" variable that points at the OS-specific generated |
9 # headers. These were generated by running the configure script offline. | 9 # headers. These were generated by running the configure script offline. |
10 ['os_posix == 1 and OS != "mac"', { | 10 ['os_posix == 1 and OS != "mac"', { |
11 'os_include': 'linux' | 11 'os_include': 'linux' |
12 }], | 12 }], |
13 ['OS=="mac"', {'os_include': 'mac'}], | 13 ['OS=="mac"', {'os_include': 'mac'}], |
14 ['OS=="win"', {'os_include': 'win32'}], | 14 ['OS=="win"', {'os_include': 'win32'}], |
15 ], | 15 ], |
16 'use_system_libxml%': 0, | 16 'use_system_libxml%': 0, |
17 }, | 17 }, |
18 'targets': [ | 18 'targets': [ |
19 { | 19 { |
20 'target_name': 'libxml', | 20 'target_name': 'libxml', |
21 'conditions': [ | 21 'conditions': [ |
22 ['os_posix == 1 and OS != "mac" and use_system_libxml', { | 22 ['os_posix == 1 and OS != "mac" and use_system_libxml', { |
23 'type': 'none', | 23 'type': 'static_library', |
| 24 'sources': [ |
| 25 'chromium/libxml_utils.h', |
| 26 'chromium/libxml_utils.cc', |
| 27 ], |
| 28 'cflags': [ |
| 29 '<!@(pkg-config --cflags libxml-2.0)', |
| 30 ], |
| 31 'defines': [ |
| 32 'USE_SYSTEM_LIBXML', |
| 33 ], |
24 'direct_dependent_settings': { | 34 'direct_dependent_settings': { |
25 'cflags': [ | 35 'cflags': [ |
26 '<!@(pkg-config --cflags libxml-2.0)', | 36 '<!@(pkg-config --cflags libxml-2.0)', |
27 ], | 37 ], |
28 'defines': [ | 38 'defines': [ |
29 'USE_SYSTEM_LIBXML', | 39 'USE_SYSTEM_LIBXML', |
30 ], | 40 ], |
31 }, | 41 }, |
32 'link_settings': { | 42 'link_settings': { |
33 'ldflags': [ | 43 'ldflags': [ |
34 '<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)', | 44 '<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)', |
35 ], | 45 ], |
36 'libraries': [ | 46 'libraries': [ |
37 '<!@(pkg-config --libs-only-l libxml-2.0)', | 47 '<!@(pkg-config --libs-only-l libxml-2.0)', |
38 ], | 48 ], |
39 }, | 49 }, |
40 }, { # else: os_posix != 1 or OS == "mac" or ! use_system_libxml | 50 }, { # else: os_posix != 1 or OS == "mac" or ! use_system_libxml |
41 'type': 'static_library', | 51 'type': 'static_library', |
42 'sources': [ | 52 'sources': [ |
| 53 'chromium/libxml_utils.h', |
| 54 'chromium/libxml_utils.cc', |
43 'linux/config.h', | 55 'linux/config.h', |
44 'linux/include/libxml/xmlversion.h', | 56 'linux/include/libxml/xmlversion.h', |
45 'mac/config.h', | 57 'mac/config.h', |
46 'mac/include/libxml/xmlversion.h', | 58 'mac/include/libxml/xmlversion.h', |
47 'src/include/libxml/c14n.h', | 59 'src/include/libxml/c14n.h', |
48 'src/include/libxml/catalog.h', | 60 'src/include/libxml/catalog.h', |
49 'src/include/libxml/chvalid.h', | 61 'src/include/libxml/chvalid.h', |
50 'src/include/libxml/debugXML.h', | 62 'src/include/libxml/debugXML.h', |
51 'src/include/libxml/dict.h', | 63 'src/include/libxml/dict.h', |
52 'src/include/libxml/DOCBparser.h', | 64 'src/include/libxml/DOCBparser.h', |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 '-Wno-pointer-sign', | 224 '-Wno-pointer-sign', |
213 '-Wno-empty-body', | 225 '-Wno-empty-body', |
214 ], | 226 ], |
215 }], | 227 }], |
216 ], | 228 ], |
217 }], | 229 }], |
218 ], | 230 ], |
219 }, | 231 }, |
220 ], | 232 ], |
221 } | 233 } |
OLD | NEW |