Test for feature (e.g. USE_X11) not Linux
As well as being more technically correct, this makes the jobs of
porters to other OSes easier. It should be a NOP for all supported
platforms.
Bug: 290185
Change-Id: Ib0528cfe431f652173768a6916b31ee51199e84f
Reviewed-on: https://chromium-review.googlesource.com/540916
Commit-Queue: Tim Brown <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: Dominic Mazzoni <[email protected]>
Reviewed-by: Thomas Anderson <[email protected]>
Cr-Commit-Position: refs/heads/master@{#482396}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index d43831d2..1510834 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/buildflag_header.gni")
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//gpu/vulkan/features.gni")
@@ -172,6 +173,7 @@
]
public_deps = [
+ ":accessibility_flags",
"//ipc",
"//media/mojo/interfaces:remoting",
"//third_party/WebKit/public:offscreen_canvas_mojo_bindings",
@@ -2144,6 +2146,12 @@
}
}
+buildflag_header("accessibility_flags") {
+ header = "accessibility_flags.h"
+ header_dir = "content/browser/accessibility"
+ flags = [ "USE_ATK=$use_atk" ]
+}
+
# See comment at the top of //content/BUILD.gn for how this works.
group("for_content_tests") {
visibility = [ "//content/test/*" ]