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

Side by Side Diff: build/android/BUILD.gn

Issue 2336173003: Fix android depfiles to always list GN's outputs[0] (Closed)
Patch Set: fix cronet_package Created 4 years, 3 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
« no previous file with comments | « base/android/jni_generator/jni_generator.py ('k') | build/android/findbugs_diff.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//build/config/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 6
7 if (enable_java_templates) { 7 if (enable_java_templates) {
8 import("//third_party/ijar/ijar.gni") 8 import("//third_party/ijar/ijar.gni")
9 9
10 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" 10 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar"
11 11
12 # Create or update the API versions cache if necessary by running a 12 # Create or update the API versions cache if necessary by running a
13 # functionally empty lint task. This prevents racy creation of the 13 # functionally empty lint task. This prevents racy creation of the
14 # cache while linting java targets in android_lint. 14 # cache while linting java targets in android_lint.
15 android_lint("prepare_android_lint_cache") { 15 android_lint("prepare_android_lint_cache") {
16 android_manifest = "//build/android/AndroidManifest.xml" 16 android_manifest = "//build/android/AndroidManifest.xml"
17 create_cache = true 17 create_cache = true
18 } 18 }
19 19
20 action("find_sun_tools_jar") { 20 action("find_sun_tools_jar") {
21 script = "//build/android/gyp/find_sun_tools_jar.py" 21 script = "//build/android/gyp/find_sun_tools_jar.py"
22 depfile = "$target_gen_dir/$target_name.d" 22 depfile = "$target_gen_dir/$target_name.d"
23 outputs = [ 23 outputs = [
24 depfile,
25 sun_tools_jar_path, 24 sun_tools_jar_path,
26 ] 25 ]
27 args = [ 26 args = [
28 "--depfile", 27 "--depfile",
29 rebase_path(depfile, root_build_dir), 28 rebase_path(depfile, root_build_dir),
30 "--output", 29 "--output",
31 rebase_path(sun_tools_jar_path, root_build_dir), 30 rebase_path(sun_tools_jar_path, root_build_dir),
32 ] 31 ]
33 } 32 }
34 33
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 _target_name = get_path_info(script, "name") + "_wrapper" 147 _target_name = get_path_info(script, "name") + "_wrapper"
149 _wrapper_targets += [ ":$_target_name" ] 148 _wrapper_targets += [ ":$_target_name" ]
150 wrapper_script(_target_name) { 149 wrapper_script(_target_name) {
151 target = script 150 target = script
152 } 151 }
153 } 152 }
154 153
155 group("wrapper_scripts") { 154 group("wrapper_scripts") {
156 deps = _wrapper_targets 155 deps = _wrapper_targets
157 } 156 }
OLDNEW
« no previous file with comments | « base/android/jni_generator/jni_generator.py ('k') | build/android/findbugs_diff.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698