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" and OS != "ios"', { | 10 ['os_posix == 1 and OS != "mac" and OS != "ios"', { |
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 'toolsets': ['host', 'target'], | |
22 'conditions': [ | 21 'conditions': [ |
23 ['use_system_libxml', { | 22 ['use_system_libxml', { |
24 'conditions': [ | 23 'conditions': [ |
25 ['os_posix == 1 and OS != "mac" and OS != "ios"', { | 24 ['os_posix == 1 and OS != "mac" and OS != "ios"', { |
26 'type': 'static_library', | 25 'type': 'static_library', |
27 'sources': [ | 26 'sources': [ |
28 'chromium/libxml_utils.h', | 27 'chromium/libxml_utils.h', |
29 'chromium/libxml_utils.cc', | 28 'chromium/libxml_utils.cc', |
30 ], | 29 ], |
31 'cflags': [ | 30 'cflags': [ |
(...skipping 13 matching lines...) Expand all Loading... |
45 'link_settings': { | 44 'link_settings': { |
46 'ldflags': [ | 45 'ldflags': [ |
47 '<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)', | 46 '<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)', |
48 ], | 47 ], |
49 'libraries': [ | 48 'libraries': [ |
50 '<!@(pkg-config --libs-only-l libxml-2.0)', | 49 '<!@(pkg-config --libs-only-l libxml-2.0)', |
51 ], | 50 ], |
52 }, | 51 }, |
53 }], | 52 }], |
54 ['OS == "ios"', { | 53 ['OS == "ios"', { |
55 'type': 'static_library', | 54 'type': 'none', |
56 'sources': [ | |
57 'chromium/libxml_utils.h', | |
58 'chromium/libxml_utils.cc', | |
59 ], | |
60 'include_dirs': [ | |
61 '$(SDKROOT)/usr/include/libxml2', | |
62 ], | |
63 'all_dependent_settings': { | 55 'all_dependent_settings': { |
64 'defines': [ | 56 'defines': [ |
65 'USE_SYSTEM_LIBXML', | 57 'USE_SYSTEM_LIBXML', |
66 ], | 58 ], |
67 'include_dirs': [ | 59 'include_dirs': [ |
68 '$(SDKROOT)/usr/include/libxml2', | 60 '$(SDKROOT)/usr/include/libxml2', |
69 ], | 61 ], |
70 }, | 62 }, |
71 'link_settings': { | 63 'link_settings': { |
72 'libraries': [ | 64 'libraries': [ |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 'msvs_disabled_warnings': [ 4018, 4101, 4267 ], | 247 'msvs_disabled_warnings': [ 4018, 4101, 4267 ], |
256 }, { # else: OS!="win" | 248 }, { # else: OS!="win" |
257 'product_name': 'xml2', | 249 'product_name': 'xml2', |
258 }], | 250 }], |
259 ], | 251 ], |
260 }], | 252 }], |
261 ], | 253 ], |
262 }, | 254 }, |
263 ], | 255 ], |
264 } | 256 } |
OLD | NEW |