OLD | NEW |
| (Empty) |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 import("//build/config/linux/pkg_config.gni") | |
6 import("//build/config/features.gni") | |
7 import("//build/config/sysroot.gni") | |
8 import("//build/config/ui.gni") | |
9 | |
10 config("sdk") { | |
11 if (sysroot != "") { | |
12 cflags = [ "--sysroot=" + sysroot ] | |
13 ldflags = [ "--sysroot=" + sysroot ] | |
14 | |
15 # Need to get some linker flags out of the sysroot. | |
16 ldflags += [ exec_script("../linux/sysroot_ld_path.py", | |
17 [ | |
18 rebase_path("//build/linux/sysroot_ld_path.sh", | |
19 root_build_dir), | |
20 sysroot, | |
21 ], | |
22 "value") ] | |
23 } | |
24 | |
25 defines = [ "FNL_MUSL" ] | |
26 | |
27 if (use_ozone) { | |
28 defines += [ "MESA_EGL_NO_X11_HEADERS" ] | |
29 } | |
30 } | |
31 | |
32 config("fontconfig") { | |
33 libs = [ "fontconfig" ] | |
34 } | |
35 | |
36 pkg_config("freetype2") { | |
37 packages = [ "freetype2" ] | |
38 } | |
39 | |
40 if (use_evdev_gestures) { | |
41 pkg_config("libevdev-cros") { | |
42 packages = [ "libevdev-cros" ] | |
43 } | |
44 | |
45 pkg_config("libgestures") { | |
46 packages = [ "libgestures" ] | |
47 } | |
48 } | |
OLD | NEW |