Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: sky/shell/BUILD.gn

Issue 936883002: Connect Sky and Ganesh in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address review comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/shell/apk/src/org/domokit/sky/shell/JavaServiceProvider.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 group("shell") { 10 group("shell") {
11 deps = [ 11 deps = [
12 ":sky_shell_apk", 12 ":sky_shell_apk",
13 ] 13 ]
14 } 14 }
15 15
16 generate_jni("jni_headers") { 16 generate_jni("jni_headers") {
17 sources = [ 17 sources = [
18 "apk/src/org/domokit/sky/shell/JavaServiceProvider.java",
18 "apk/src/org/domokit/sky/shell/SkyMain.java", 19 "apk/src/org/domokit/sky/shell/SkyMain.java",
19 "apk/src/org/domokit/sky/shell/SkyView.java", 20 "apk/src/org/domokit/sky/shell/PlatformView.java",
20 ] 21 ]
21 jni_package = "sky/shell" 22 jni_package = "sky/shell"
22 } 23 }
23 24
24 shared_library("sky_shell") { 25 shared_library("sky_shell") {
25 sources = [ 26 sources = [
26 "gpu/ganesh_context.cc", 27 "gpu/ganesh_context.cc",
27 "gpu/ganesh_context.h", 28 "gpu/ganesh_context.h",
28 "gpu/ganesh_surface.cc", 29 "gpu/ganesh_surface.cc",
29 "gpu/ganesh_surface.h", 30 "gpu/ganesh_surface.h",
30 "gpu/rasterizer.cc", 31 "gpu/rasterizer.cc",
31 "gpu/rasterizer.h", 32 "gpu/rasterizer.h",
32 "gpu_delegate.cc", 33 "gpu_delegate.cc",
33 "gpu_delegate.h", 34 "gpu_delegate.h",
35 "java_service_provider.cc",
36 "java_service_provider.h",
34 "library_loader.cc", 37 "library_loader.cc",
38 "platform_view.cc",
39 "platform_view.h",
35 "shell.cc", 40 "shell.cc",
36 "shell.h", 41 "shell.h",
37 "sky_main.cc", 42 "sky_main.cc",
38 "sky_main.h", 43 "sky_main.h",
39 "sky_view.cc", 44 "ui/animator.cc",
40 "sky_view.h", 45 "ui/animator.h",
41 "ui/engine.cc", 46 "ui/engine.cc",
42 "ui/engine.h", 47 "ui/engine.h",
43 "ui/platform_impl.cc", 48 "ui/platform_impl.cc",
44 "ui/platform_impl.h", 49 "ui/platform_impl.h",
45 "ui_delegate.cc", 50 "ui_delegate.cc",
46 "ui_delegate.h", 51 "ui_delegate.h",
47 ] 52 ]
48 53
49 deps = [ 54 deps = [
50 "//base", 55 "//base",
51 "//base:i18n", 56 "//base:i18n",
52 "//build/config/sanitizers:deps", 57 "//build/config/sanitizers:deps",
58 "//mojo/android:libsystem_java",
59 "//mojo/common",
53 "//mojo/edk/system", 60 "//mojo/edk/system",
61 "//mojo/public/cpp/application",
62 "//mojo/public/interfaces/application",
63 "//mojo/services/network/public/interfaces",
54 "//skia", 64 "//skia",
55 "//sky/engine", 65 "//sky/engine",
56 "//ui/gfx/geometry", 66 "//ui/gfx/geometry",
57 "//ui/gl", 67 "//ui/gl",
58 ":jni_headers", 68 ":jni_headers",
59 ] 69 ]
60 } 70 }
61 71
62 android_library("java") { 72 android_library("java") {
63 java_files = [ 73 java_files = [
74 "apk/src/org/domokit/sky/shell/JavaServiceProvider.java",
75 "apk/src/org/domokit/sky/shell/PlatformView.java",
64 "apk/src/org/domokit/sky/shell/SkyMain.java", 76 "apk/src/org/domokit/sky/shell/SkyMain.java",
65 "apk/src/org/domokit/sky/shell/SkyShellActivity.java", 77 "apk/src/org/domokit/sky/shell/SkyShellActivity.java",
66 "apk/src/org/domokit/sky/shell/SkyShellApplication.java", 78 "apk/src/org/domokit/sky/shell/SkyShellApplication.java",
67 "apk/src/org/domokit/sky/shell/SkyView.java",
68 ] 79 ]
69 80
70 deps = [ 81 deps = [
71 "//base:base_java", 82 "//base:base_java",
83 "//mojo/android:system_java",
84 "//mojo/public/interfaces/application:application_java",
85 "//mojo/public/java:bindings",
86 "//mojo/public/java:system",
87 "//mojo/services/network/public/interfaces:interfaces_java",
72 ] 88 ]
73 } 89 }
74 90
91 sky_shell_assets_dir = "$root_build_dir/sky_shell/assets"
92
75 android_resources("resources") { 93 android_resources("resources") {
76 resource_dirs = [ "apk/res" ] 94 resource_dirs = [ "apk/res" ]
77 custom_package = "org.domokit.sky.shell" 95 custom_package = "org.domokit.sky.shell"
78 } 96 }
79 97
98 copy_ex("assets") {
99 clear_dir = true
100 dest = sky_shell_assets_dir
101 sources = [
102 "$root_build_dir/icudtl.dat",
103 ]
104 deps = [
105 "//third_party/icu",
106 ]
107 }
108
80 android_apk("sky_shell_apk") { 109 android_apk("sky_shell_apk") {
81 apk_name = "SkyShell" 110 apk_name = "SkyShell"
82 111
83 android_manifest = "apk/AndroidManifest.xml" 112 android_manifest = "apk/AndroidManifest.xml"
84 native_libs = [ "libsky_shell.so" ] 113 native_libs = [ "libsky_shell.so" ]
85 114
86 asset_location = "apk/res" 115 asset_location = sky_shell_assets_dir
87 116
88 deps = [ 117 deps = [
89 ":sky_shell", 118 "//base:base_java",
119 ":assets",
90 ":java", 120 ":java",
91 ":resources", 121 ":resources",
92 "//base:base_java", 122 ":sky_shell",
93 ] 123 ]
94 } 124 }
OLDNEW
« no previous file with comments | « no previous file | sky/shell/apk/src/org/domokit/sky/shell/JavaServiceProvider.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698