Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/harfbuzz-ng/BUILD.gn

Issue 547283004: [GN] Make |use_system_harfbuzz| configurable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698