OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 # This file is meant to be included into an action to provide a rule to | |
6 # run lint on java/class files. | |
7 | |
8 { | |
9 'action_name': 'lint_<(_target_name)', | |
10 'message': 'Linting <(_target_name)', | |
11 'variables': { | |
12 'conditions': [ | |
13 ['chromium_code != 0 and android_lint != 0 and never_lint == 0', { | |
14 'is_enabled': '--enable', | |
15 }, { | |
16 'is_enabled': '', | |
17 }] | |
18 ], | |
19 'android_manifest_path%': '<(DEPTH)/build/android/AndroidManifest.xml', | |
20 'resource_dir%': '<(DEPTH)/build/android/ant/empty/res', | |
21 }, | |
22 'inputs': [ | |
23 '<(DEPTH)/build/android/gyp/util/build_utils.py', | |
24 '<(DEPTH)/build/android/gyp/lint.py', | |
25 '<(DEPTH)/build/android/lint/suppressions.xml', | |
26 '<(lint_jar_path)', | |
27 ], | |
28 'action': [ | |
29 'python', '<(DEPTH)/build/android/gyp/lint.py', | |
30 '--lint-path=<(android_sdk_root)/tools/lint', | |
31 '--config-path=<(DEPTH)/build/android/lint/suppressions.xml', | |
32 '--processed-config-path=<(config_path)', | |
33 '--manifest-path=<(android_manifest_path)', | |
34 '--result-path=<(result_path)', | |
35 '--resource-dir=<(resource_dir)', | |
36 '--product-dir=<(PRODUCT_DIR)', | |
37 '--src-dirs=>(src_dirs)', | |
38 '--jar-path=<(lint_jar_path)', | |
39 '--can-fail-build', | |
40 '--stamp=<(stamp_path)', | |
41 '<(is_enabled)', | |
42 ], | |
43 } | |
OLD | NEW |