| Index: build/config/linux/BUILD.gn
|
| diff --git a/build/config/linux/BUILD.gn b/build/config/linux/BUILD.gn
|
| index 202fd731897a89f29addd715f1c1150b751dde3c..8594f1ed91c28b4e50ccd55216bd35c1713ff188 100644
|
| --- a/build/config/linux/BUILD.gn
|
| +++ b/build/config/linux/BUILD.gn
|
| @@ -132,6 +132,32 @@ if (!is_chromeos) {
|
| # If these extra checks are not run, gconf is required when building host
|
| # tools for a CrOS build.
|
| if (current_toolchain == default_toolchain) {
|
| + pkg_config("atk") {
|
| + packages = [ "atk" ]
|
| + atk_lib_dir = exec_script(pkg_config_script,
|
| + [
|
| + "--libdir",
|
| + "atk",
|
| + ],
|
| + "string")
|
| + defines = [ "ATK_LIB_DIR=\"$atk_lib_dir\"" ]
|
| + }
|
| +
|
| + # gn orders flags on a target before flags from configs. The default config
|
| + # adds -Wall, and these flags have to be after -Wall -- so they need to
|
| + # come from a config and can't be on the target directly.
|
| + config("atk_warnings") {
|
| + cflags = [
|
| + # glib uses the pre-c++11 typedef-as-static_assert hack.
|
| + "-Wno-unused-local-typedef",
|
| +
|
| + # G_DEFINE_TYPE automatically generates a *get_instance_private
|
| + # inline function after glib 2.37. That's unused. Prevent to
|
| + # complain about it.
|
| + "-Wno-unused-function",
|
| + ]
|
| + }
|
| +
|
| pkg_config("gconf") {
|
| packages = [ "gconf-2.0" ]
|
| defines = [ "USE_GCONF" ]
|
|
|