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

Side by Side Diff: chrome/android/BUILD.gn

Issue 2308313003: gn: Generalize process_version() and move it to build/util (Closed)
Patch Set: Move branding_file_path to chrome/process_version_rc_template.gni Created 4 years, 3 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 | « chrome/BUILD.gn ('k') | chrome/app/version_assembly/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("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 import("//build/util/process_version.gni")
7 import("//build_overrides/v8.gni") 8 import("//build_overrides/v8.gni")
8 import("//chrome/android/chrome_public_apk_tmpl.gni") 9 import("//chrome/android/chrome_public_apk_tmpl.gni")
9 import("//chrome/common/features.gni") 10 import("//chrome/common/features.gni")
10 import("//chrome/version.gni") 11 import("//chrome/process_version_rc_template.gni") # For branding_file_path.
11 import("//testing/test.gni") 12 import("//testing/test.gni")
12 import("//third_party/icu/config.gni") 13 import("//third_party/icu/config.gni")
13 import("//third_party/protobuf/proto_library.gni") 14 import("//third_party/protobuf/proto_library.gni")
14 import("channel.gni") 15 import("channel.gni")
15 import("java_sources.gni") 16 import("java_sources.gni")
16 17
17 manifest_package = "org.chromium.chrome" 18 manifest_package = "org.chromium.chrome"
18 19
19 chrome_public_jinja_variables = default_chrome_public_jinja_variables + 20 chrome_public_jinja_variables = default_chrome_public_jinja_variables +
20 [ "manifest_package=$manifest_package" ] 21 [ "manifest_package=$manifest_package" ]
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 "//ui/android:ui_java", 371 "//ui/android:ui_java",
371 google_play_services_library, 372 google_play_services_library,
372 ] 373 ]
373 srcjar_deps = [ "//base:base_build_config_gen" ] 374 srcjar_deps = [ "//base:base_build_config_gen" ]
374 } 375 }
375 376
376 chrome_version_java_dir = "$root_gen_dir/templates/chrome_version_java" 377 chrome_version_java_dir = "$root_gen_dir/templates/chrome_version_java"
377 chrome_version_java_file = "$chrome_version_java_dir/org/chromium/chrome/browser /ChromeVersionConstants.java" 378 chrome_version_java_file = "$chrome_version_java_dir/org/chromium/chrome/browser /ChromeVersionConstants.java"
378 process_version("chrome_version_java") { 379 process_version("chrome_version_java") {
379 template_file = "java/ChromeVersionConstants.java.version" 380 template_file = "java/ChromeVersionConstants.java.version"
381 sources = [
382 "//chrome/VERSION",
383 branding_file_path,
384 ]
380 output = chrome_version_java_file 385 output = chrome_version_java_file
381 extra_args = [ 386 extra_args = [
382 "-e", 387 "-e",
383 "CHANNEL=str.upper('$android_channel')", 388 "CHANNEL=str.upper('$android_channel')",
384 ] 389 ]
385 } 390 }
386 391
387 zip("chrome_version_srcjar") { 392 zip("chrome_version_srcjar") {
388 inputs = [ 393 inputs = [
389 chrome_version_java_file, 394 chrome_version_java_file,
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 instrumentation_test_apk("chrome_sync_shell_test_apk") { 694 instrumentation_test_apk("chrome_sync_shell_test_apk") {
690 apk_name = "ChromeSyncShellTest" 695 apk_name = "ChromeSyncShellTest"
691 apk_under_test = ":chrome_sync_shell_apk" 696 apk_under_test = ":chrome_sync_shell_apk"
692 android_manifest = chrome_sync_shell_test_apk_manifest 697 android_manifest = chrome_sync_shell_test_apk_manifest
693 android_manifest_dep = ":chrome_sync_shell_test_apk_manifest" 698 android_manifest_dep = ":chrome_sync_shell_test_apk_manifest"
694 deps = [ 699 deps = [
695 ":chrome_sync_shell_test_apk_java", 700 ":chrome_sync_shell_test_apk_java",
696 ] 701 ]
697 proguard_enabled = !is_java_debug 702 proguard_enabled = !is_java_debug
698 } 703 }
OLDNEW
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/app/version_assembly/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698