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

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

Issue 913373002: Update Chomium's build files to work w/ latest GN binaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_cpu_arch_changes
Patch Set: cleanup / review Created 5 years, 10 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
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 import("//build/config/linux/pkg_config.gni") 5 import("//build/config/linux/pkg_config.gni")
6 6
7 # The GYP build supports system harfbuzz for non-official builds when using 7 # The GYP build supports system harfbuzz for non-official builds when using
8 # pangoft2 1.31.0 or greater (which pulls it in). 8 # pangoft2 1.31.0 or greater (which pulls it in).
9 # TODO(brettw) we can consider doing this as well, although the benefit is 9 # TODO(brettw) we can consider doing this as well, although the benefit is
10 # unclear and requires shelling out to a script to check the version. 10 # unclear and requires shelling out to a script to check the version.
(...skipping 10 matching lines...) Expand all
21 # control as well. 21 # control as well.
22 use_system_harfbuzz = exec_script(pkg_config_script, 22 use_system_harfbuzz = exec_script(pkg_config_script,
23 pkg_config_args + [ 23 pkg_config_args + [
24 "--atleast-version=1.31.0", 24 "--atleast-version=1.31.0",
25 "pangoft2", 25 "pangoft2",
26 ], 26 ],
27 "value") 27 "value")
28 } else { 28 } else {
29 use_system_harfbuzz = false 29 use_system_harfbuzz = false
30 } 30 }
31 if (is_linux && cpu_arch == "arm" && !is_chromeos) { 31 if (is_linux && current_cpu == "arm" && !is_chromeos) {
32 # Override use_system_harfbuzz for ARM cross compiling so system 32 # Override use_system_harfbuzz for ARM cross compiling so system
33 # harfbuzz is not used because the corresponding package is not 33 # harfbuzz is not used because the corresponding package is not
34 # available. 34 # available.
35 use_system_harfbuzz = false 35 use_system_harfbuzz = false
36 } 36 }
37 } 37 }
38 38
39 if (use_system_harfbuzz) { 39 if (use_system_harfbuzz) {
40 import("//build/config/linux/pkg_config.gni") 40 import("//build/config/linux/pkg_config.gni")
41 pkg_config("harfbuzz_pkgconfig") { 41 pkg_config("harfbuzz_pkgconfig") {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 168 }
169 if (is_mac) { 169 if (is_mac) {
170 sources += [ 170 sources += [
171 "src/hb-coretext.cc", 171 "src/hb-coretext.cc",
172 "src/hb-coretext.h", 172 "src/hb-coretext.h",
173 ] 173 ]
174 defines += [ "HAVE_CORETEXT" ] 174 defines += [ "HAVE_CORETEXT" ]
175 } 175 }
176 } 176 }
177 } 177 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698