1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
6 import("//third_party/mojo/src/mojo/public/mojo_application.gni")
9 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni")
12 group("native_viewport") {
15 ":native_viewport_java",
20 android_library("native_viewport_java") {
22 [ "android/src/org/chromium/mojo/PlatformViewportAndroid.java" ]
29 generate_jni("jni_headers") {
31 "android/src/org/chromium/mojo/PlatformViewportAndroid.java",
37 mojo_native_application("native_viewport") {
38 output_name = "native_viewport_service"
46 "//components/native_viewport/public/cpp:args",
47 "//components/native_viewport/public/interfaces",
49 "//mojo/common:tracing_impl",
50 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
52 "//ui/events/platform",
60 "native_viewport_impl.cc",
61 "native_viewport_impl.h",
62 "onscreen_context_provider.cc",
63 "onscreen_context_provider.h",
64 "platform_viewport.h",
65 "platform_viewport_android.cc",
66 "platform_viewport_android.h",
67 "platform_viewport_headless.cc",
68 "platform_viewport_headless.h",
69 "platform_viewport_stub.cc",
70 "platform_viewport_win.cc",
71 "platform_viewport_x11.cc",
75 sources -= [ "platform_viewport_stub.cc" ]
81 "//components/native_viewport/public/interfaces",
82 "//gpu/command_buffer/service",
85 "//mojo/converters/geometry",
86 "//mojo/converters/input_events",
87 "//mojo/environment:chromium",
89 "//ui/events/platform",
93 "//ui/mojo/geometry:interfaces",
94 "//ui/platform_window",
98 deps += [ ":jni_headers" ]
102 deps += [ "//ui/platform_window/x11" ]
104 sources -= [ "platform_viewport_x11.cc" ]
108 deps += [ "//ui/platform_window/win:win_window" ]