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