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 'includes': [ | 6 'includes': [ |
7 '../../build/win_precompile.gypi', | 7 '../../build/win_precompile.gypi', |
8 ], | 8 ], |
9 'variables': { | 9 'variables': { |
10 'variables': { | |
11 'conditions': [ | |
12 ['sysroot!=""', { | |
13 'pkg-config': '<(chroot_cmd) ../../build/linux/pkg-config-wrapper "<(s
ysroot)" "<(target_arch)" "<(system_libdir)"', | |
14 }, { | |
15 'pkg-config': 'pkg-config' | |
16 }], | |
17 ], | |
18 }, | |
19 | |
20 'pkg-config': '<(pkg-config)', | |
21 | |
22 'conditions': [ | 10 'conditions': [ |
23 ['OS=="linux" and (buildtype!="Official" or chromeos==1) and embedded==0',
{ | 11 ['OS=="linux" and (buildtype!="Official" or chromeos==1) and embedded==0',
{ |
24 # Since version 1.31.0, pangoft2 which we depend on pulls in harfbuzz | 12 # Since version 1.31.0, pangoft2 which we depend on pulls in harfbuzz |
25 # anyways. However, we want to have control of the version of harfbuzz | 13 # anyways. However, we want to have control of the version of harfbuzz |
26 # we use, so don't use system harfbuzz for official builds, unless we | 14 # we use, so don't use system harfbuzz for official builds, unless we |
27 # are building for chrome os, where we have the system harfbuzz under | 15 # are building for chrome os, where we have the system harfbuzz under |
28 # control as well. | 16 # control as well. |
29 'use_system_harfbuzz%': '<!(python ../../build/check_return_value.py <(p
kg-config) --atleast-version=1.31.0 pangoft2)', | 17 'use_system_harfbuzz%': '<!(python ../../build/check_return_value.py <(p
kg-config) --atleast-version=1.31.0 pangoft2)', |
30 }, { | 18 }, { |
31 'use_system_harfbuzz': 0, | 19 'use_system_harfbuzz': 0, |
32 }], | 20 }], |
33 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | |
34 # Override use_system_harfbuzz for ARM cross compiling so system | |
35 # harfbuzz is not used because the corresponding package is not | |
36 # available. | |
37 'use_system_harfbuzz': 0, | |
38 }], | |
39 ], | 21 ], |
40 }, | 22 }, |
41 'conditions': [ | 23 'conditions': [ |
42 ['use_system_harfbuzz==0', { | 24 ['use_system_harfbuzz==0', { |
43 'targets': [ | 25 'targets': [ |
44 { | 26 { |
45 'target_name': 'harfbuzz-ng', | 27 'target_name': 'harfbuzz-ng', |
46 'type': 'static_library', | 28 'type': 'static_library', |
47 'defines': [ | 29 'defines': [ |
48 'HAVE_OT', | 30 'HAVE_OT', |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 ], | 172 ], |
191 'libraries': [ | 173 'libraries': [ |
192 '<!@(<(pkg-config) --libs-only-l harfbuzz)', | 174 '<!@(<(pkg-config) --libs-only-l harfbuzz)', |
193 ], | 175 ], |
194 }, | 176 }, |
195 }, | 177 }, |
196 ], | 178 ], |
197 }], | 179 }], |
198 ], | 180 ], |
199 } | 181 } |
OLD | NEW |