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("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/android/internal_rules.gni") | 6 import("//build/config/android/internal_rules.gni") |
7 import("//build/config/dcheck_always_on.gni") | 7 import("//build/config/dcheck_always_on.gni") |
8 import("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
9 | 9 |
10 assert(is_android) | 10 assert(is_android) |
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 # be used to remove unwanted parts of the library. | 1172 # be used to remove unwanted parts of the library. |
1173 # proguard_config: Path to the proguard config for preprocessing. | 1173 # proguard_config: Path to the proguard config for preprocessing. |
1174 # | 1174 # |
1175 # supports_android: If true, Android targets (android_library, android_apk) | 1175 # supports_android: If true, Android targets (android_library, android_apk) |
1176 # may depend on this target. Note: if true, this target must only use the | 1176 # may depend on this target. Note: if true, this target must only use the |
1177 # subset of Java available on Android. | 1177 # subset of Java available on Android. |
1178 # bypass_platform_checks: Disables checks about cross-platform (Java/Android
) | 1178 # bypass_platform_checks: Disables checks about cross-platform (Java/Android
) |
1179 # dependencies for this target. This will allow depending on an | 1179 # dependencies for this target. This will allow depending on an |
1180 # android_library target, for example. | 1180 # android_library target, for example. |
1181 # | 1181 # |
| 1182 # additional_jar_files: Use to package additional files into the output jar. |
| 1183 # Pass a list of length-2 lists with format |
| 1184 # [ [ path_to_file, path_to_put_in_jar ] ] |
| 1185 # |
| 1186 # |
1182 # data_deps, testonly | 1187 # data_deps, testonly |
1183 # | 1188 # |
1184 # Example | 1189 # Example |
1185 # java_library("foo_java") { | 1190 # java_library("foo_java") { |
1186 # java_files = [ | 1191 # java_files = [ |
1187 # "org/chromium/foo/Foo.java", | 1192 # "org/chromium/foo/Foo.java", |
1188 # "org/chromium/foo/FooInterface.java", | 1193 # "org/chromium/foo/FooInterface.java", |
1189 # "org/chromium/foo/FooService.java", | 1194 # "org/chromium/foo/FooService.java", |
1190 # ] | 1195 # ] |
1191 # deps = [ | 1196 # deps = [ |
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2705 supports_android = true | 2710 supports_android = true |
2706 jar_path = "${_output_path}/$jar" | 2711 jar_path = "${_output_path}/$jar" |
2707 } | 2712 } |
2708 } | 2713 } |
2709 | 2714 |
2710 java_group(target_name) { | 2715 java_group(target_name) { |
2711 deps = _resource_targets + _jar_targets | 2716 deps = _resource_targets + _jar_targets |
2712 } | 2717 } |
2713 } | 2718 } |
2714 } | 2719 } |
OLD | NEW |