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

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

Issue 1161833003: Make chrome_public_apk, not chrome_staging_java depend on chrome_template_resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | chrome/android/chrome_apk.gyp » ('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/module_args/v8.gni") 7 import("//build/module_args/v8.gni")
8 import("//chrome/version.gni") 8 import("//chrome/version.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//third_party/icu/config.gni") 10 import("//third_party/icu/config.gni")
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 } 614 }
615 615
616 #GYP: //chrome/android/chrome_apk.gyp:chrome_staging_java 616 #GYP: //chrome/android/chrome_apk.gyp:chrome_staging_java
617 android_resources("chrome_staging_java_resources") { 617 android_resources("chrome_staging_java_resources") {
618 resource_dirs = [ 618 resource_dirs = [
619 "java_staging/res", 619 "java_staging/res",
620 "java_staging/res_default", 620 "java_staging/res_default",
621 ] 621 ]
622 custom_package = "com.google.android.apps.chrome" 622 custom_package = "com.google.android.apps.chrome"
623 deps = [ 623 deps = [
624 ":chrome_template_resources",
625 "//chrome/android:chrome_java_resources", 624 "//chrome/android:chrome_java_resources",
626 "//components/policy:app_restrictions_resources", 625 "//components/policy:app_restrictions_resources",
627 "//third_party/android_tools:android_support_v7_appcompat_resources", 626 "//third_party/android_tools:android_support_v7_appcompat_resources",
628 "//third_party/android_tools:android_support_v7_mediarouter_resources", 627 "//third_party/android_tools:android_support_v7_mediarouter_resources",
629 ] 628 ]
630 if (!enable_configuration_policy) { 629 if (!enable_configuration_policy) {
631 deps -= [ "//components/policy:app_restrictions_resources" ] 630 deps -= [ "//components/policy:app_restrictions_resources" ]
632 } 631 }
633 } 632 }
634 633
635 # GYP: //chrome/android/chrome_apk.gyp:chrome_template_resources
636 jinja_template_resources("chrome_template_resources") {
637 resources = [
638 "java_staging/res_template/xml/searchable.xml",
639 "java_staging/res_template/xml/syncadapter.xml",
640 ]
641 res_dir = "java_staging/res_template"
642 variables = jinja_variables
643 }
644
645 # GYP: //chrome/android/chrome_apk.gyp:chrome_staging_test_java 634 # GYP: //chrome/android/chrome_apk.gyp:chrome_staging_test_java
646 android_library("chrome_staging_test_java") { 635 android_library("chrome_staging_test_java") {
647 testonly = true 636 testonly = true
648 DEPRECATED_java_in_dir = "javatests/src" 637 DEPRECATED_java_in_dir = "javatests/src"
649 638
650 deps = [ 639 deps = [
651 "//chrome/android:chrome_staging_java", 640 "//chrome/android:chrome_staging_java",
652 "//chrome/android:chrome_staging_java_resources", 641 "//chrome/android:chrome_staging_java_resources",
653 "//chrome/test/android:chrome_staging_test_support_java", 642 "//chrome/test/android:chrome_staging_test_support_java",
654 "//base:base_java", 643 "//base:base_java",
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 sources += [ "$root_build_dir/resources.pak" ] 746 sources += [ "$root_build_dir/resources.pak" ]
758 } 747 }
759 748
760 # GYP: //chrome/android/chrome_apk.gyp:chrome_apk_manifest 749 # GYP: //chrome/android/chrome_apk.gyp:chrome_apk_manifest
761 jinja_template("chrome_public_apk_manifest") { 750 jinja_template("chrome_public_apk_manifest") {
762 input = "java_staging/AndroidManifest.xml" 751 input = "java_staging/AndroidManifest.xml"
763 output = "$root_gen_dir/chrome_public_apk_manifest/AndroidManifest.xml" 752 output = "$root_gen_dir/chrome_public_apk_manifest/AndroidManifest.xml"
764 variables = jinja_variables + [ "min_sdk_version=16" ] 753 variables = jinja_variables + [ "min_sdk_version=16" ]
765 } 754 }
766 755
756 # GYP: //chrome/android/chrome_apk.gyp:chrome_public_template_resources
757 jinja_template_resources("chrome_public_template_resources") {
758 resources = [
759 "java_staging/res_template/xml/searchable.xml",
760 "java_staging/res_template/xml/syncadapter.xml",
761 ]
762 res_dir = "java_staging/res_template"
763 variables = jinja_variables
764 }
765
767 # GYP: //chrome/android/chrome_apk.gyp:libchrome_public 766 # GYP: //chrome/android/chrome_apk.gyp:libchrome_public
768 shared_library("chrome_public") { 767 shared_library("chrome_public") {
769 deps = [ 768 deps = [
770 "//chrome/android:chrome_staging", 769 "//chrome/android:chrome_staging",
771 "//chrome:chrome_android_core", 770 "//chrome:chrome_android_core",
772 ] 771 ]
773 gypi_values = exec_script( 772 gypi_values = exec_script(
774 "//build/gypi_to_gn.py", 773 "//build/gypi_to_gn.py",
775 [ 774 [
776 rebase_path("chrome_apk.gyp"), 775 rebase_path("chrome_apk.gyp"),
(...skipping 20 matching lines...) Expand all
797 native_libs = [ "$root_build_dir/lib.stripped/libchrome_public.so" ] 796 native_libs = [ "$root_build_dir/lib.stripped/libchrome_public.so" ]
798 native_lib_version_name = _version_full 797 native_lib_version_name = _version_full
799 asset_location = chrome_public_apk_assets_dir 798 asset_location = chrome_public_apk_assets_dir
800 799
801 deps = [ 800 deps = [
802 ":chrome_staging_java", 801 ":chrome_staging_java",
803 ":chrome_staging_java_resources", 802 ":chrome_staging_java_resources",
804 ":chrome_public", 803 ":chrome_public",
805 ":chrome_public_apk_assets", 804 ":chrome_public_apk_assets",
806 ":chrome_public_apk_manifest", 805 ":chrome_public_apk_manifest",
806 ":chrome_public_template_resources",
807 "//base:base_java", 807 "//base:base_java",
808 "//third_party/android_tools:google_play_services_default_resources", 808 "//third_party/android_tools:google_play_services_default_resources",
809 ] 809 ]
810 } 810 }
811 811
812 chrome_public_test_apk_manifest = 812 chrome_public_test_apk_manifest =
813 "$root_gen_dir/chrome_public_test_apk_manifest/AndroidManifest.xml" 813 "$root_gen_dir/chrome_public_test_apk_manifest/AndroidManifest.xml"
814 814
815 # GYP: //chrome/android/chrome_apk.gyp:chrome_public_test_apk_manifest 815 # GYP: //chrome/android/chrome_apk.gyp:chrome_public_test_apk_manifest
816 jinja_template("chrome_public_test_apk_manifest") { 816 jinja_template("chrome_public_test_apk_manifest") {
817 input = "javatests/AndroidManifest.xml" 817 input = "javatests/AndroidManifest.xml"
818 output = chrome_public_test_apk_manifest 818 output = chrome_public_test_apk_manifest
819 variables = jinja_variables 819 variables = jinja_variables
820 } 820 }
821 821
822 # GYP: //chrome/android/chrome_apk.gyp:chrome_public_test_apk 822 # GYP: //chrome/android/chrome_apk.gyp:chrome_public_test_apk
823 instrumentation_test_apk("chrome_public_test_apk") { 823 instrumentation_test_apk("chrome_public_test_apk") {
824 # TODO(GYP,cjhopman): Does this need version code/name? 824 # TODO(GYP,cjhopman): Does this need version code/name?
825 apk_name = "ChromePublicTest" 825 apk_name = "ChromePublicTest"
826 apk_under_test = ":chrome_public_apk" 826 apk_under_test = ":chrome_public_apk"
827 android_manifest = chrome_public_test_apk_manifest 827 android_manifest = chrome_public_test_apk_manifest
828 deps = [ 828 deps = [
829 ":chrome_public_test_apk_manifest", 829 ":chrome_public_test_apk_manifest",
830 "//chrome/test/android:chrome_staging_test_support_java", 830 "//chrome/test/android:chrome_staging_test_support_java",
831 "//chrome/android:chrome_staging_test_java", 831 "//chrome/android:chrome_staging_test_java",
832 ] 832 ]
833 isolate_file = "../chrome_public_test_apk.isolate" 833 isolate_file = "../chrome_public_test_apk.isolate"
834 } 834 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/chrome_apk.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698