| 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 | 7 |
| 8 config("sdk") { | 8 config("sdk") { |
| 9 if (sysroot != "") { | 9 if (sysroot != "") { |
| 10 cflags = [ "--sysroot=" + sysroot ] | 10 cflags = [ "--sysroot=" + sysroot ] |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 pkg_config("glib") { | 40 pkg_config("glib") { |
| 41 packages = [ "glib-2.0", "gmodule-2.0", "gobject-2.0", "gthread-2.0" ] | 41 packages = [ "glib-2.0", "gmodule-2.0", "gobject-2.0", "gthread-2.0" ] |
| 42 } | 42 } |
| 43 | 43 |
| 44 pkg_config("gtk") { | 44 pkg_config("gtk") { |
| 45 # Gtk requires gmodule, but it does not list it as a dependency in some | 45 # Gtk requires gmodule, but it does not list it as a dependency in some |
| 46 # misconfigured systems. | 46 # misconfigured systems. |
| 47 packages = [ "gmodule-2.0", "gtk+-2.0", "gthread-2.0" ] | 47 packages = [ "gmodule-2.0", "gtk+-2.0", "gthread-2.0" ] |
| 48 defines = [ "TOOLKIT_GTK" ] | |
| 49 } | 48 } |
| 50 | 49 |
| 51 pkg_config("pangocairo") { | 50 pkg_config("pangocairo") { |
| 52 packages = [ "pangocairo" ] | 51 packages = [ "pangocairo" ] |
| 53 } | 52 } |
| 54 | 53 |
| 55 pkg_config("udev") { | 54 pkg_config("udev") { |
| 56 packages = [ "libudev" ] | 55 packages = [ "libudev" ] |
| 57 } | 56 } |
| 58 | 57 |
| 59 config("x11") { | 58 config("x11") { |
| 60 # Don't bother running pkg-config for these X related libraries since it just | 59 # Don't bother running pkg-config for these X related libraries since it just |
| 61 # returns the same libs, and forking pkg-config is slow. | 60 # returns the same libs, and forking pkg-config is slow. |
| 62 defines = [ "USE_X11" ] | |
| 63 libs = [ | 61 libs = [ |
| 64 "X11", | 62 "X11", |
| 65 "Xcomposite", | 63 "Xcomposite", |
| 66 "Xcursor", | 64 "Xcursor", |
| 67 "Xdamage", | 65 "Xdamage", |
| 68 "Xext", | 66 "Xext", |
| 69 "Xfixes", | 67 "Xfixes", |
| 70 "Xi", | 68 "Xi", |
| 71 "Xrender", | 69 "Xrender", |
| 72 "Xss", | 70 "Xss", |
| 73 "Xtst", | 71 "Xtst", |
| 74 ] | 72 ] |
| 75 } | 73 } |
| OLD | NEW |