# # Copyright (C) 2011 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #
include art/build/Android.common_build.mk
# We need to be in art directory to properly initialize ART_CPPLINT_SRC variable.
LOCAL_PATH := $(art_path)
# Use upstream cpplint (toolpath from .repo/manifests/GLOBAL-PREUPLOAD.cfg).
ART_CPPLINT := tools/repohooks/tools/cpplint.py
# This file previously configured many cpplint settings. # Everything that could be moved to CPPLINT.cfg has moved there. # Please add new settings to CPPLINT.cfg over adding new flags in this file.
# No output when there are no errors.
ART_CPPLINT_FLAGS := --quiet
# 1) Get list of all .h & .cc files in the art directory. # 2) Prepends 'art/' to each of them to make the full name.
ART_CPPLINT_SRC := $(addprefix $(LOCAL_PATH)/, $(callall-subdir-named-files,*.h) $(callall-subdir-named-files,*$(ART_CPP_EXTENSION)))
# 1) Get list of all CPPLINT.cfg files in the art directory. # 2) Prepends 'art/' to each of them to make the full name.
ART_CPPLINT_CFG := $(addprefix $(LOCAL_PATH)/, $(callall-subdir-named-files,CPPLINT.cfg))
# "mm cpplint-art" to verify we aren't regressing # - files not touched since the last build are skipped (quite fast).
.PHONY: cpplint-art
cpplint-art: cpplint-art-phony
OUT_CPPLINT := $(TARGET_COMMON_OUT_ROOT)/cpplint
# Build up the list of all targets for linting the ART source files.
ART_CPPLINT_TARGETS :=
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.