OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 if (!is_android) { | 7 if (is_android) { |
| 8 import("//build/config/android/config.gni") |
| 9 import("//build/config/android/rules.gni") |
| 10 |
| 11 android_library("native_viewport_java") { |
| 12 deps = [ |
| 13 "//base:base_java", |
| 14 ] |
| 15 java_files = [ |
| 16 "android/src/org/chromium/mojo/PlatformViewportAndroid.java", |
| 17 ] |
| 18 } |
| 19 } else { |
8 shared_library("native_viewport") { | 20 shared_library("native_viewport") { |
9 output_name = "native_viewport_service" | 21 output_name = "native_viewport_service" |
10 | 22 |
11 deps = [ | 23 deps = [ |
12 ":lib", | 24 ":lib", |
13 "//base", | 25 "//base", |
14 "//mojo/application", | 26 "//mojo/application", |
15 "//mojo/public/c/system:for_shared_library", | 27 "//mojo/public/c/system:for_shared_library", |
16 "//mojo/public/cpp/bindings:bindings", | 28 "//mojo/public/cpp/bindings:bindings", |
17 "//mojo/services/public/interfaces/native_viewport", | 29 "//mojo/services/public/interfaces/native_viewport", |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 deps += [ | 88 deps += [ |
77 "//ui/events/platform/x11", | 89 "//ui/events/platform/x11", |
78 "//ui/platform_window/x11", | 90 "//ui/platform_window/x11", |
79 ] | 91 ] |
80 } | 92 } |
81 | 93 |
82 if (use_ozone) { | 94 if (use_ozone) { |
83 sources += [ "platform_viewport_ozone.cc" ] | 95 sources += [ "platform_viewport_ozone.cc" ] |
84 } | 96 } |
85 } | 97 } |
OLD | NEW |