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

Side by Side Diff: build/android/android_lint_cache.gyp

Issue 1828693002: Reland of Android: Run lint using a cache in the output directory (fix-up) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 # This target runs a functionally empty lint to create or update the 8 # This target runs a functionally empty lint to create or update the
9 # API versions cache if necessary. This prevents racy creation of the 9 # API versions cache if necessary. This prevents racy creation of the
10 # cache while linting java targets in lint_action.gypi. 10 # cache while linting java targets in lint_action.gypi.
11 'target_name': 'android_lint_cache', 11 'target_name': 'android_lint_cache',
12 'type': 'none', 12 'type': 'none',
13 'actions': [ 13 'actions': [
14 { 14 {
15 'action_name': 'prepare_android_lint_cache', 15 'action_name': 'prepare_android_lint_cache',
16 'message': 'Preparing Android lint cache', 16 'message': 'Preparing Android lint cache',
17 'variables': { 17 'variables': {
18 'android_lint_cache_stamp': '<(PRODUCT_DIR)/android_lint_cache/andro id_lint_cache.stamp', 18 'android_lint_cache_stamp': '<(PRODUCT_DIR)/android_lint_cache/andro id_lint_cache.stamp',
19 'android_manifest_path': '<(DEPTH)/build/android/AndroidManifest.xml ', 19 'android_manifest_path': '<(DEPTH)/build/android/AndroidManifest.xml ',
20 'cache_file': '<(PRODUCT_DIR)/android_lint_cache/.android/cache/api- versions-6-23.0.1.bin',
21 'result_path': '<(PRODUCT_DIR)/android_lint_cache/result.xml', 20 'result_path': '<(PRODUCT_DIR)/android_lint_cache/result.xml',
21 'platform_xml_path': '<(android_sdk_root)/platform-tools/api/api-ver sions.xml',
22 }, 22 },
23 'inputs': [ 23 'inputs': [
24 '<(DEPTH)/build/android/gyp/util/build_utils.py',
24 '<(DEPTH)/build/android/gyp/lint.py', 25 '<(DEPTH)/build/android/gyp/lint.py',
25 '<(android_manifest_path)', 26 '<(android_manifest_path)',
27 '<(platform_xml_path)',
26 ], 28 ],
27 'outputs': [ 29 'outputs': [
28 '<(cache_file)', 30 '<(android_lint_cache_stamp)',
29 '<(result_path)', 31 '<(result_path)',
30 ], 32 ],
31 'action': [ 33 'action': [
32 'python', '<(DEPTH)/build/android/gyp/lint.py', 34 'python', '<(DEPTH)/build/android/gyp/lint.py',
33 '--lint-path', '<(android_sdk_root)/tools/lint', 35 '--lint-path', '<(android_sdk_root)/tools/lint',
34 '--cache-dir', '<(PRODUCT_DIR)/android_lint_cache', 36 '--cache-dir', '<(PRODUCT_DIR)/android_lint_cache',
35 '--build-tools-version', '<(android_sdk_build_tools_version)', 37 '--platform-xml-path', '<(platform_xml_path)',
36 '--manifest-path', '<(android_manifest_path)', 38 '--manifest-path', '<(android_manifest_path)',
37 '--product-dir', '<(PRODUCT_DIR)', 39 '--product-dir', '<(PRODUCT_DIR)',
38 '--result-path', '<(result_path)', 40 '--result-path', '<(result_path)',
39 '--stamp', '<(android_lint_cache_stamp)', 41 '--stamp', '<(android_lint_cache_stamp)',
42 '--create-cache',
40 '--silent', 43 '--silent',
41 '--enable' 44 '--enable'
42 ], 45 ],
43 }, 46 },
44 ], 47 ],
45 }, 48 },
46 ], 49 ],
47 } 50 }
OLDNEW
« no previous file with comments | « build/android/BUILD.gn ('k') | build/android/gyp/lint.py » ('j') | build/android/gyp/lint.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698