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 import("//tools/generate_library_loader/generate_library_loader.gni") | 9 import("//tools/generate_library_loader/generate_library_loader.gni") |
10 | 10 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 config("libresolv") { | 125 config("libresolv") { |
126 libs = [ "resolv" ] | 126 libs = [ "resolv" ] |
127 } | 127 } |
128 | 128 |
129 # CrOS doesn't install GTK, gconf or any gnome packages. | 129 # CrOS doesn't install GTK, gconf or any gnome packages. |
130 if (!is_chromeos) { | 130 if (!is_chromeos) { |
131 # These packages should _only_ be expected when building for a target. | 131 # These packages should _only_ be expected when building for a target. |
132 # If these extra checks are not run, gconf is required when building host | 132 # If these extra checks are not run, gconf is required when building host |
133 # tools for a CrOS build. | 133 # tools for a CrOS build. |
134 if (current_toolchain == default_toolchain) { | 134 if (current_toolchain == default_toolchain) { |
| 135 pkg_config("atk") { |
| 136 packages = [ "atk" ] |
| 137 atk_lib_dir = exec_script(pkg_config_script, |
| 138 [ |
| 139 "--libdir", |
| 140 "atk", |
| 141 ], |
| 142 "string") |
| 143 defines = [ "ATK_LIB_DIR=\"$atk_lib_dir\"" ] |
| 144 } |
| 145 |
| 146 # gn orders flags on a target before flags from configs. The default config |
| 147 # adds -Wall, and these flags have to be after -Wall -- so they need to |
| 148 # come from a config and can't be on the target directly. |
| 149 config("atk_warnings") { |
| 150 cflags = [ |
| 151 # glib uses the pre-c++11 typedef-as-static_assert hack. |
| 152 "-Wno-unused-local-typedef", |
| 153 |
| 154 # G_DEFINE_TYPE automatically generates a *get_instance_private |
| 155 # inline function after glib 2.37. That's unused. Prevent to |
| 156 # complain about it. |
| 157 "-Wno-unused-function", |
| 158 ] |
| 159 } |
| 160 |
135 pkg_config("gconf") { | 161 pkg_config("gconf") { |
136 packages = [ "gconf-2.0" ] | 162 packages = [ "gconf-2.0" ] |
137 defines = [ "USE_GCONF" ] | 163 defines = [ "USE_GCONF" ] |
138 } | 164 } |
139 } | 165 } |
140 } | 166 } |
141 | 167 |
142 # If brlapi isn't needed, don't require it to be installed. | 168 # If brlapi isn't needed, don't require it to be installed. |
143 if (use_brlapi) { | 169 if (use_brlapi) { |
144 config("brlapi_config") { | 170 config("brlapi_config") { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 250 |
225 functions = gypi_values.libudev_functions | 251 functions = gypi_values.libudev_functions |
226 } | 252 } |
227 | 253 |
228 group("udev") { | 254 group("udev") { |
229 deps = [ | 255 deps = [ |
230 ":udev0_loader", | 256 ":udev0_loader", |
231 ":udev1_loader", | 257 ":udev1_loader", |
232 ] | 258 ] |
233 } | 259 } |
OLD | NEW |