OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |