OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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': 'settings', | 23 'type': 'none', |
24 'direct_dependent_settings': { | 24 'direct_dependent_settings': { |
25 'cflags': [ | 25 'cflags': [ |
26 '<!@(pkg-config --cflags libxml-2.0)', | 26 '<!@(pkg-config --cflags libxml-2.0)', |
27 ], | 27 ], |
28 'defines': [ | 28 'defines': [ |
29 'USE_SYSTEM_LIBXML', | 29 'USE_SYSTEM_LIBXML', |
30 ], | 30 ], |
31 }, | 31 }, |
32 'link_settings': { | 32 'link_settings': { |
33 'ldflags': [ | 33 'ldflags': [ |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 'product_name': 'libxml2', | 191 'product_name': 'libxml2', |
192 }, { # else: OS!="win" | 192 }, { # else: OS!="win" |
193 'product_name': 'xml2', | 193 'product_name': 'xml2', |
194 }], | 194 }], |
195 ], | 195 ], |
196 }], | 196 }], |
197 ], | 197 ], |
198 }, | 198 }, |
199 ], | 199 ], |
200 } | 200 } |
OLD | NEW |