Index: ui/platform_window/BUILD.gn |
diff --git a/ui/platform_window/BUILD.gn b/ui/platform_window/BUILD.gn |
index 2d9680b3d3e9b829d58ba571a17f5eefb7bfa53b..438a38256e938417bfa5ec16a6f9086b508b6e20 100644 |
--- a/ui/platform_window/BUILD.gn |
+++ b/ui/platform_window/BUILD.gn |
@@ -2,6 +2,8 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/ui.gni") |
+ |
source_set("platform_window") { |
sources = [ |
"platform_window.h", |
@@ -14,3 +16,20 @@ source_set("platform_window") { |
"//ui/gfx", |
] |
} |
+ |
+component("platform_impls") { |
+ if (is_android) { |
+ deps = [ |
+ "//ui/platform_window/android", |
+ "//ui/platform_window/android:jni_headers", |
+ ] |
+ } else if (use_x11) { |
+ deps = [ |
+ "//ui/platform_window/x11", |
+ ] |
+ } else if (is_win) { |
+ deps = [ |
+ "//ui/platform_window/win", |
+ ] |
+ } |
+} |