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

Side by Side Diff: mojo/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: 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
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 if (is_win) { 147 if (is_win) {
148 deps -= [ "//mojo/shell/domain_socket" ] 148 deps -= [ "//mojo/shell/domain_socket" ]
149 } 149 }
150 150
151 if (is_android) { 151 if (is_android) {
152 sources += [ 152 sources += [
153 "android/android_handler.h", 153 "android/android_handler.h",
154 "android/android_handler.cc", 154 "android/android_handler.cc",
155 "android/android_handler_loader.h", 155 "android/android_handler_loader.h",
156 "android/android_handler_loader.cc", 156 "android/android_handler_loader.cc",
157 "network_application_loader.cc",
158 "network_application_loader.h",
159 ] 157 ]
160 158
161 deps += [ 159 deps += [
162 ":jni_headers", 160 ":jni_headers",
163 ":run_android_application_function", 161 ":run_android_application_function",
164 "//mojo/application:content_handler", 162 "//mojo/application:content_handler",
165 "//mojo/services/network:lib", 163 "//mojo/services/network:lib",
166 "//services/gles2", 164 "//services/gles2",
167 "//services/native_viewport:lib", 165 "//services/native_viewport:lib",
168 ] 166 ]
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 java_files = [ 219 java_files = [
222 "android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.java", 220 "android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.java",
223 "android/apk/src/org/chromium/mojo_shell_apk/FileHelper.java", 221 "android/apk/src/org/chromium/mojo_shell_apk/FileHelper.java",
224 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java", 222 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java",
225 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java", 223 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java",
226 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java", 224 "android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java",
227 ] 225 ]
228 226
229 deps = [ 227 deps = [
230 "//base:base_java", 228 "//base:base_java",
231 "//net/android:net_java",
232 ] 229 ]
233 } 230 }
234 231
235 android_resources("resources") { 232 android_resources("resources") {
236 resource_dirs = [ "android/apk/res" ] 233 resource_dirs = [ "android/apk/res" ]
237 custom_package = "org.chromium.mojo_shell_apk" 234 custom_package = "org.chromium.mojo_shell_apk"
238 } 235 }
239 236
240 shared_library("libmojo_shell") { 237 shared_library("libmojo_shell") {
241 sources = [ 238 sources = [
242 "android/library_loader.cc", 239 "android/library_loader.cc",
243 "android/mojo_main.cc", 240 "android/mojo_main.cc",
244 "android/mojo_main.h", 241 "android/mojo_main.h",
245 ] 242 ]
246 deps = [ 243 deps = [
247 ":jni_headers", 244 ":jni_headers",
248 ":lib", 245 ":lib",
249 "//mojo/application_manager", 246 "//mojo/application_manager",
250 "//net",
251 "//services/native_viewport:lib", 247 "//services/native_viewport:lib",
252 "//ui/gl", 248 "//ui/gl",
253 ] 249 ]
254 } 250 }
255 251
256 mojo_shell_assets_dir = "$root_build_dir/mojo_shell_assets" 252 mojo_shell_assets_dir = "$root_build_dir/mojo_shell_assets"
257 253
258 copy_ex("copy_mojo_shell_assets") { 254 copy_ex("copy_mojo_shell_assets") {
259 clear_dir = true 255 clear_dir = true
260 dest = mojo_shell_assets_dir 256 dest = mojo_shell_assets_dir
261 sources = [ 257 sources = [
262 "$root_out_dir/lib.stripped/libbootstrap.so", 258 "$root_out_dir/lib.stripped/libbootstrap.so",
259 "$root_out_dir/obj/mojo/services/network/network_service.mojo",
263 "$root_out_dir/obj/mojo/shell/bootstrap_java.dex.jar", 260 "$root_out_dir/obj/mojo/shell/bootstrap_java.dex.jar",
264 ] 261 ]
265 } 262 }
266 263
267 android_apk("mojo_shell_apk") { 264 android_apk("mojo_shell_apk") {
268 apk_name = "MojoShell" 265 apk_name = "MojoShell"
269 266
270 android_manifest = "android/apk/AndroidManifest.xml" 267 android_manifest = "android/apk/AndroidManifest.xml"
271 268
272 native_libs = [ "libmojo_shell.so" ] 269 native_libs = [ "libmojo_shell.so" ]
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 410
414 deps -= [ 411 deps -= [
415 ":lib", 412 ":lib",
416 ":external_application_registrar_connection", 413 ":external_application_registrar_connection",
417 ":external_application_registrar_bindings", 414 ":external_application_registrar_bindings",
418 "//mojo/shell/domain_socket", 415 "//mojo/shell/domain_socket",
419 "//mojo/shell/domain_socket:tests", 416 "//mojo/shell/domain_socket:tests",
420 ] 417 ]
421 } 418 }
422 } 419 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698