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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 config("xi") { | 111 config("xi") { |
112 libs = [ "Xi" ] | 112 libs = [ "Xi" ] |
113 } | 113 } |
114 | 114 |
115 config("libresolv") { | 115 config("libresolv") { |
116 libs = [ "resolv" ] | 116 libs = [ "resolv" ] |
117 } | 117 } |
118 | 118 |
119 # CrOS doesn't install GTK, gconf or any gnome packages. | 119 # CrOS doesn't install GTK, gconf or any gnome packages. |
120 if (!is_chromeos) { | 120 if (!is_chromeos) { |
121 pkg_config("gtk") { | 121 # These packages should _only_ be expected when building for a target. |
122 # Gtk requires gmodule, but it does not list it as a dependency in some | 122 # If these extra checks are not run, gconf is required when building host |
123 # misconfigured systems. | 123 # tools for a CrOS build. |
124 packages = [ "gmodule-2.0", "gtk+-2.0", "gthread-2.0" ] | 124 if (current_toolchain == host_toolchain && |
125 } | 125 host_toolchain == default_toolchain) { |
126 | 126 pkg_config("gconf") { |
127 pkg_config("gtkprint") { | 127 packages = [ "gconf-2.0" ] |
128 packages = [ "gtk+-unix-print-2.0" ] | 128 defines = [ "USE_GCONF" ] |
129 } | 129 } |
130 | |
131 pkg_config("gnome_keyring") { | |
132 packages = [ "gnome-keyring-1" ] | |
133 } | |
134 | |
135 pkg_config("gconf") { | |
136 packages = [ "gconf-2.0" ] | |
137 defines = [ "USE_GCONF" ] | |
138 } | 130 } |
139 } | 131 } |
140 | 132 |
141 # If brlapi isn't needed, don't require it to be installed. | 133 # If brlapi isn't needed, don't require it to be installed. |
142 if (use_brlapi) { | 134 if (use_brlapi) { |
143 config("brlapi_config") { | 135 config("brlapi_config") { |
144 defines = [ "USE_BRLAPI" ] | 136 defines = [ "USE_BRLAPI" ] |
145 } | 137 } |
146 | 138 |
147 # TODO(GYP) linux_link_brlapi support. Is this needed? | 139 # TODO(GYP) linux_link_brlapi support. Is this needed? |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 "pci_alloc", | 209 "pci_alloc", |
218 "pci_init", | 210 "pci_init", |
219 "pci_cleanup", | 211 "pci_cleanup", |
220 "pci_scan_bus", | 212 "pci_scan_bus", |
221 "pci_fill_info", | 213 "pci_fill_info", |
222 "pci_lookup_name", | 214 "pci_lookup_name", |
223 ] | 215 ] |
224 } | 216 } |
225 | 217 |
226 # Looking for libspeechd? Use //third_party/speech-dispatcher | 218 # Looking for libspeechd? Use //third_party/speech-dispatcher |
OLD | NEW |