OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 assert(is_android) | 5 assert(is_android) |
6 | 6 |
7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 | 9 |
10 generate_jni("jni_headers") { | 10 generate_jni("jni_headers") { |
11 sources = [ | 11 sources = [ |
12 "org/domokit/sky/shell/JavaServiceProvider.java", | 12 "android/org/domokit/sky/shell/PlatformServiceProvider.java", |
13 "org/domokit/sky/shell/PlatformView.java", | 13 "android/org/domokit/sky/shell/PlatformView.java", |
14 "org/domokit/sky/shell/SkyMain.java", | 14 "android/org/domokit/sky/shell/SkyMain.java", |
15 "org/domokit/sky/shell/TracingController.java", | 15 "android/org/domokit/sky/shell/TracingController.java", |
16 ] | 16 ] |
17 jni_package = "sky/shell" | 17 jni_package = "sky/shell" |
18 } | 18 } |
19 | 19 |
20 shared_library("sky_shell") { | 20 shared_library("sky_shell") { |
21 sources = [ | 21 sources = [ |
| 22 "android/library_loader.cc", |
| 23 "android/platform_service_provider.cc", |
| 24 "android/platform_service_provider.h", |
| 25 "android/platform_view.cc", |
| 26 "android/platform_view.h", |
| 27 "android/sky_main.cc", |
| 28 "android/sky_main.h", |
| 29 "android/tracing_controller.cc", |
| 30 "android/tracing_controller.h", |
22 "gpu/ganesh_context.cc", | 31 "gpu/ganesh_context.cc", |
23 "gpu/ganesh_context.h", | 32 "gpu/ganesh_context.h", |
24 "gpu/ganesh_surface.cc", | 33 "gpu/ganesh_surface.cc", |
25 "gpu/ganesh_surface.h", | 34 "gpu/ganesh_surface.h", |
26 "gpu/rasterizer.cc", | 35 "gpu/rasterizer.cc", |
27 "gpu/rasterizer.h", | 36 "gpu/rasterizer.h", |
28 "gpu_delegate.cc", | 37 "gpu_delegate.cc", |
29 "gpu_delegate.h", | 38 "gpu_delegate.h", |
30 "java_service_provider.cc", | 39 "service_provider.h", |
31 "java_service_provider.h", | |
32 "library_loader.cc", | |
33 "platform_view.cc", | |
34 "platform_view.h", | |
35 "shell.cc", | 40 "shell.cc", |
36 "shell.h", | 41 "shell.h", |
37 "sky_main.cc", | |
38 "sky_main.h", | |
39 "tracing_controller.cc", | |
40 "tracing_controller.h", | |
41 "ui/animator.cc", | 42 "ui/animator.cc", |
42 "ui/animator.h", | 43 "ui/animator.h", |
43 "ui/engine.cc", | 44 "ui/engine.cc", |
44 "ui/engine.h", | 45 "ui/engine.h", |
45 "ui/input_event_converter.cc", | 46 "ui/input_event_converter.cc", |
46 "ui/input_event_converter.h", | 47 "ui/input_event_converter.h", |
47 "ui/internals.cc", | 48 "ui/internals.cc", |
48 "ui/internals.h", | 49 "ui/internals.h", |
49 "ui_delegate.cc", | 50 "ui_delegate.cc", |
50 "ui_delegate.h", | 51 "ui_delegate.h", |
(...skipping 17 matching lines...) Expand all Loading... |
68 "//sky/services/platform", | 69 "//sky/services/platform", |
69 "//sky/services/viewport", | 70 "//sky/services/viewport", |
70 "//ui/gfx/geometry", | 71 "//ui/gfx/geometry", |
71 "//ui/gl", | 72 "//ui/gl", |
72 ":jni_headers", | 73 ":jni_headers", |
73 ] | 74 ] |
74 } | 75 } |
75 | 76 |
76 android_library("java") { | 77 android_library("java") { |
77 java_files = [ | 78 java_files = [ |
78 "org/domokit/sky/shell/GestureProvider.java", | 79 "android/org/domokit/sky/shell/GestureProvider.java", |
79 "org/domokit/sky/shell/JavaServiceProvider.java", | 80 "android/org/domokit/sky/shell/PlatformServiceProvider.java", |
80 "org/domokit/sky/shell/PlatformView.java", | 81 "android/org/domokit/sky/shell/PlatformView.java", |
81 "org/domokit/sky/shell/ServiceFactory.java", | 82 "android/org/domokit/sky/shell/ServiceFactory.java", |
82 "org/domokit/sky/shell/ServiceRegistry.java", | 83 "android/org/domokit/sky/shell/ServiceRegistry.java", |
83 "org/domokit/sky/shell/SkyActivity.java", | 84 "android/org/domokit/sky/shell/SkyActivity.java", |
84 "org/domokit/sky/shell/SkyApplication.java", | 85 "android/org/domokit/sky/shell/SkyApplication.java", |
85 "org/domokit/sky/shell/SkyMain.java", | 86 "android/org/domokit/sky/shell/SkyMain.java", |
86 "org/domokit/sky/shell/TracingController.java", | 87 "android/org/domokit/sky/shell/TracingController.java", |
87 ] | 88 ] |
88 | 89 |
89 deps = [ | 90 deps = [ |
90 "//base:base_java", | 91 "//base:base_java", |
91 "//mojo/android:system_java", | 92 "//mojo/android:system_java", |
92 "//mojo/public/interfaces/application:application_java", | 93 "//mojo/public/interfaces/application:application_java", |
93 "//mojo/public/java:bindings", | 94 "//mojo/public/java:bindings", |
94 "//mojo/public/java:system", | 95 "//mojo/public/java:system", |
95 "//mojo/services/network/public/interfaces:interfaces_java", | 96 "//mojo/services/network/public/interfaces:interfaces_java", |
96 "//services/keyboard", | 97 "//services/keyboard", |
97 "//sky/services/oknet", | 98 "//sky/services/oknet", |
98 "//sky/services/viewport:viewport_java", | 99 "//sky/services/viewport:viewport_java", |
99 ] | 100 ] |
100 } | 101 } |
101 | 102 |
102 copy_ex("assets") { | 103 copy_ex("assets") { |
103 clear_dir = true | 104 clear_dir = true |
104 dest = "$root_build_dir/sky_shell/assets" | 105 dest = "$root_build_dir/sky_shell/assets" |
105 sources = [ | 106 sources = [ |
106 "$root_build_dir/icudtl.dat", | 107 "$root_build_dir/icudtl.dat", |
107 ] | 108 ] |
108 deps = [ | 109 deps = [ |
109 "//third_party/icu", | 110 "//third_party/icu", |
110 ] | 111 ] |
111 } | 112 } |
OLD | NEW |