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

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

Issue 702903004: Add chrome perf tests and sniffer to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « remoting/resources/BUILD.gn ('k') | 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 import("//build/config/linux/pkg_config.gni")
6
5 # 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
6 # pangoft2 1.31.0 or greater (which pulls it in). 8 # pangoft2 1.31.0 or greater (which pulls it in).
7 # 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
8 # 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.
9 # 11 #
10 # ChromeOS uses an up-to-date system one that we have control over, so we 12 # 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. 13 # don't want to bloat the binary more by including another copy.
12 14
13 declare_args() { 15 declare_args() {
14 use_system_harfbuzz = is_chromeos 16 if (is_chromeos) {
17 # ChromeOS includes an up-to-date system harfbuzz that we have control
18 # over, so it use the system one by default.
Dirk Pranke 2014/11/08 01:27:13 you probably already realize this, but if you buil
19 use_system_harfbuzz = true
20 } else if (is_official_build) {
21 # For official builds, we want to control the Harbuzz version so always
22 # use our included one. Currently the sysroot includes a version of pangoft
23 # that doesn't link to harfbuzz, so there are no linker problems. If we
24 # update that version, we'll need to work around the duplicate symbols some
25 # other way.
26 use_system_harfbuzz = false
27 } else {
28 # Use the system harfbuzz for newer versions of pangoft, and not for older
29 # ones. pangoft links to the system harfbuzz starting with 1.31.0, which
30 # causes duplicate symbols when we link our own version.
31 use_system_harfbuzz = exec_script(
32 pkg_config_script,
33 pkg_config_args + [ "--atleast-version=1.31.0", "pangoft2" ],
34 "value")
35 }
15 } 36 }
16 37
17 if (use_system_harfbuzz) { 38 if (use_system_harfbuzz) {
18 import("//build/config/linux/pkg_config.gni") 39 import("//build/config/linux/pkg_config.gni")
19 pkg_config("harfbuzz_pkgconfig") { 40 pkg_config("harfbuzz_pkgconfig") {
20 packages = [ "harfbuzz" ] 41 packages = [ "harfbuzz" ]
21 } 42 }
22 group("harfbuzz-ng") { 43 group("harfbuzz-ng") {
23 public_configs = [ ":harfbuzz_pkgconfig" ] 44 public_configs = [ ":harfbuzz_pkgconfig" ]
24 } 45 }
25 46
26 } else { 47 } else {
27 config("harfbuzz-ng_config") { 48 config("harfbuzz-ng_config") {
28 include_dirs = [ "src" ] 49 include_dirs = [ "src" ]
29 } 50 }
30 51
31 source_set("harfbuzz-ng") { 52 static_library("harfbuzz-ng") {
32 sources = [ 53 sources = [
33 "src/hb-atomic-private.hh", 54 "src/hb-atomic-private.hh",
34 "src/hb-blob.cc", 55 "src/hb-blob.cc",
35 "src/hb-blob.h", 56 "src/hb-blob.h",
36 "src/hb-buffer.cc", 57 "src/hb-buffer.cc",
37 "src/hb-buffer-deserialize-json.hh", 58 "src/hb-buffer-deserialize-json.hh",
38 "src/hb-buffer-deserialize-text.hh", 59 "src/hb-buffer-deserialize-text.hh",
39 "src/hb-buffer.h", 60 "src/hb-buffer.h",
40 "src/hb-buffer-private.hh", 61 "src/hb-buffer-private.hh",
41 "src/hb-buffer-serialize.cc", 62 "src/hb-buffer-serialize.cc",
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 168 }
148 if (is_mac) { 169 if (is_mac) {
149 sources += [ 170 sources += [
150 "src/hb-coretext.cc", 171 "src/hb-coretext.cc",
151 "src/hb-coretext.h", 172 "src/hb-coretext.h",
152 ] 173 ]
153 defines += [ "HAVE_CORETEXT" ] 174 defines += [ "HAVE_CORETEXT" ]
154 } 175 }
155 } 176 }
156 } 177 }
OLDNEW
« no previous file with comments | « remoting/resources/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698