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

Side by Side Diff: build/config/android/rules.gni

Issue 1136573002: Use the Errorprone Compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extracted some constants Created 5 years, 7 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
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("//base/android/linker/config.gni") 5 import("//base/android/linker/config.gni")
6 import("//build/config/android/config.gni") 6 import("//build/config/android/config.gni")
7 import("//build/config/android/internal_rules.gni") 7 import("//build/config/android/internal_rules.gni")
8 import("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
9 import("//tools/relocation_packer/config.gni") 9 import("//tools/relocation_packer/config.gni")
10 10
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 725 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
726 # will be added to java_files and be included in this library. 726 # will be added to java_files and be included in this library.
727 # srcjars: List of srcjars to be included in this library, together with the 727 # srcjars: List of srcjars to be included in this library, together with the
728 # ones obtained from srcjar_deps. 728 # ones obtained from srcjar_deps.
729 # 729 #
730 # bypass_platform_checks: Disables checks about cross-platform (Java/Android) 730 # bypass_platform_checks: Disables checks about cross-platform (Java/Android)
731 # dependencies for this target. This will allow depending on an 731 # dependencies for this target. This will allow depending on an
732 # android_library target, for example. 732 # android_library target, for example.
733 # 733 #
734 # chromium_code: If true, extra analysis warning/errors will be enabled. 734 # chromium_code: If true, extra analysis warning/errors will be enabled.
735 # enable_errorprone: If true, enables the errorprone compiler.
cjhopman 2015/05/20 02:21:29 What is our plan for enabling this? I don't think
raywilliams_chromium 2015/05/20 21:31:55 Alright, I added a default to false. I wasn't sure
cjhopman 2015/05/21 22:52:24 That change seems to just set it to false for all
raywilliams_chromium 2015/05/22 17:09:55 I'm still trying to figure out how these gni/gyp/g
raywilliams_chromium 2015/05/26 15:12:45 Done.
735 # 736 #
736 # datadeps, testonly 737 # datadeps, testonly
737 # 738 #
738 # Example 739 # Example
739 # java_binary("foo") { 740 # java_binary("foo") {
740 # java_files = [ "org/chromium/foo/FooMain.java" ] 741 # java_files = [ "org/chromium/foo/FooMain.java" ]
741 # deps = [ ":bar_java" ] 742 # deps = [ ":bar_java" ]
742 # main_class = "org.chromium.foo.FooMain" 743 # main_class = "org.chromium.foo.FooMain"
743 # } 744 # }
744 template("java_binary") { 745 template("java_binary") {
745 set_sources_assignment_filter([]) 746 set_sources_assignment_filter([])
746 747
747 # TODO(cjhopman): This should not act like a java_library for dependents (i.e. 748 # TODO(cjhopman): This should not act like a java_library for dependents (i.e.
748 # dependents shouldn't get the jar in their classpath, etc.). 749 # dependents shouldn't get the jar in their classpath, etc.).
749 java_library_impl(target_name) { 750 java_library_impl(target_name) {
750 if (defined(invoker.DEPRECATED_java_in_dir)) { 751 if (defined(invoker.DEPRECATED_java_in_dir)) {
751 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir 752 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir
752 } 753 }
753 if (defined(invoker.chromium_code)) { 754 if (defined(invoker.chromium_code)) {
754 chromium_code = invoker.chromium_code 755 chromium_code = invoker.chromium_code
755 } 756 }
756 if (defined(invoker.datadeps)) { 757 if (defined(invoker.datadeps)) {
757 deps = invoker.datadeps 758 deps = invoker.datadeps
758 } 759 }
759 if (defined(invoker.deps)) { 760 if (defined(invoker.deps)) {
760 deps = invoker.deps 761 deps = invoker.deps
761 } 762 }
763 if (defined(invoker.enable_errorprone)) {
764 enable_errorprone = invoker.enable_errorprone
765 }
762 if (defined(invoker.java_files)) { 766 if (defined(invoker.java_files)) {
763 java_files = invoker.java_files 767 java_files = invoker.java_files
764 } 768 }
765 if (defined(invoker.srcjar_deps)) { 769 if (defined(invoker.srcjar_deps)) {
766 srcjar_deps = invoker.srcjar_deps 770 srcjar_deps = invoker.srcjar_deps
767 } 771 }
768 if (defined(invoker.srcjars)) { 772 if (defined(invoker.srcjars)) {
769 srcjars = invoker.srcjars 773 srcjars = invoker.srcjars
770 } 774 }
771 if (defined(invoker.bypass_platform_checks)) { 775 if (defined(invoker.bypass_platform_checks)) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 # java_files: List of .java files included in this library. 850 # java_files: List of .java files included in this library.
847 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 851 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
848 # will be added to java_files and be included in this library. 852 # will be added to java_files and be included in this library.
849 # srcjars: List of srcjars to be included in this library, together with the 853 # srcjars: List of srcjars to be included in this library, together with the
850 # ones obtained from srcjar_deps. 854 # ones obtained from srcjar_deps.
851 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in 855 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in
852 # this directory will be included in the library. This is only supported to 856 # this directory will be included in the library. This is only supported to
853 # ease the gyp->gn conversion and will be removed in the future. 857 # ease the gyp->gn conversion and will be removed in the future.
854 # 858 #
855 # chromium_code: If true, extra analysis warning/errors will be enabled. 859 # chromium_code: If true, extra analysis warning/errors will be enabled.
860 # enable_errorprone: If true, enables the errorprone compiler.
861 #
856 # jar_excluded_patterns: List of patterns of .class files to exclude from the 862 # jar_excluded_patterns: List of patterns of .class files to exclude from the
857 # final jar. 863 # final jar.
858 # 864 #
859 # proguard_preprocess: If true, proguard preprocessing will be run. This can 865 # proguard_preprocess: If true, proguard preprocessing will be run. This can
860 # be used to remove unwanted parts of the library. 866 # be used to remove unwanted parts of the library.
861 # proguard_config: Path to the proguard config for preprocessing. 867 # proguard_config: Path to the proguard config for preprocessing.
862 # 868 #
863 # supports_android: If true, Android targets (android_library, android_apk) 869 # supports_android: If true, Android targets (android_library, android_apk)
864 # may depend on this target. Note: if true, this target must only use the 870 # may depend on this target. Note: if true, this target must only use the
865 # subset of Java available on Android. 871 # subset of Java available on Android.
(...skipping 28 matching lines...) Expand all
894 } 900 }
895 if (defined(invoker.chromium_code)) { 901 if (defined(invoker.chromium_code)) {
896 chromium_code = invoker.chromium_code 902 chromium_code = invoker.chromium_code
897 } 903 }
898 if (defined(invoker.datadeps)) { 904 if (defined(invoker.datadeps)) {
899 deps = invoker.datadeps 905 deps = invoker.datadeps
900 } 906 }
901 if (defined(invoker.deps)) { 907 if (defined(invoker.deps)) {
902 deps = invoker.deps 908 deps = invoker.deps
903 } 909 }
910 if (defined(invoker.enable_errorprone)) {
911 enable_errorprone = invoker.enable_errorprone
912 }
904 if (defined(invoker.jar_excluded_patterns)) { 913 if (defined(invoker.jar_excluded_patterns)) {
905 jar_excluded_patterns = invoker.jar_excluded_patterns 914 jar_excluded_patterns = invoker.jar_excluded_patterns
906 } 915 }
907 if (defined(invoker.java_files)) { 916 if (defined(invoker.java_files)) {
908 java_files = invoker.java_files 917 java_files = invoker.java_files
909 } 918 }
910 if (defined(invoker.proguard_config)) { 919 if (defined(invoker.proguard_config)) {
911 proguard_config = invoker.proguard_config 920 proguard_config = invoker.proguard_config
912 } 921 }
913 if (defined(invoker.proguard_preprocess)) { 922 if (defined(invoker.proguard_preprocess)) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 # java_files: List of .java files included in this library. 994 # java_files: List of .java files included in this library.
986 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 995 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
987 # will be added to java_files and be included in this library. 996 # will be added to java_files and be included in this library.
988 # srcjars: List of srcjars to be included in this library, together with the 997 # srcjars: List of srcjars to be included in this library, together with the
989 # ones obtained from srcjar_deps. 998 # ones obtained from srcjar_deps.
990 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in 999 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in
991 # this directory will be included in the library. This is only supported to 1000 # this directory will be included in the library. This is only supported to
992 # ease the gyp->gn conversion and will be removed in the future. 1001 # ease the gyp->gn conversion and will be removed in the future.
993 # 1002 #
994 # chromium_code: If true, extra analysis warning/errors will be enabled. 1003 # chromium_code: If true, extra analysis warning/errors will be enabled.
1004 # enable_errorprone: If true, enables the errorprone compiler.
1005 #
995 # jar_excluded_patterns: List of patterns of .class files to exclude from the 1006 # jar_excluded_patterns: List of patterns of .class files to exclude from the
996 # final jar. 1007 # final jar.
997 # 1008 #
998 # proguard_preprocess: If true, proguard preprocessing will be run. This can 1009 # proguard_preprocess: If true, proguard preprocessing will be run. This can
999 # be used to remove unwanted parts of the library. 1010 # be used to remove unwanted parts of the library.
1000 # proguard_config: Path to the proguard config for preprocessing. 1011 # proguard_config: Path to the proguard config for preprocessing.
1001 # 1012 #
1002 # dex_path: If set, the resulting .dex.jar file will be placed under this 1013 # dex_path: If set, the resulting .dex.jar file will be placed under this
1003 # path. 1014 # path.
1004 # 1015 #
(...skipping 25 matching lines...) Expand all
1030 } 1041 }
1031 if (defined(invoker.chromium_code)) { 1042 if (defined(invoker.chromium_code)) {
1032 chromium_code = invoker.chromium_code 1043 chromium_code = invoker.chromium_code
1033 } 1044 }
1034 if (defined(invoker.datadeps)) { 1045 if (defined(invoker.datadeps)) {
1035 deps = invoker.datadeps 1046 deps = invoker.datadeps
1036 } 1047 }
1037 if (defined(invoker.deps)) { 1048 if (defined(invoker.deps)) {
1038 deps = invoker.deps 1049 deps = invoker.deps
1039 } 1050 }
1051 if (defined(invoker.enable_errorprone)) {
1052 enable_errorprone = invoker.enable_errorprone
1053 }
1040 if (defined(invoker.jar_excluded_patterns)) { 1054 if (defined(invoker.jar_excluded_patterns)) {
1041 jar_excluded_patterns = invoker.jar_excluded_patterns 1055 jar_excluded_patterns = invoker.jar_excluded_patterns
1042 } 1056 }
1043 if (defined(invoker.java_files)) { 1057 if (defined(invoker.java_files)) {
1044 java_files = invoker.java_files 1058 java_files = invoker.java_files
1045 } 1059 }
1046 if (defined(invoker.proguard_config)) { 1060 if (defined(invoker.proguard_config)) {
1047 proguard_config = invoker.proguard_config 1061 proguard_config = invoker.proguard_config
1048 } 1062 }
1049 if (defined(invoker.proguard_preprocess)) { 1063 if (defined(invoker.proguard_preprocess)) {
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 template("uiautomator_test") { 1833 template("uiautomator_test") {
1820 set_sources_assignment_filter([]) 1834 set_sources_assignment_filter([])
1821 if (defined(invoker.testonly)) { 1835 if (defined(invoker.testonly)) {
1822 testonly = invoker.testonly 1836 testonly = invoker.testonly
1823 } 1837 }
1824 assert(target_name != "") 1838 assert(target_name != "")
1825 assert(invoker.deps != [] || true) 1839 assert(invoker.deps != [] || true)
1826 group(target_name) { 1840 group(target_name) {
1827 } 1841 }
1828 } 1842 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698