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

Side by Side Diff: shell/BUILD.gn

Issue 782013002: Android: decouple mojo shell from the network service. (Closed) Base URL: https://github.com/domokit/mojo.git@build-rule-for-the-network-service
Patch Set: Rebase. Created 6 years 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 | shell/android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.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 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 # We don't support building in the component build since mojo apps are 9 # We don't support building in the component build since mojo apps are
10 # inherently components. 10 # inherently components.
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 if (is_win) { 172 if (is_win) {
173 deps -= [ "//shell/domain_socket" ] 173 deps -= [ "//shell/domain_socket" ]
174 } 174 }
175 175
176 if (is_android) { 176 if (is_android) {
177 sources += [ 177 sources += [
178 "android/android_handler.h", 178 "android/android_handler.h",
179 "android/android_handler.cc", 179 "android/android_handler.cc",
180 "android/android_handler_loader.h", 180 "android/android_handler_loader.h",
181 "android/android_handler_loader.cc", 181 "android/android_handler_loader.cc",
182 "network_application_loader.cc",
183 "network_application_loader.h",
184 ] 182 ]
185 183
186 deps += [ 184 deps += [
187 ":jni_headers", 185 ":jni_headers",
188 ":run_android_application_function", 186 ":run_android_application_function",
189 "//mojo/application:content_handler", 187 "//mojo/application:content_handler",
190 "//mojo/services/network:lib", 188 "//mojo/services/network:lib",
191 "//services/gles2", 189 "//services/gles2",
192 "//services/native_viewport:lib", 190 "//services/native_viewport:lib",
193 ] 191 ]
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 java_files = [ 244 java_files = [
247 "android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.java", 245 "android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.java",
248 "android/apk/src/org/chromium/mojo_shell_apk/FileHelper.java", 246 "android/apk/src/org/chromium/mojo_shell_apk/FileHelper.java",
249 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java", 247 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java",
250 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java", 248 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java",
251 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java", 249 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java",
252 ] 250 ]
253 251
254 deps = [ 252 deps = [
255 "//base:base_java", 253 "//base:base_java",
256 "//net/android:net_java",
257 ] 254 ]
258 } 255 }
259 256
260 android_resources("resources") { 257 android_resources("resources") {
261 resource_dirs = [ "android/apk/res" ] 258 resource_dirs = [ "android/apk/res" ]
262 custom_package = "org.chromium.mojo_shell_apk" 259 custom_package = "org.chromium.mojo_shell_apk"
263 } 260 }
264 261
265 shared_library("libmojo_shell") { 262 shared_library("libmojo_shell") {
266 sources = [ 263 sources = [
267 "android/library_loader.cc", 264 "android/library_loader.cc",
268 "android/mojo_main.cc", 265 "android/mojo_main.cc",
269 "android/mojo_main.h", 266 "android/mojo_main.h",
270 ] 267 ]
271 deps = [ 268 deps = [
272 ":jni_headers", 269 ":jni_headers",
273 ":lib", 270 ":lib",
274 "//mojo/application_manager", 271 "//mojo/application_manager",
275 "//net",
jamesr 2014/12/11 19:16:57 woohoo!! nicely done
276 "//services/native_viewport:lib", 272 "//services/native_viewport:lib",
277 "//ui/gl", 273 "//ui/gl",
278 ] 274 ]
279 } 275 }
280 276
281 mojo_shell_assets_dir = "$root_build_dir/mojo_shell_assets" 277 mojo_shell_assets_dir = "$root_build_dir/mojo_shell_assets"
282 278
283 copy_ex("copy_mojo_shell_assets") { 279 copy_ex("copy_mojo_shell_assets") {
284 clear_dir = true 280 clear_dir = true
285 dest = mojo_shell_assets_dir 281 dest = mojo_shell_assets_dir
286 sources = [ 282 sources = [
287 "$root_out_dir/lib.stripped/libbootstrap.so", 283 "$root_out_dir/lib.stripped/libbootstrap.so",
284 "$root_out_dir/network_service.mojo",
288 "$root_out_dir/obj/shell/bootstrap_java.dex.jar", 285 "$root_out_dir/obj/shell/bootstrap_java.dex.jar",
289 ] 286 ]
290 } 287 }
291 288
292 android_apk("mojo_shell_apk") { 289 android_apk("mojo_shell_apk") {
293 apk_name = "MojoShell" 290 apk_name = "MojoShell"
294 291
295 android_manifest = "android/apk/AndroidManifest.xml" 292 android_manifest = "android/apk/AndroidManifest.xml"
296 293
297 native_libs = [ "libmojo_shell.so" ] 294 native_libs = [ "libmojo_shell.so" ]
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 435
439 deps -= [ 436 deps -= [
440 ":lib", 437 ":lib",
441 ":external_application_registrar_connection", 438 ":external_application_registrar_connection",
442 ":external_application_registrar_bindings", 439 ":external_application_registrar_bindings",
443 "//shell/domain_socket", 440 "//shell/domain_socket",
444 "//shell/domain_socket:tests", 441 "//shell/domain_socket:tests",
445 ] 442 ]
446 } 443 }
447 } 444 }
OLDNEW
« no previous file with comments | « no previous file | shell/android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698