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/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 # This is included by reference in the //build/config/compiler config that | 10 # This is included by reference in the //build/config/compiler config that |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 pkg_config("glib") { | 40 pkg_config("glib") { |
41 packages = [ | 41 packages = [ |
42 "glib-2.0", | 42 "glib-2.0", |
43 "gmodule-2.0", | 43 "gmodule-2.0", |
44 "gobject-2.0", | 44 "gobject-2.0", |
45 "gthread-2.0", | 45 "gthread-2.0", |
46 ] | 46 ] |
47 } | 47 } |
48 | 48 |
49 pkg_config("pangocairo") { | 49 if (use_pango || use_cairo) { |
50 packages = [ "pangocairo" ] | 50 pkg_config("pangocairo") { |
| 51 packages = [ "pangocairo" ] |
| 52 } |
51 } | 53 } |
52 | 54 |
53 pkg_config("pangoft2") { | 55 if (use_pango) { |
54 packages = [ "pangoft2" ] | 56 pkg_config("pangoft2") { |
| 57 packages = [ "pangoft2" ] |
| 58 } |
55 } | 59 } |
56 | 60 |
57 # Note: if your target also depends on //dbus, you don't need to add this | 61 # Note: if your target also depends on //dbus, you don't need to add this |
58 # config (it will get added automatically if you depend on //dbus). | 62 # config (it will get added automatically if you depend on //dbus). |
59 pkg_config("dbus") { | 63 pkg_config("dbus") { |
60 packages = [ "dbus-1" ] | 64 packages = [ "dbus-1" ] |
61 } | 65 } |
62 | 66 |
63 pkg_config("libffi") { | 67 pkg_config("libffi") { |
64 packages = [ "libffi" ] | 68 packages = [ "libffi" ] |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 "-Wno-unused-function", | 149 "-Wno-unused-function", |
146 ] | 150 ] |
147 } | 151 } |
148 | 152 |
149 pkg_config("gconf") { | 153 pkg_config("gconf") { |
150 packages = [ "gconf-2.0" ] | 154 packages = [ "gconf-2.0" ] |
151 defines = [ "USE_GCONF" ] | 155 defines = [ "USE_GCONF" ] |
152 } | 156 } |
153 } | 157 } |
154 } | 158 } |
OLD | NEW |