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

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

Issue 1815563005: [Android] Run lint using a cache in the output directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: prereview 2 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
(Empty)
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
3 # found in the LICENSE file.
4
5 {
6 'targets': [
7 {
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
10 # cache while linting java targets in lint_action.gypi.
11 'target_name': 'lint_cache',
12 'type': 'none',
13 'actions': [
14 {
15 'action_name': 'prepare_lint_cache',
16 'message': 'Preparing Android lint cache',
17 'variables': {
18 'android_manifest_path': '<(DEPTH)/build/android/AndroidManifest.xml ',
19 'cache_file': '<(PRODUCT_DIR)/lint_cache/.android/cache/api-versions -6-23.0.1.bin',
20 'lint_cache_stamp': '<(PRODUCT_DIR)/lint_cache/lint_cache.stamp',
21 'result_path': '<(PRODUCT_DIR)/lint_cache/result.xml',
22 },
23 'inputs': [
24 '<(DEPTH)/build/android/gyp/lint.py',
25 '<(android_manifest_path)',
26 ],
27 'outputs': [
28 '<(cache_file)',
29 '<(result_path)',
30 ],
31 'action': [
32 'python', '<(DEPTH)/build/android/gyp/lint.py',
33 '--lint-path', '<(android_sdk_root)/tools/lint',
34 '--cache-dir', '<(PRODUCT_DIR)/lint_cache',
35 '--build-tools-version', '<(android_sdk_build_tools_version)',
36 '--manifest-path', '<(android_manifest_path)',
37 '--product-dir', '<(PRODUCT_DIR)',
38 '--result-path', '<(result_path)',
39 '--stamp', '<(lint_cache_stamp)',
40 '--silent',
41 '--enable'
42 ],
43 },
44 ],
45 },
46 ],
47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698