OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # The GYP build supports system harfbuzz for non-official builds when using | 5 # The GYP build supports system harfbuzz for non-official builds when using |
6 # pangoft2 1.31.0 or greater (which pulls it in). | 6 # pangoft2 1.31.0 or greater (which pulls it in). |
7 # TODO(brettw) we can consider doing this as well, although the benefit is | 7 # TODO(brettw) we can consider doing this as well, although the benefit is |
8 # unclear and requires shelling out to a script to check the version. | 8 # unclear and requires shelling out to a script to check the version. |
9 # | 9 # |
10 # ChromeOS uses an up-to-date system one that we have control over, so we | 10 # ChromeOS uses an up-to-date system one that we have control over, so we |
11 # don't want to bloat the binary more by including another copy. | 11 # don't want to bloat the binary more by including another copy. |
12 use_system_harfbuzz = is_chromeos | 12 |
| 13 declare_args() { |
| 14 use_system_harfbuzz = is_chromeos |
| 15 } |
13 | 16 |
14 if (use_system_harfbuzz) { | 17 if (use_system_harfbuzz) { |
15 import("//build/config/linux/pkg_config.gni") | 18 import("//build/config/linux/pkg_config.gni") |
16 pkg_config("harfbuzz_pkgconfig") { | 19 pkg_config("harfbuzz_pkgconfig") { |
17 packages = [ "harfbuzz" ] | 20 packages = [ "harfbuzz" ] |
18 } | 21 } |
19 group("harfbuzz-ng") { | 22 group("harfbuzz-ng") { |
20 direct_dependent_configs = [ ":harfbuzz_pkgconfig" ] | 23 direct_dependent_configs = [ ":harfbuzz_pkgconfig" ] |
21 } | 24 } |
22 | 25 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 } | 147 } |
145 if (is_mac) { | 148 if (is_mac) { |
146 sources += [ | 149 sources += [ |
147 "src/hb-coretext.cc", | 150 "src/hb-coretext.cc", |
148 "src/hb-coretext.h", | 151 "src/hb-coretext.h", |
149 ] | 152 ] |
150 defines += [ "HAVE_CORETEXT" ] | 153 defines += [ "HAVE_CORETEXT" ] |
151 } | 154 } |
152 } | 155 } |
153 } | 156 } |
OLD | NEW |