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

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

Issue 674013002: Add gn support for generating mojo_shell_apk (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Alphabetize deps Created 6 years, 2 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 | « mojo/services/native_viewport/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("//mojo/public/mojo.gni") 6 import("//mojo/public/mojo.gni")
7 import("//mojo/public/tools/bindings/mojom.gni") 7 import("//mojo/public/tools/bindings/mojom.gni")
8 8
9 if (is_android) {
10 import("//build/config/android/config.gni")
11 import("//build/config/android/rules.gni")
12 }
13
9 if (!use_prebuilt_mojo_shell) { 14 if (!use_prebuilt_mojo_shell) {
10 15
11 # GYP version: mojo/mojo.gyp:mojo_shell 16 # GYP version: mojo/mojo.gyp:mojo_shell
12 executable("mojo_shell") { 17 executable("mojo_shell") {
13 deps = [ 18 deps = [
14 ":lib", 19 ":lib",
15 "//base", 20 "//base",
16 "//mojo/common", 21 "//mojo/common",
17 "//mojo/environment:chromium", 22 "//mojo/environment:chromium",
18 ] 23 ]
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 "//mojo/services/native_viewport:lib", 96 "//mojo/services/native_viewport:lib",
92 "//mojo/services/network:lib", 97 "//mojo/services/network:lib",
93 ] 98 ]
94 sources += [ 99 sources += [
95 "network_application_loader.cc", 100 "network_application_loader.cc",
96 "network_application_loader.h", 101 "network_application_loader.h",
97 ] 102 ]
98 } 103 }
99 } 104 }
100 105
106 if (is_android) {
107 generate_jni("jni_headers") {
108 sources = [
109 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java",
110 ]
111 jni_package = "mojo"
112 }
113
114 android_library("java") {
115 deps = [
116 "//base:base_java",
117 "//net/android:net_java",
118 ]
119 java_files = [
120 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java",
121 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java",
122 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java",
123 ]
124 }
125
126 android_resources("resources") {
127 resource_dirs = [ "android/apk/res" ]
128 custom_package = "org.chromium.mojo_shell_apk"
129 }
130
131 shared_library("libmojo_shell") {
132 deps = [
133 ":jni_headers",
134 ":lib",
135 "//ui/gl",
136 ]
137
138 sources = [
139 "android/library_loader.cc",
140 "android/mojo_main.cc",
141 "android/mojo_main.h",
142 ]
143 }
144
145 android_apk("mojo_shell_apk") {
146 deps = [
147 ":java",
148 ":libmojo_shell",
149 ":resources",
150 "//mojo/services/native_viewport:native_viewport_java",
151 ]
152
153 native_libs = [
154 "libmojo_shell.so"
155 ]
156
157 apk_name = "MojoShell"
158 android_manifest = "android/apk/AndroidManifest.xml"
159 }
160 }
161
101 mojom("app_child_process_bindings") { 162 mojom("app_child_process_bindings") {
102 sources = [ 163 sources = [
103 "app_child_process.mojom" 164 "app_child_process.mojom"
104 ] 165 ]
105 } 166 }
106 167
107 mojom("external_service_bindings") { 168 mojom("external_service_bindings") {
108 sources = [ 169 sources = [
109 "external_service.mojom" 170 "external_service.mojom"
110 ] 171 ]
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 "//mojo/edk/system", 260 "//mojo/edk/system",
200 "//mojo/environment:chromium", 261 "//mojo/environment:chromium",
201 ] 262 ]
202 263
203 sources = [ 264 sources = [
204 "incoming_connection_listener_unittest.cc", 265 "incoming_connection_listener_unittest.cc",
205 "external_application_listener_unittest.cc", 266 "external_application_listener_unittest.cc",
206 "external_application_test_main.cc", 267 "external_application_test_main.cc",
207 ] 268 ]
208 } 269 }
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698