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/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 | 7 |
8 if (enable_java_templates) { | 8 if (enable_java_templates) { |
9 android_library("build_hooks_java") { | |
10 java_files = [ | |
11 "buildhooks/java/org/chromium/buildhooks/BuildHooks.java", | |
12 "buildhooks/java/org/chromium/buildhooks/Callback.java", | |
13 ] | |
14 no_build_hooks = true | |
15 } | |
16 | |
17 import("//third_party/ijar/ijar.gni") | 9 import("//third_party/ijar/ijar.gni") |
18 | 10 |
19 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" | 11 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" |
20 | 12 |
21 # Create or update the API versions cache if necessary by running a | 13 # Create or update the API versions cache if necessary by running a |
22 # functionally empty lint task. This prevents racy creation of the | 14 # functionally empty lint task. This prevents racy creation of the |
23 # cache while linting java targets in android_lint. | 15 # cache while linting java targets in android_lint. |
24 android_lint("prepare_android_lint_cache") { | 16 android_lint("prepare_android_lint_cache") { |
25 android_manifest = "//build/android/AndroidManifest.xml" | 17 android_manifest = "//build/android/AndroidManifest.xml" |
26 create_cache = true | 18 create_cache = true |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 _target_name = get_path_info(script, "name") + "_wrapper" | 158 _target_name = get_path_info(script, "name") + "_wrapper" |
167 _wrapper_targets += [ ":$_target_name" ] | 159 _wrapper_targets += [ ":$_target_name" ] |
168 wrapper_script(_target_name) { | 160 wrapper_script(_target_name) { |
169 target = script | 161 target = script |
170 } | 162 } |
171 } | 163 } |
172 | 164 |
173 group("wrapper_scripts") { | 165 group("wrapper_scripts") { |
174 deps = _wrapper_targets | 166 deps = _wrapper_targets |
175 } | 167 } |
OLD | NEW |