Files
incubator-pagespeed-ngx/build/android/lint_action.gypi
T
Maks Orlovich 1188016590 Update to using Chromium from git (since there is no more SVN)
Mechanically/high-volume-wise this required duplicating some of the build/
and yasm/ build bits, since they're in the main Chrome repo.
More messy is the url/ situation: there is a version available, but not completely
up-to-date one, in fact one that's older than our base and what we were using from svn,
so we need to do weird compatibility massaging.
(I've also picked up newest RE2, which required some sync up changes).
2016-09-02 11:15:12 -04:00

40 lines
1.2 KiB
Python

# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file is meant to be included into an action to provide a rule to
# run lint on java/class files.
{
'action_name': 'lint_<(_target_name)',
'message': 'Linting <(_target_name)',
'variables': {
'conditions': [
['chromium_code != 0 and android_lint != 0 and never_lint == 0', {
'is_enabled': '--enable',
}, {
'is_enabled': '',
}]
]
},
'inputs': [
'<(DEPTH)/build/android/gyp/util/build_utils.py',
'<(DEPTH)/build/android/gyp/lint.py',
'<(DEPTH)/build/android/lint/suppressions.xml',
'<(DEPTH)/build/android/AndroidManifest.xml',
],
'action': [
'python', '<(DEPTH)/build/android/gyp/lint.py',
'--lint-path=<(android_sdk_root)/tools/lint',
'--config-path=<(DEPTH)/build/android/lint/suppressions.xml',
'--processed-config-path=<(config_path)',
'--manifest-path=<(DEPTH)/build/android/AndroidManifest.xml',
'--result-path=<(result_path)',
'--product-dir=<(PRODUCT_DIR)',
'--src-dirs=>(src_dirs)',
'--classes-dir=<(classes_dir)',
'--stamp=<(stamp_path)',
'<(is_enabled)',
],
}