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

Side by Side Diff: build/android/lint_action.gypi

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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 # This file is meant to be included into an action to provide a rule to 5 # This file is meant to be included into an action to provide a rule to
6 # run lint on java/class files. 6 # run lint on java/class files.
7 7
8 { 8 {
9 'action_name': 'lint_<(_target_name)', 9 'action_name': 'lint_<(_target_name)',
10 'message': 'Linting <(_target_name)', 10 'message': 'Linting <(_target_name)',
11 'variables': { 11 'variables': {
12 'conditions': [ 12 'conditions': [
13 ['chromium_code != 0 and android_lint != 0 and never_lint == 0', { 13 ['chromium_code != 0 and android_lint != 0 and never_lint == 0', {
14 'additional_args': ['--enable'], 14 'additional_args': ['--enable'],
15 }, { 15 }, {
16 'additional_args': [], 16 'additional_args': [],
17 }] 17 }]
18 ], 18 ],
19 'android_lint_cache_stamp': '<(PRODUCT_DIR)/android_lint_cache/android_lint_ cache.stamp',
19 'android_manifest_path%': '<(DEPTH)/build/android/AndroidManifest.xml', 20 'android_manifest_path%': '<(DEPTH)/build/android/AndroidManifest.xml',
20 'resource_dir%': '<(DEPTH)/build/android/ant/empty/res', 21 'resource_dir%': '<(DEPTH)/build/android/ant/empty/res',
21 'suppressions_file%': '<(DEPTH)/build/android/lint/suppressions.xml', 22 'suppressions_file%': '<(DEPTH)/build/android/lint/suppressions.xml',
23 'platform_xml_path': '<(android_sdk_root)/platform-tools/api/api-versions.xm l',
22 }, 24 },
23 'inputs': [ 25 'inputs': [
24 '<(DEPTH)/build/android/gyp/util/build_utils.py', 26 '<(DEPTH)/build/android/gyp/util/build_utils.py',
25 '<(DEPTH)/build/android/gyp/lint.py', 27 '<(DEPTH)/build/android/gyp/lint.py',
28 '<(android_lint_cache_stamp)',
26 '<(android_manifest_path)', 29 '<(android_manifest_path)',
27 '<(lint_jar_path)', 30 '<(lint_jar_path)',
28 '<(suppressions_file)', 31 '<(suppressions_file)',
32 '<(platform_xml_path)',
29 ], 33 ],
30 'action': [ 34 'action': [
31 'python', '<(DEPTH)/build/android/gyp/lint.py', 35 'python', '<(DEPTH)/build/android/gyp/lint.py',
32 '--lint-path=<(android_sdk_root)/tools/lint', 36 '--lint-path=<(android_sdk_root)/tools/lint',
33 '--config-path=<(suppressions_file)', 37 '--config-path=<(suppressions_file)',
34 '--processed-config-path=<(config_path)', 38 '--processed-config-path=<(config_path)',
35 '--cache-dir', '<(PRODUCT_DIR)/android_lint_cache', 39 '--cache-dir', '<(PRODUCT_DIR)/android_lint_cache',
36 '--build-tools-version', '<(android_sdk_build_tools_version)', 40 '--platform-xml-path', '<(platform_xml_path)',
37 '--manifest-path=<(android_manifest_path)', 41 '--manifest-path=<(android_manifest_path)',
38 '--result-path=<(result_path)', 42 '--result-path=<(result_path)',
39 '--resource-dir=<(resource_dir)', 43 '--resource-dir=<(resource_dir)',
40 '--product-dir=<(PRODUCT_DIR)', 44 '--product-dir=<(PRODUCT_DIR)',
41 '--src-dirs=>(src_dirs)', 45 '--src-dirs=>(src_dirs)',
42 '--jar-path=<(lint_jar_path)', 46 '--jar-path=<(lint_jar_path)',
43 '--can-fail-build', 47 '--can-fail-build',
44 '--stamp=<(stamp_path)', 48 '--stamp=<(stamp_path)',
45 '<@(additional_args)', 49 '<@(additional_args)',
46 ], 50 ],
47 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698