Index: ui/platform_window/android/BUILD.gn |
diff --git a/ui/platform_window/android/BUILD.gn b/ui/platform_window/android/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f1448a40cbd2db82a71bcb0d02636cb8fa0df701 |
--- /dev/null |
+++ b/ui/platform_window/android/BUILD.gn |
@@ -0,0 +1,42 @@ |
+# Copyright 2015 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import("//build/config/android/rules.gni") |
+import("//testing/test.gni") |
+ |
+assert(is_android) |
+ |
+component("android") { |
+ output_name = "android_window" |
+ sources = [ |
+ "platform_window_android.cc", |
+ "platform_window_android.h", |
+ ] |
+ |
+ defines = [ "ANDROID_WINDOW_IMPLEMENTATION" ] |
+ |
+ deps = [ |
+ "//base", |
+ "//skia", |
+ "//ui/events:events_base", |
+ "//ui/gfx", |
+ "//ui/gfx/geometry", |
+ ":jni_headers", |
+ ":platform_window_java", |
+ ] |
+} |
+ |
+generate_jni("jni_headers") { |
+ sources = [ |
+ "java/src/org/chromium/ui/PlatformWindowAndroid.java", |
+ ] |
+ jni_package = "android_window" |
+} |
+ |
+android_library("platform_window_java") { |
+ java_files = [ "java/src/org/chromium/ui/PlatformWindowAndroid.java" ] |
+ deps = [ |
+ "//base:base_java", |
+ ] |
+} |