Index: ui/views/BUILD.gn |
diff --git a/ui/views/BUILD.gn b/ui/views/BUILD.gn |
index 2769a11e473b08b3e4070695fdc39a05fb43d132..37a35e88b5438518fed41f84aaff84e38e8234e5 100644 |
--- a/ui/views/BUILD.gn |
+++ b/ui/views/BUILD.gn |
@@ -11,7 +11,12 @@ gypi_values = exec_script("//build/gypi_to_gn.py", |
"scope", |
[ "views.gyp" ]) |
+config("flags") { |
+ defines = [ "TOOLKIT_VIEWS=1" ] |
+} |
+ |
component("views") { |
+ all_dependent_configs = [ ":flags" ] |
sources = gypi_values.views_sources |
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |