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

Unified Diff: build/android/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: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/BUILD.gn ('k') | build/android/gyp/lint.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/android_lint_cache.gyp
diff --git a/build/android/android_lint_cache.gyp b/build/android/android_lint_cache.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..a8b514eca0f881bb99babdd07325c14483f24bf4
--- /dev/null
+++ b/build/android/android_lint_cache.gyp
@@ -0,0 +1,47 @@
+# Copyright 2016 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.
+
+{
+ 'targets': [
+ {
+ # This target runs a functionally empty lint to create or update the
+ # API versions cache if necessary. This prevents racy creation of the
+ # cache while linting java targets in lint_action.gypi.
+ 'target_name': 'android_lint_cache',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'prepare_android_lint_cache',
+ 'message': 'Preparing Android lint cache',
+ 'variables': {
+ 'android_lint_cache_stamp': '<(PRODUCT_DIR)/android_lint_cache/android_lint_cache.stamp',
+ 'android_manifest_path': '<(DEPTH)/build/android/AndroidManifest.xml',
+ 'cache_file': '<(PRODUCT_DIR)/android_lint_cache/.android/cache/api-versions-6-23.0.1.bin',
+ 'result_path': '<(PRODUCT_DIR)/android_lint_cache/result.xml',
+ },
+ 'inputs': [
+ '<(DEPTH)/build/android/gyp/lint.py',
+ '<(android_manifest_path)',
+ ],
+ 'outputs': [
+ '<(cache_file)',
+ '<(result_path)',
+ ],
+ 'action': [
+ 'python', '<(DEPTH)/build/android/gyp/lint.py',
+ '--lint-path', '<(android_sdk_root)/tools/lint',
+ '--cache-dir', '<(PRODUCT_DIR)/android_lint_cache',
+ '--build-tools-version', '<(android_sdk_build_tools_version)',
+ '--manifest-path', '<(android_manifest_path)',
+ '--product-dir', '<(PRODUCT_DIR)',
+ '--result-path', '<(result_path)',
+ '--stamp', '<(android_lint_cache_stamp)',
+ '--silent',
+ '--enable'
+ ],
+ },
+ ],
+ },
+ ],
+}
« no previous file with comments | « build/android/BUILD.gn ('k') | build/android/gyp/lint.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698