| 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") | |
| 6 import("//build/config/features.gni") | |
| 7 import("//build/config/sysroot.gni") | 5 import("//build/config/sysroot.gni") |
| 8 import("//build/config/ui.gni") | |
| 9 | 6 |
| 10 config("sdk") { | 7 config("sdk") { |
| 11 if (sysroot != "") { | 8 if (sysroot != "") { |
| 12 cflags = [ "--sysroot=" + sysroot ] | 9 cflags = [ "--sysroot=" + sysroot ] |
| 13 ldflags = [ "--sysroot=" + sysroot ] | 10 ldflags = [ "--sysroot=" + sysroot ] |
| 14 | 11 |
| 15 # Need to get some linker flags out of the sysroot. | 12 # Need to get some linker flags out of the sysroot. |
| 16 ldflags += [ exec_script("sysroot_ld_path.py", | 13 ldflags += [ exec_script("sysroot_ld_path.py", |
| 17 [ | 14 [ |
| 18 rebase_path("//build/linux/sysroot_ld_path.sh", | 15 rebase_path("//build/linux/sysroot_ld_path.sh", |
| 19 root_build_dir), | 16 root_build_dir), |
| 20 sysroot, | 17 sysroot, |
| 21 ], | 18 ], |
| 22 "value") ] | 19 "value") ] |
| 23 } | 20 } |
| 24 } | 21 } |
| 25 | |
| 26 config("fontconfig") { | |
| 27 libs = [ "fontconfig" ] | |
| 28 } | |
| 29 | |
| 30 pkg_config("freetype2") { | |
| 31 packages = [ "freetype2" ] | |
| 32 } | |
| 33 | |
| 34 config("x11") { | |
| 35 libs = [ | |
| 36 "X11", | |
| 37 "Xcomposite", | |
| 38 "Xcursor", | |
| 39 "Xdamage", | |
| 40 "Xext", | |
| 41 "Xfixes", | |
| 42 "Xi", | |
| 43 "Xrender", | |
| 44 "Xtst", | |
| 45 ] | |
| 46 } | |
| 47 | |
| 48 config("xrandr") { | |
| 49 libs = [ "Xrandr" ] | |
| 50 } | |
| 51 | |
| 52 config("xinerama") { | |
| 53 libs = [ "Xinerama" ] | |
| 54 } | |
| 55 | |
| 56 config("xcomposite") { | |
| 57 libs = [ "Xcomposite" ] | |
| 58 } | |
| 59 | |
| 60 config("xext") { | |
| 61 libs = [ "Xext" ] | |
| 62 } | |
| OLD | NEW |