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

Side by Side Diff: shell/BUILD.gn

Issue 1439953002: Use debug apks for dev builds. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 | « build/android/lint/suppressions.xml ('k') | shell/android/apk/AndroidManifest.xml.jinja2 » ('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/mojo_application.gni") 7 import("//mojo/public/mojo_application.gni")
8 import("//mojo/public/tools/bindings/mojom.gni") 8 import("//mojo/public/tools/bindings/mojom.gni")
9 import("//mojo/tools/embed/rules.gni") 9 import("//mojo/tools/embed/rules.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 ] 442 ]
443 deps = [ 443 deps = [
444 "//services/test_service:test_app", 444 "//services/test_service:test_app",
445 "//services/test_service:test_request_tracker_app", 445 "//services/test_service:test_request_tracker_app",
446 ] 446 ]
447 } 447 }
448 448
449 if (!is_official_build) { 449 if (!is_official_build) {
450 manifest_package = "org.chromium.mojo.shell" 450 manifest_package = "org.chromium.mojo.shell"
451 apk_name = "Mojo Shell (dev)" 451 apk_name = "Mojo Shell (dev)"
452 debuggable = "true"
452 } else { 453 } else {
453 manifest_package = "io.mojoapps.launcher" 454 manifest_package = "io.mojoapps.launcher"
454 apk_name = "Mojo Shell" 455 apk_name = "Mojo Shell"
456 debuggable = "false"
455 } 457 }
456 458
457 if (is_official_build) { 459 if (is_official_build) {
458 # Force GN to re-generate ninja files when a new commit is present. 460 # Force GN to re-generate ninja files when a new commit is present.
459 read_file("//.git/index", "") 461 read_file("//.git/index", "")
460 version_code = 462 version_code =
461 exec_script("//mojo/public/tools/gn/last_commit_timestamp.py", 463 exec_script("//mojo/public/tools/gn/last_commit_timestamp.py",
462 [ 464 [
463 "--directory", 465 "--directory",
464 rebase_path("//", root_build_dir), 466 rebase_path("//", root_build_dir),
(...skipping 16 matching lines...) Expand all
481 [ "keystore_password" ], 483 [ "keystore_password" ],
482 "trim string") 484 "trim string")
483 } else { 485 } else {
484 version_code = "1" 486 version_code = "1"
485 } 487 }
486 version_name = "0.0.1" 488 version_name = "0.0.1"
487 489
488 jinja_variables = [ 490 jinja_variables = [
489 "manifest_package=$manifest_package", 491 "manifest_package=$manifest_package",
490 "apk_name=$apk_name", 492 "apk_name=$apk_name",
493 "debuggable=$debuggable",
491 "version_code=$version_code", 494 "version_code=$version_code",
492 "version_name=$version_name", 495 "version_name=$version_name",
493 ] 496 ]
494 497
495 mojo_shell_manifest = 498 mojo_shell_manifest =
496 "$target_gen_dir/mojo_shell_manifest/AndroidManifest.xml" 499 "$target_gen_dir/mojo_shell_manifest/AndroidManifest.xml"
497 500
498 jinja_template("mojo_shell_manifest") { 501 jinja_template("mojo_shell_manifest") {
499 variables = jinja_variables 502 variables = jinja_variables
500 input = "android/apk/AndroidManifest.xml.jinja2" 503 input = "android/apk/AndroidManifest.xml.jinja2"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 "${root_out_dir}/libmojo_shell.so", 700 "${root_out_dir}/libmojo_shell.so",
698 ] 701 ]
699 } else { 702 } else {
700 sources += [ "${root_out_dir}/mojo_shell" ] 703 sources += [ "${root_out_dir}/mojo_shell" ]
701 } 704 }
702 705
703 outputs = [ 706 outputs = [
704 "${root_out_dir}/symbols/{{source_file_part}}", 707 "${root_out_dir}/symbols/{{source_file_part}}",
705 ] 708 ]
706 } 709 }
OLDNEW
« no previous file with comments | « build/android/lint/suppressions.xml ('k') | shell/android/apk/AndroidManifest.xml.jinja2 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698