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 | 8 |
8 config("sdk") { | 9 config("sdk") { |
9 if (sysroot != "") { | 10 if (sysroot != "") { |
10 cflags = [ "--sysroot=" + sysroot ] | 11 cflags = [ "--sysroot=" + sysroot ] |
11 ldflags = [ "--sysroot=" + sysroot ] | 12 ldflags = [ "--sysroot=" + sysroot ] |
12 | 13 |
13 # Need to get some linker flags out of the sysroot. | 14 # Need to get some linker flags out of the sysroot. |
14 ldflags += [ exec_script("sysroot_ld_path.py", | 15 ldflags += [ exec_script("sysroot_ld_path.py", |
15 [ rebase_path("//build/linux/sysroot_ld_path.sh", root_build_dir), | 16 [ rebase_path("//build/linux/sysroot_ld_path.sh", root_build_dir), |
16 sysroot ], | 17 sysroot ], |
(...skipping 28 matching lines...) Loading... |
45 } | 46 } |
46 | 47 |
47 pkg_config("udev") { | 48 pkg_config("udev") { |
48 packages = [ "libudev" ] | 49 packages = [ "libudev" ] |
49 } | 50 } |
50 | 51 |
51 pkg_config("dbus") { | 52 pkg_config("dbus") { |
52 packages = [ "dbus-1" ] | 53 packages = [ "dbus-1" ] |
53 } | 54 } |
54 | 55 |
| 56 if (use_evdev_gestures) { |
| 57 pkg_config("libevdev-cros") { |
| 58 packages = [ "libevdev-cros" ] |
| 59 } |
| 60 |
| 61 pkg_config("libgestures") { |
| 62 packages = [ "libgestures" ] |
| 63 } |
| 64 } |
| 65 |
55 config("x11") { | 66 config("x11") { |
56 # Don't bother running pkg-config for these X related libraries since it just | 67 # Don't bother running pkg-config for these X related libraries since it just |
57 # returns the same libs, and forking pkg-config is slow. | 68 # returns the same libs, and forking pkg-config is slow. |
58 libs = [ | 69 libs = [ |
59 "X11", | 70 "X11", |
60 "Xcomposite", | 71 "Xcomposite", |
61 "Xcursor", | 72 "Xcursor", |
62 "Xdamage", | 73 "Xdamage", |
63 "Xext", | 74 "Xext", |
64 "Xfixes", | 75 "Xfixes", |
(...skipping 111 matching lines...) Loading... |
176 | 187 |
177 functions = [ | 188 functions = [ |
178 "pci_alloc", | 189 "pci_alloc", |
179 "pci_init", | 190 "pci_init", |
180 "pci_cleanup", | 191 "pci_cleanup", |
181 "pci_scan_bus", | 192 "pci_scan_bus", |
182 "pci_fill_info", | 193 "pci_fill_info", |
183 "pci_lookup_name", | 194 "pci_lookup_name", |
184 ] | 195 ] |
185 } | 196 } |
OLD | NEW |