| OLD | NEW |
| 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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 # | 726 # |
| 727 # bypass_platform_checks: Disables checks about cross-platform (Java/Android) | 727 # bypass_platform_checks: Disables checks about cross-platform (Java/Android) |
| 728 # dependencies for this target. This will allow depending on an | 728 # dependencies for this target. This will allow depending on an |
| 729 # android_library target, for example. | 729 # android_library target, for example. |
| 730 # | 730 # |
| 731 # chromium_code: If true, extra analysis warning/errors will be enabled. | 731 # chromium_code: If true, extra analysis warning/errors will be enabled. |
| 732 # | 732 # |
| 733 # datadeps, testonly | 733 # datadeps, testonly |
| 734 # | 734 # |
| 735 # Example | 735 # Example |
| 736 # java_library("foo") { | 736 # java_binary("foo") { |
| 737 # java_files = [ "org/chromium/foo/FooMain.java" ] | 737 # java_files = [ "org/chromium/foo/FooMain.java" ] |
| 738 # deps = [ ":bar_java" ] | 738 # deps = [ ":bar_java" ] |
| 739 # main_class = "org.chromium.foo.FooMain" | 739 # main_class = "org.chromium.foo.FooMain" |
| 740 # } | 740 # } |
| 741 template("java_binary") { | 741 template("java_binary") { |
| 742 set_sources_assignment_filter([]) | 742 set_sources_assignment_filter([]) |
| 743 | 743 |
| 744 # TODO(cjhopman): This should not act like a java_library for dependents (i.e. | 744 # TODO(cjhopman): This should not act like a java_library for dependents (i.e. |
| 745 # dependents shouldn't get the jar in their classpath, etc.). | 745 # dependents shouldn't get the jar in their classpath, etc.). |
| 746 java_library_impl(target_name) { | 746 java_library_impl(target_name) { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 } | 827 } |
| 828 if (defined(invoker.srcjar_deps)) { | 828 if (defined(invoker.srcjar_deps)) { |
| 829 srcjar_deps = invoker.srcjar_deps | 829 srcjar_deps = invoker.srcjar_deps |
| 830 } | 830 } |
| 831 if (defined(invoker.srcjars)) { | 831 if (defined(invoker.srcjars)) { |
| 832 srcjars = invoker.srcjars | 832 srcjars = invoker.srcjars |
| 833 } | 833 } |
| 834 } | 834 } |
| 835 } | 835 } |
| 836 | 836 |
| 837 # Declare an java library target | 837 # Declare a java library target |
| 838 # | 838 # |
| 839 # Variables | 839 # Variables |
| 840 # deps: Specifies the dependencies of this target. Java targets in this list | 840 # deps: Specifies the dependencies of this target. Java targets in this list |
| 841 # will be added to the javac classpath. | 841 # will be added to the javac classpath. |
| 842 # | 842 # |
| 843 # java_files: List of .java files included in this library. | 843 # java_files: List of .java files included in this library. |
| 844 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars | 844 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars |
| 845 # will be added to java_files and be included in this library. | 845 # will be added to java_files and be included in this library. |
| 846 # srcjars: List of srcjars to be included in this library, together with the | 846 # srcjars: List of srcjars to be included in this library, together with the |
| 847 # ones obtained from srcjar_deps. | 847 # ones obtained from srcjar_deps. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 if (defined(invoker.jar_path)) { | 925 if (defined(invoker.jar_path)) { |
| 926 jar_path = invoker.jar_path | 926 jar_path = invoker.jar_path |
| 927 } | 927 } |
| 928 | 928 |
| 929 if (defined(invoker.supports_android) && invoker.supports_android) { | 929 if (defined(invoker.supports_android) && invoker.supports_android) { |
| 930 supports_android = true | 930 supports_android = true |
| 931 } | 931 } |
| 932 } | 932 } |
| 933 } | 933 } |
| 934 | 934 |
| 935 # Declare an java library target for a prebuilt jar | 935 # Declare a java library target for a prebuilt jar |
| 936 # | 936 # |
| 937 # Variables | 937 # Variables |
| 938 # deps: Specifies the dependencies of this target. Java targets in this list | 938 # deps: Specifies the dependencies of this target. Java targets in this list |
| 939 # will be added to the javac classpath. | 939 # will be added to the javac classpath. |
| 940 # jar_path: Path to the prebuilt jar. | 940 # jar_path: Path to the prebuilt jar. |
| 941 # proguard_preprocess: If true, proguard preprocessing will be run. This can | 941 # proguard_preprocess: If true, proguard preprocessing will be run. This can |
| 942 # be used to remove unwanted parts of the library. | 942 # be used to remove unwanted parts of the library. |
| 943 # proguard_config: Path to the proguard config for preprocessing. | 943 # proguard_config: Path to the proguard config for preprocessing. |
| 944 # | 944 # |
| 945 # Example | 945 # Example |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1798 template("uiautomator_test") { | 1798 template("uiautomator_test") { |
| 1799 set_sources_assignment_filter([]) | 1799 set_sources_assignment_filter([]) |
| 1800 if (defined(invoker.testonly)) { | 1800 if (defined(invoker.testonly)) { |
| 1801 testonly = invoker.testonly | 1801 testonly = invoker.testonly |
| 1802 } | 1802 } |
| 1803 assert(target_name != "") | 1803 assert(target_name != "") |
| 1804 assert(invoker.deps != [] || true) | 1804 assert(invoker.deps != [] || true) |
| 1805 group(target_name) { | 1805 group(target_name) { |
| 1806 } | 1806 } |
| 1807 } | 1807 } |
| OLD | NEW |