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

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

Issue 556733002: GN: Exclude some packages that are not used on CrOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_fixes
Patch Set: fix comment 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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/sysroot.gni") 7 import("//build/config/sysroot.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//tools/generate_library_loader/generate_library_loader.gni") 9 import("//tools/generate_library_loader/generate_library_loader.gni")
10 10
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 pkg_config("freetype2") { 28 pkg_config("freetype2") {
29 packages = [ "freetype2" ] 29 packages = [ "freetype2" ]
30 } 30 }
31 31
32 pkg_config("glib") { 32 pkg_config("glib") {
33 packages = [ "glib-2.0", "gmodule-2.0", "gobject-2.0", "gthread-2.0" ] 33 packages = [ "glib-2.0", "gmodule-2.0", "gobject-2.0", "gthread-2.0" ]
34 } 34 }
35 35
36 pkg_config("gtk") {
37 # Gtk requires gmodule, but it does not list it as a dependency in some
38 # misconfigured systems.
39 packages = [ "gmodule-2.0", "gtk+-2.0", "gthread-2.0" ]
40 }
41
42 pkg_config("gtkprint") {
43 packages = [ "gtk+-unix-print-2.0" ]
44 }
45
46 pkg_config("pangocairo") { 36 pkg_config("pangocairo") {
47 packages = [ "pangocairo" ] 37 packages = [ "pangocairo" ]
48 } 38 }
49 39
50 pkg_config("pangoft2") { 40 pkg_config("pangoft2") {
51 packages = [ "pangoft2" ] 41 packages = [ "pangoft2" ]
52 } 42 }
53 43
54 pkg_config("udev") { 44 pkg_config("udev") {
55 packages = [ "libudev" ] 45 packages = [ "libudev" ]
56 } 46 }
57 47
58 # Note: if your target also depends on //dbus, you don't need to add this 48 # Note: if your target also depends on //dbus, you don't need to add this
59 # config (it will get added automatically if you depend on //dbus). 49 # config (it will get added automatically if you depend on //dbus).
60 pkg_config("dbus") { 50 pkg_config("dbus") {
61 packages = [ "dbus-1" ] 51 packages = [ "dbus-1" ]
62 } 52 }
63 53
64 pkg_config("gnome_keyring") {
65 packages = [ "gnome-keyring-1" ]
66 }
67
68 if (use_evdev_gestures) { 54 if (use_evdev_gestures) {
69 pkg_config("libevdev-cros") { 55 pkg_config("libevdev-cros") {
70 packages = [ "libevdev-cros" ] 56 packages = [ "libevdev-cros" ]
71 } 57 }
72 58
73 pkg_config("libgestures") { 59 pkg_config("libgestures") {
74 packages = [ "libgestures" ] 60 packages = [ "libgestures" ]
75 } 61 }
76 } 62 }
77 63
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 103 }
118 104
119 config("xi") { 105 config("xi") {
120 libs = [ "Xi" ] 106 libs = [ "Xi" ]
121 } 107 }
122 108
123 config("libresolv") { 109 config("libresolv") {
124 libs = [ "resolv" ] 110 libs = [ "resolv" ]
125 } 111 }
126 112
127 pkg_config("gconf") { 113 # CrOS doesn't install GTK, gconf or any gnome packages.
128 packages = [ "gconf-2.0" ] 114 if (!is_chromeos) {
129 defines = [ "USE_GCONF" ] 115 pkg_config("gtk") {
116 # Gtk requires gmodule, but it does not list it as a dependency in some
117 # misconfigured systems.
118 packages = [ "gmodule-2.0", "gtk+-2.0", "gthread-2.0" ]
119 }
120
121 pkg_config("gtkprint") {
122 packages = [ "gtk+-unix-print-2.0" ]
123 }
124
125 pkg_config("gnome_keyring") {
126 packages = [ "gnome-keyring-1" ]
127 }
128
129 pkg_config("gconf") {
130 packages = [ "gconf-2.0" ]
131 defines = [ "USE_GCONF" ]
132 }
130 } 133 }
131 134
132 # If brlapi isn't needed, don't require it to be installed. 135 # If brlapi isn't needed, don't require it to be installed.
133 if (use_brlapi) { 136 if (use_brlapi) {
134 config("brlapi_config") { 137 config("brlapi_config") {
135 defines = [ "USE_BRLAPI" ] 138 defines = [ "USE_BRLAPI" ]
136 } 139 }
137 140
138 # TODO(GYP) linux_link_brlapi support. Is this needed? 141 # TODO(GYP) linux_link_brlapi support. Is this needed?
139 generate_library_loader("libbrlapi") { 142 generate_library_loader("libbrlapi") {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 "pci_alloc", 205 "pci_alloc",
203 "pci_init", 206 "pci_init",
204 "pci_cleanup", 207 "pci_cleanup",
205 "pci_scan_bus", 208 "pci_scan_bus",
206 "pci_fill_info", 209 "pci_fill_info",
207 "pci_lookup_name", 210 "pci_lookup_name",
208 ] 211 ]
209 } 212 }
210 213
211 # Looking for libspeechd? Use //third_party/speech-dispatcher 214 # Looking for libspeechd? Use //third_party/speech-dispatcher
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