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

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: Rebase and parser update 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
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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 720 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
721 # will be added to java_files and be included in this library. 721 # will be added to java_files and be included in this library.
722 # srcjars: List of srcjars to be included in this library, together with the 722 # srcjars: List of srcjars to be included in this library, together with the
723 # ones obtained from srcjar_deps. 723 # ones obtained from srcjar_deps.
724 # 724 #
725 # bypass_platform_checks: Disables checks about cross-platform (Java/Android) 725 # bypass_platform_checks: Disables checks about cross-platform (Java/Android)
726 # dependencies for this target. This will allow depending on an 726 # dependencies for this target. This will allow depending on an
727 # android_library target, for example. 727 # android_library target, for example.
728 # 728 #
729 # chromium_code: If true, extra analysis warning/errors will be enabled. 729 # chromium_code: If true, extra analysis warning/errors will be enabled.
730 # enable_errorprone: If true, enables the errorprone compiler.
730 # 731 #
731 # datadeps, testonly 732 # datadeps, testonly
732 # 733 #
733 # Example 734 # Example
734 # java_binary("foo") { 735 # java_binary("foo") {
735 # java_files = [ "org/chromium/foo/FooMain.java" ] 736 # java_files = [ "org/chromium/foo/FooMain.java" ]
736 # deps = [ ":bar_java" ] 737 # deps = [ ":bar_java" ]
737 # main_class = "org.chromium.foo.FooMain" 738 # main_class = "org.chromium.foo.FooMain"
738 # } 739 # }
739 template("java_binary") { 740 template("java_binary") {
740 set_sources_assignment_filter([]) 741 set_sources_assignment_filter([])
741 742
742 # TODO(cjhopman): This should not act like a java_library for dependents (i.e. 743 # TODO(cjhopman): This should not act like a java_library for dependents (i.e.
743 # dependents shouldn't get the jar in their classpath, etc.). 744 # dependents shouldn't get the jar in their classpath, etc.).
744 java_library_impl(target_name) { 745 java_library_impl(target_name) {
745 if (defined(invoker.DEPRECATED_java_in_dir)) { 746 if (defined(invoker.DEPRECATED_java_in_dir)) {
746 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir 747 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir
747 } 748 }
748 if (defined(invoker.chromium_code)) { 749 if (defined(invoker.chromium_code)) {
749 chromium_code = invoker.chromium_code 750 chromium_code = invoker.chromium_code
750 } 751 }
751 if (defined(invoker.datadeps)) { 752 if (defined(invoker.datadeps)) {
752 deps = invoker.datadeps 753 deps = invoker.datadeps
753 } 754 }
754 if (defined(invoker.deps)) { 755 if (defined(invoker.deps)) {
755 deps = invoker.deps 756 deps = invoker.deps
756 } 757 }
758 if (defined(invoker.enable_errorprone)) {
759 enable_errorprone = invoker.enable_errorprone
760 }
757 if (defined(invoker.java_files)) { 761 if (defined(invoker.java_files)) {
758 java_files = invoker.java_files 762 java_files = invoker.java_files
759 } 763 }
760 if (defined(invoker.srcjar_deps)) { 764 if (defined(invoker.srcjar_deps)) {
761 srcjar_deps = invoker.srcjar_deps 765 srcjar_deps = invoker.srcjar_deps
762 } 766 }
763 if (defined(invoker.srcjars)) { 767 if (defined(invoker.srcjars)) {
764 srcjars = invoker.srcjars 768 srcjars = invoker.srcjars
765 } 769 }
766 if (defined(invoker.bypass_platform_checks)) { 770 if (defined(invoker.bypass_platform_checks)) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 # java_files: List of .java files included in this library. 845 # java_files: List of .java files included in this library.
842 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 846 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
843 # will be added to java_files and be included in this library. 847 # will be added to java_files and be included in this library.
844 # srcjars: List of srcjars to be included in this library, together with the 848 # srcjars: List of srcjars to be included in this library, together with the
845 # ones obtained from srcjar_deps. 849 # ones obtained from srcjar_deps.
846 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in 850 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in
847 # this directory will be included in the library. This is only supported to 851 # this directory will be included in the library. This is only supported to
848 # ease the gyp->gn conversion and will be removed in the future. 852 # ease the gyp->gn conversion and will be removed in the future.
849 # 853 #
850 # chromium_code: If true, extra analysis warning/errors will be enabled. 854 # chromium_code: If true, extra analysis warning/errors will be enabled.
855 # enable_errorprone: If true, enables the errorprone compiler.
856 #
851 # jar_excluded_patterns: List of patterns of .class files to exclude from the 857 # jar_excluded_patterns: List of patterns of .class files to exclude from the
852 # final jar. 858 # final jar.
853 # 859 #
854 # proguard_preprocess: If true, proguard preprocessing will be run. This can 860 # proguard_preprocess: If true, proguard preprocessing will be run. This can
855 # be used to remove unwanted parts of the library. 861 # be used to remove unwanted parts of the library.
856 # proguard_config: Path to the proguard config for preprocessing. 862 # proguard_config: Path to the proguard config for preprocessing.
857 # 863 #
858 # supports_android: If true, Android targets (android_library, android_apk) 864 # supports_android: If true, Android targets (android_library, android_apk)
859 # may depend on this target. Note: if true, this target must only use the 865 # may depend on this target. Note: if true, this target must only use the
860 # subset of Java available on Android. 866 # subset of Java available on Android.
(...skipping 28 matching lines...) Expand all
889 } 895 }
890 if (defined(invoker.chromium_code)) { 896 if (defined(invoker.chromium_code)) {
891 chromium_code = invoker.chromium_code 897 chromium_code = invoker.chromium_code
892 } 898 }
893 if (defined(invoker.datadeps)) { 899 if (defined(invoker.datadeps)) {
894 deps = invoker.datadeps 900 deps = invoker.datadeps
895 } 901 }
896 if (defined(invoker.deps)) { 902 if (defined(invoker.deps)) {
897 deps = invoker.deps 903 deps = invoker.deps
898 } 904 }
905 if (defined(invoker.enable_errorprone)) {
906 enable_errorprone = invoker.enable_errorprone
907 }
899 if (defined(invoker.jar_excluded_patterns)) { 908 if (defined(invoker.jar_excluded_patterns)) {
900 jar_excluded_patterns = invoker.jar_excluded_patterns 909 jar_excluded_patterns = invoker.jar_excluded_patterns
901 } 910 }
902 if (defined(invoker.java_files)) { 911 if (defined(invoker.java_files)) {
903 java_files = invoker.java_files 912 java_files = invoker.java_files
904 } 913 }
905 if (defined(invoker.proguard_config)) { 914 if (defined(invoker.proguard_config)) {
906 proguard_config = invoker.proguard_config 915 proguard_config = invoker.proguard_config
907 } 916 }
908 if (defined(invoker.proguard_preprocess)) { 917 if (defined(invoker.proguard_preprocess)) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 # java_files: List of .java files included in this library. 989 # java_files: List of .java files included in this library.
981 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 990 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
982 # will be added to java_files and be included in this library. 991 # will be added to java_files and be included in this library.
983 # srcjars: List of srcjars to be included in this library, together with the 992 # srcjars: List of srcjars to be included in this library, together with the
984 # ones obtained from srcjar_deps. 993 # ones obtained from srcjar_deps.
985 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in 994 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in
986 # this directory will be included in the library. This is only supported to 995 # this directory will be included in the library. This is only supported to
987 # ease the gyp->gn conversion and will be removed in the future. 996 # ease the gyp->gn conversion and will be removed in the future.
988 # 997 #
989 # chromium_code: If true, extra analysis warning/errors will be enabled. 998 # chromium_code: If true, extra analysis warning/errors will be enabled.
999 # enable_errorprone: If true, enables the errorprone compiler.
1000 #
990 # jar_excluded_patterns: List of patterns of .class files to exclude from the 1001 # jar_excluded_patterns: List of patterns of .class files to exclude from the
991 # final jar. 1002 # final jar.
992 # 1003 #
993 # proguard_preprocess: If true, proguard preprocessing will be run. This can 1004 # proguard_preprocess: If true, proguard preprocessing will be run. This can
994 # be used to remove unwanted parts of the library. 1005 # be used to remove unwanted parts of the library.
995 # proguard_config: Path to the proguard config for preprocessing. 1006 # proguard_config: Path to the proguard config for preprocessing.
996 # 1007 #
997 # dex_path: If set, the resulting .dex.jar file will be placed under this 1008 # dex_path: If set, the resulting .dex.jar file will be placed under this
998 # path. 1009 # path.
999 # 1010 #
(...skipping 25 matching lines...) Expand all
1025 } 1036 }
1026 if (defined(invoker.chromium_code)) { 1037 if (defined(invoker.chromium_code)) {
1027 chromium_code = invoker.chromium_code 1038 chromium_code = invoker.chromium_code
1028 } 1039 }
1029 if (defined(invoker.datadeps)) { 1040 if (defined(invoker.datadeps)) {
1030 deps = invoker.datadeps 1041 deps = invoker.datadeps
1031 } 1042 }
1032 if (defined(invoker.deps)) { 1043 if (defined(invoker.deps)) {
1033 deps = invoker.deps 1044 deps = invoker.deps
1034 } 1045 }
1046 if (defined(invoker.enable_errorprone)) {
1047 enable_errorprone = invoker.enable_errorprone
1048 }
1035 if (defined(invoker.jar_excluded_patterns)) { 1049 if (defined(invoker.jar_excluded_patterns)) {
1036 jar_excluded_patterns = invoker.jar_excluded_patterns 1050 jar_excluded_patterns = invoker.jar_excluded_patterns
1037 } 1051 }
1038 if (defined(invoker.java_files)) { 1052 if (defined(invoker.java_files)) {
1039 java_files = invoker.java_files 1053 java_files = invoker.java_files
1040 } 1054 }
1041 if (defined(invoker.proguard_config)) { 1055 if (defined(invoker.proguard_config)) {
1042 proguard_config = invoker.proguard_config 1056 proguard_config = invoker.proguard_config
1043 } 1057 }
1044 if (defined(invoker.proguard_preprocess)) { 1058 if (defined(invoker.proguard_preprocess)) {
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 template("uiautomator_test") { 1877 template("uiautomator_test") {
1864 set_sources_assignment_filter([]) 1878 set_sources_assignment_filter([])
1865 if (defined(invoker.testonly)) { 1879 if (defined(invoker.testonly)) {
1866 testonly = invoker.testonly 1880 testonly = invoker.testonly
1867 } 1881 }
1868 assert(target_name != "") 1882 assert(target_name != "")
1869 assert(invoker.deps != [] || true) 1883 assert(invoker.deps != [] || true)
1870 group(target_name) { 1884 group(target_name) {
1871 } 1885 }
1872 } 1886 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698