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': 'android_lint_cache', 12 'type': 'none', 13 'actions': [ 14 { 15 'action_name': 'prepare_android_lint_cache', 16 'message': 'Preparing Android lint cache', 17 'variables': { 18 'android_lint_cache_stamp': '<(PRODUCT_DIR)/android_lint_cache/android_lint_cache.stamp', 19 'android_manifest_path': '<(DEPTH)/build/android/AndroidManifest.xml', 20 'result_path': '<(PRODUCT_DIR)/android_lint_cache/result.xml', 21 'platform_xml_path': '<(android_sdk_root)/platform-tools/api/api-versions.xml', 22 }, 23 'inputs': [ 24 '<(DEPTH)/build/android/gyp/util/build_utils.py', 25 '<(DEPTH)/build/android/gyp/lint.py', 26 '<(android_manifest_path)', 27 '<(platform_xml_path)', 28 ], 29 'outputs': [ 30 '<(android_lint_cache_stamp)', 31 '<(result_path)', 32 ], 33 'action': [ 34 'python', '<(DEPTH)/build/android/gyp/lint.py', 35 '--lint-path', '<(android_sdk_root)/tools/lint', 36 '--cache-dir', '<(PRODUCT_DIR)/android_lint_cache', 37 '--android-sdk-version=<(android_sdk_version)', 38 '--platform-xml-path', '<(platform_xml_path)', 39 '--manifest-path', '<(android_manifest_path)', 40 '--product-dir', '<(PRODUCT_DIR)', 41 '--result-path', '<(result_path)', 42 '--stamp', '<(android_lint_cache_stamp)', 43 '--create-cache', 44 '--silent', 45 '--enable' 46 ], 47 }, 48 ], 49 }, 50 ], 51} 52