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

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

Issue 1236543004: GN (android): Append ".cr" to component .so's to avoid zygote lib collisions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn16
Patch Set: android_shared_library_extension -> android_product_extension (to match GYP) Created 5 years, 5 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/public/mojo_application.gni ('k') | mojo/services/network/BUILD.gn » ('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("//mojo/generate_mojo_shell_assets_list.gni") 5 import("//mojo/generate_mojo_shell_assets_list.gni")
6 import("//mojo/public/mojo_application.gni") 6 import("//mojo/public/mojo_application.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 9
10 # We don't support building in the component build since mojo apps are 10 # We don't support building in the component build since mojo apps are
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 copy_ex("copy_mojo_runner_assets") { 282 copy_ex("copy_mojo_runner_assets") {
283 clear_dir = true 283 clear_dir = true
284 dest = mojo_runner_assets_dir 284 dest = mojo_runner_assets_dir
285 deps = [ 285 deps = [
286 ":bootstrap", 286 ":bootstrap",
287 ":bootstrap_java", 287 ":bootstrap_java",
288 ":copy_mojo_runner", 288 ":copy_mojo_runner",
289 "//mojo/services/network", 289 "//mojo/services/network",
290 ] 290 ]
291 sources = [ 291 sources = [
292 "$root_out_dir/lib.stripped/libbootstrap.so", 292 "$root_out_dir/lib.stripped/libbootstrap$android_product_extension",
293 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", 293 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar",
294 ] 294 ]
295 295
296 # Directories can't be specified as sources so pass manually to the script. 296 # Directories can't be specified as sources so pass manually to the script.
297 args = [ "--files=" + 297 args = [ "--files=" +
298 rebase_path("$root_out_dir/network_service", root_build_dir) ] 298 rebase_path("$root_out_dir/network_service", root_build_dir) ]
299 } 299 }
300 300
301 generate_mojo_shell_assets_list("build_mojo_runner_assets") { 301 generate_mojo_shell_assets_list("build_mojo_runner_assets") {
302 deps = [ 302 deps = [
303 ":copy_mojo_runner_assets", 303 ":copy_mojo_runner_assets",
304 ] 304 ]
305 dir = mojo_runner_assets_dir 305 dir = mojo_runner_assets_dir
306 } 306 }
307 307
308 copy("copy_mojo_runner") { 308 copy("copy_mojo_runner") {
309 sources = [ 309 sources = [
310 "$root_out_dir/exe.stripped/mojo_runner", 310 "$root_out_dir/exe.stripped/mojo_runner",
311 ] 311 ]
312 outputs = [ 312 outputs = [
313 "$root_out_dir/lib.stripped/libmojo_runner.so", 313 "$root_out_dir/lib.stripped/libmojo_runner$android_product_extension",
314 ] 314 ]
315 deps = [ 315 deps = [
316 ":mojo_runner", 316 ":mojo_runner",
317 ] 317 ]
318 } 318 }
319 319
320 copy_ex("copy_mojo_runner_test_assets") { 320 copy_ex("copy_mojo_runner_test_assets") {
321 clear_dir = true 321 clear_dir = true
322 dest = mojo_runner_test_assets_dir 322 dest = mojo_runner_test_assets_dir
323 deps = [ 323 deps = [
324 "//mojo/services/test_service:test_app", 324 "//mojo/services/test_service:test_app",
325 "//mojo/services/test_service:test_request_tracker_app", 325 "//mojo/services/test_service:test_request_tracker_app",
326 ] 326 ]
327 327
328 # Directories can't be specified as sources so pass manually to the script. 328 # Directories can't be specified as sources so pass manually to the script.
329 args = [ 329 args = [
330 "--files=" + rebase_path("$root_out_dir/test_app", root_build_dir), 330 "--files=" + rebase_path("$root_out_dir/test_app", root_build_dir),
331 "--files=" + 331 "--files=" +
332 rebase_path("$root_out_dir/test_request_tracker_app", root_build_dir), 332 rebase_path("$root_out_dir/test_request_tracker_app", root_build_dir),
333 ] 333 ]
334 } 334 }
335 335
336 android_apk("mojo_runner_apk") { 336 android_apk("mojo_runner_apk") {
337 apk_name = "MojoRunner" 337 apk_name = "MojoRunner"
338 338
339 android_manifest = "android/apk/AndroidManifest.xml" 339 android_manifest = "android/apk/AndroidManifest.xml"
340 340
341 native_libs = [ "libmojo_runner.so" ] 341 native_libs = [ "libmojo_runner$android_product_extension" ]
342 342
343 asset_location = mojo_runner_assets_dir 343 asset_location = mojo_runner_assets_dir
344 344
345 deps = [ 345 deps = [
346 ":build_mojo_runner_assets", 346 ":build_mojo_runner_assets",
347 ":copy_mojo_runner", 347 ":copy_mojo_runner",
348 ":java", 348 ":java",
349 ":resources", 349 ":resources",
350 "//base:base_java", 350 "//base:base_java",
351 "//third_party/android_tools:google_play_services_default_resources", 351 "//third_party/android_tools:google_play_services_default_resources",
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 ] 444 ]
445 445
446 deps = [ 446 deps = [
447 "//base", 447 "//base",
448 "//mojo/application/public/cpp:test_support", 448 "//mojo/application/public/cpp:test_support",
449 "//mojo/runner/test:bindings", 449 "//mojo/runner/test:bindings",
450 "//mojo/services/network/public/interfaces", 450 "//mojo/services/network/public/interfaces",
451 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", 451 "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
452 ] 452 ]
453 } 453 }
OLDNEW
« no previous file with comments | « mojo/public/mojo_application.gni ('k') | mojo/services/network/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698