| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 | 9 |
| 10 config("sdk") { | 10 config("sdk") { |
| 11 if (sysroot != "") { | 11 if (sysroot != "") { |
| 12 cflags = [ "--sysroot=" + sysroot ] | 12 cflags = [ "--sysroot=" + sysroot ] |
| 13 ldflags = [ "--sysroot=" + sysroot ] | 13 ldflags = [ "--sysroot=" + sysroot ] |
| 14 | 14 |
| 15 # Need to get some linker flags out of the sysroot. | 15 # Need to get some linker flags out of the sysroot. |
| 16 ldflags += [ exec_script("../linux/sysroot_ld_path.py", | 16 ldflags += [ exec_script("../linux/sysroot_ld_path.py", |
| 17 [ | 17 [ |
| 18 rebase_path("//build/linux/sysroot_ld_path.sh", | 18 rebase_path("//build/linux/sysroot_ld_path.sh", |
| 19 root_build_dir), | 19 root_build_dir), |
| 20 sysroot, | 20 sysroot, |
| 21 ], | 21 ], |
| 22 "value") ] | 22 "value") ] |
| 23 } | 23 } |
| 24 | 24 |
| 25 defines = [] | 25 defines = [ "FNL_MUSL" ] |
| 26 | 26 |
| 27 if (use_ozone) { | 27 if (use_ozone) { |
| 28 defines += [ "MESA_EGL_NO_X11_HEADERS" ] | 28 defines += [ "MESA_EGL_NO_X11_HEADERS" ] |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| 32 config("fontconfig") { | 32 config("fontconfig") { |
| 33 libs = [ "fontconfig" ] | 33 libs = [ "fontconfig" ] |
| 34 } | 34 } |
| 35 | 35 |
| 36 pkg_config("freetype2") { | 36 pkg_config("freetype2") { |
| 37 packages = [ "freetype2" ] | 37 packages = [ "freetype2" ] |
| 38 } | 38 } |
| 39 | 39 |
| 40 if (use_evdev_gestures) { | 40 if (use_evdev_gestures) { |
| 41 pkg_config("libevdev-cros") { | 41 pkg_config("libevdev-cros") { |
| 42 packages = [ "libevdev-cros" ] | 42 packages = [ "libevdev-cros" ] |
| 43 } | 43 } |
| 44 | 44 |
| 45 pkg_config("libgestures") { | 45 pkg_config("libgestures") { |
| 46 packages = [ "libgestures" ] | 46 packages = [ "libgestures" ] |
| 47 } | 47 } |
| 48 } | 48 } |
| OLD | NEW |