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=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | 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=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") ' | 22 ['os_posix == 1 and OS != "mac" and use_system_libxml', { |
23 'and use_system_libxml', { | |
24 'type': 'settings', | 23 'type': 'settings', |
25 'direct_dependent_settings': { | 24 'direct_dependent_settings': { |
26 'cflags': [ | 25 'cflags': [ |
27 '<!@(pkg-config --cflags libxml-2.0)', | 26 '<!@(pkg-config --cflags libxml-2.0)', |
28 ], | 27 ], |
29 'defines': [ | 28 'defines': [ |
30 'USE_SYSTEM_LIBXML', | 29 'USE_SYSTEM_LIBXML', |
31 ], | 30 ], |
32 }, | 31 }, |
33 'link_settings': { | 32 'link_settings': { |
34 'ldflags': [ | 33 'ldflags': [ |
35 '<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)', | 34 '<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)', |
36 ], | 35 ], |
37 'libraries': [ | 36 'libraries': [ |
38 '<!@(pkg-config --libs-only-l libxml-2.0)', | 37 '<!@(pkg-config --libs-only-l libxml-2.0)', |
39 ], | 38 ], |
40 }, | 39 }, |
41 }, { # else: OS != "linux" or ! use_system_libxml | 40 }, { # else: os_posix != 1 or OS == "mac" or ! use_system_libxml |
42 'type': 'static_library', | 41 'type': 'static_library', |
43 'msvs_guid': 'F9810DE8-CBC3-4605-A7B1-ECA2D5292FD7', | 42 'msvs_guid': 'F9810DE8-CBC3-4605-A7B1-ECA2D5292FD7', |
44 'sources': [ | 43 'sources': [ |
45 'linux/config.h', | 44 'linux/config.h', |
46 'linux/include/libxml/xmlversion.h', | 45 'linux/include/libxml/xmlversion.h', |
47 'mac/config.h', | 46 'mac/config.h', |
48 'mac/include/libxml/xmlversion.h', | 47 'mac/include/libxml/xmlversion.h', |
49 'src/include/libxml/c14n.h', | 48 'src/include/libxml/c14n.h', |
50 'src/include/libxml/catalog.h', | 49 'src/include/libxml/catalog.h', |
51 'src/include/libxml/chvalid.h', | 50 'src/include/libxml/chvalid.h', |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 ], | 198 ], |
200 }, | 199 }, |
201 ], | 200 ], |
202 } | 201 } |
203 | 202 |
204 # Local Variables: | 203 # Local Variables: |
205 # tab-width:2 | 204 # tab-width:2 |
206 # indent-tabs-mode:nil | 205 # indent-tabs-mode:nil |
207 # End: | 206 # End: |
208 # vim: set expandtab tabstop=2 shiftwidth=2: | 207 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |