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

Side by Side Diff: build/linux/BUILD.gn

Issue 2023703002: Beginning work on GN build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Really add //build. Add dart_bootstrap rule. Created 4 years, 6 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 | « build/dir_exists.py ('k') | build/linux/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/config/features.gni")
6 import("//build/config/linux/pkg_config.gni")
7
8 # If brlapi isn't needed, don't require it to be installed.
9 if (use_brlapi) {
10 deps = [
11 "//build/linux/libbrlapi",
12 ]
13 }
14 if (use_gio) {
15 pkg_config("gio_config") {
16 packages = [ "gio-2.0" ]
17
18 # glib >=2.40 deprecate g_settings_list_schemas in favor of
19 # g_settings_schema_source_list_schemas. This function is not available on
20 # earlier versions that we still need to support (specifically, 2.32), so
21 # disable the warning with the GLIB_DISABLE_DEPRECATION_WARNINGS define.
22 # TODO(mgiuca): Remove this suppression when we drop support for Ubuntu
23 # 13.10 (saucy) and earlier. Update the code to use
24 # g_settings_schema_source_list_schemas instead.
25 defines = [
26 "USE_GIO",
27 "GLIB_DISABLE_DEPRECATION_WARNINGS",
28 ]
29
30 # TODO(brettw) Theoretically I think ignore_libs should be set so that we
31 # don't link directly to GIO and use the loader generated below. But the
32 # gio target in GYP doesn't make any sense to me and appears to link
33 # directly to GIO in addition to making a loader. This this uncommented,
34 # the link in component build fails, so I think this is closer to the
35 # GYP build.
36 #ignore_libs = true # Loader generated below.
37 }
38
39 deps = [
40 "//build/linux/libgio",
41 ]
42 }
43
44 # Looking for libspeechd? Use //third_party/speech-dispatcher
45
46 group("fontconfig") {
47 if (is_chromecast) {
48 # Chromecast platform does not provide fontconfig
49 public_deps = [
50 "//third_party/fontconfig",
51 ]
52 } else {
53 public_configs = [ "//build/config/linux:fontconfig" ]
54 }
55 }
56
57 if (!is_chromecast) {
58 pkg_config("freetype2_config") {
59 visibility = [ ":freetype2" ]
60 packages = [ "freetype2" ]
61 }
62 }
63
64 group("freetype2") {
65 if (is_chromecast) {
66 # Chromecast platform doesn't provide freetype, so use Chromium's.
67 # The version in freetype-android is unmodified from freetype2 upstream.
68 public_deps = [
69 "//third_party/freetype-android:freetype",
70 ]
71 } else {
72 public_configs = [ ":freetype2_config" ]
73 }
74 }
OLDNEW
« no previous file with comments | « build/dir_exists.py ('k') | build/linux/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698