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/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 | 8 |
9 config("sdk") { | 9 config("sdk") { |
10 if (sysroot != "") { | 10 if (sysroot != "") { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 pkg_config("pangocairo") { | 44 pkg_config("pangocairo") { |
45 packages = [ "pangocairo" ] | 45 packages = [ "pangocairo" ] |
46 } | 46 } |
47 | 47 |
48 pkg_config("udev") { | 48 pkg_config("udev") { |
49 packages = [ "libudev" ] | 49 packages = [ "libudev" ] |
50 } | 50 } |
51 | 51 |
| 52 # Note: if your target also depends on //dbus, you don't need to add this |
| 53 # config (it will get added automatically if you depend on //dbus). |
52 pkg_config("dbus") { | 54 pkg_config("dbus") { |
53 packages = [ "dbus-1" ] | 55 packages = [ "dbus-1" ] |
54 } | 56 } |
55 | 57 |
56 if (use_evdev_gestures) { | 58 if (use_evdev_gestures) { |
57 pkg_config("libevdev-cros") { | 59 pkg_config("libevdev-cros") { |
58 packages = [ "libevdev-cros" ] | 60 packages = [ "libevdev-cros" ] |
59 } | 61 } |
60 | 62 |
61 pkg_config("libgestures") { | 63 pkg_config("libgestures") { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 packages = [ "gio-2.0" ] | 152 packages = [ "gio-2.0" ] |
151 defines = [ "USE_GIO" ] | 153 defines = [ "USE_GIO" ] |
152 ignore_libs = true # Loader generated below. | 154 ignore_libs = true # Loader generated below. |
153 } | 155 } |
154 | 156 |
155 # This generates a target named "gio". | 157 # This generates a target named "gio". |
156 generate_library_loader("gio") { | 158 generate_library_loader("gio") { |
157 name = "LibGioLoader" | 159 name = "LibGioLoader" |
158 output_h = "libgio.h" | 160 output_h = "libgio.h" |
159 output_cc = "libgio_loader.cc" | 161 output_cc = "libgio_loader.cc" |
160 # TODO(brettw) convert ti "<gio/gio.h>" once GN doesn't mangle <>. | 162 header = "<gio/gio.h>" |
161 header = "\"gio/gio.h\"" | |
162 config = ":gio_config" | 163 config = ":gio_config" |
163 | 164 |
164 functions = [ | 165 functions = [ |
165 "g_settings_new", | 166 "g_settings_new", |
166 "g_settings_get_child", | 167 "g_settings_get_child", |
167 "g_settings_get_string", | 168 "g_settings_get_string", |
168 "g_settings_get_boolean", | 169 "g_settings_get_boolean", |
169 "g_settings_get_int", | 170 "g_settings_get_int", |
170 "g_settings_get_strv", | 171 "g_settings_get_strv", |
171 "g_settings_list_schemas", | 172 "g_settings_list_schemas", |
172 ] | 173 ] |
173 } | 174 } |
174 | 175 |
175 # pkgconfig doesn't return anything interesting for this other than -lpci | 176 # pkgconfig doesn't return anything interesting for this other than -lpci |
176 # on suppotred systems, so we hardcode. | 177 # on suppotred systems, so we hardcode. |
177 config("libpci_config") { | 178 config("libpci_config") { |
178 # This is not needed as long as we're setting link_directly=0 for the library | 179 # This is not needed as long as we're setting link_directly=0 for the library |
179 # loaders. | 180 # loaders. |
180 #libs = [ "pci" ] | 181 #libs = [ "pci" ] |
181 } | 182 } |
182 | 183 |
183 # This generates a target named "libpci". | 184 # This generates a target named "libpci". |
184 generate_library_loader("libpci") { | 185 generate_library_loader("libpci") { |
185 name = "LibPciLoader" | 186 name = "LibPciLoader" |
186 output_h = "libpci.h" | 187 output_h = "libpci.h" |
187 output_cc = "libpci_loader.cc" | 188 output_cc = "libpci_loader.cc" |
188 # TODO(brettw) convert to "<pci/pci.h>" once GN doesn't mangle <>. | 189 header = "<pci/pci.h>" |
189 header = "\"pci/pci.h\"" | |
190 config = ":libpci_config" | 190 config = ":libpci_config" |
191 | 191 |
192 functions = [ | 192 functions = [ |
193 "pci_alloc", | 193 "pci_alloc", |
194 "pci_init", | 194 "pci_init", |
195 "pci_cleanup", | 195 "pci_cleanup", |
196 "pci_scan_bus", | 196 "pci_scan_bus", |
197 "pci_fill_info", | 197 "pci_fill_info", |
198 "pci_lookup_name", | 198 "pci_lookup_name", |
199 ] | 199 ] |
200 } | 200 } |
OLD | NEW |