summaryrefslogtreecommitdiff
path: root/build/Android.cpplint.mk
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2016-01-12 11:10:23 -0800
committer Alex Light <allight@google.com> 2016-01-13 00:17:15 +0000
commit80c0d7905ea2763caf4c561d9d033d03f1b3fc83 (patch)
tree156e7645f319aa531ab4ba075d63e26f3bca36ad /build/Android.cpplint.mk
parent39209f8597f427127d698c5c55496c7ba5562468 (diff)
Sort output of a find command in makefile
This should mean that there will be fewer spurious kati rebuilds of the ninja files due to the output changing. Change-Id: I26beb4ae1d95fe591c3854772b804718b41fe53c
Diffstat (limited to 'build/Android.cpplint.mk')
-rw-r--r--build/Android.cpplint.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/build/Android.cpplint.mk b/build/Android.cpplint.mk
index 953cfc091c..a06f45a4fb 100644
--- a/build/Android.cpplint.mk
+++ b/build/Android.cpplint.mk
@@ -16,10 +16,14 @@
include art/build/Android.common_build.mk
-ART_CPPLINT := art/tools/cpplint.py
+ART_CPPLINT := $(LOCAL_PATH)/tools/cpplint.py
ART_CPPLINT_FILTER := --filter=-whitespace/line_length,-build/include,-readability/function,-readability/streams,-readability/todo,-runtime/references,-runtime/sizeof,-runtime/threadsafe_fn,-runtime/printf
ART_CPPLINT_FLAGS := --quiet
-ART_CPPLINT_SRC := $(shell find art -name "*.h" -o -name "*$(ART_CPP_EXTENSION)" | grep -v art/compiler/llvm/generated/ | grep -v art/runtime/elf\.h)
+# This:
+# 1) Gets a list of all .h & .cc files in the art directory.
+# 2) Prepends 'art/' to each of them to make the full name.
+# 3) removes art/runtime/elf.h from the list.
+ART_CPPLINT_SRC := $(filter-out $(LOCAL_PATH)/runtime/elf.h, $(addprefix $(LOCAL_PATH)/, $(call all-subdir-named-files,*.h) $(call all-subdir-named-files,*$(ART_CPP_EXTENSION))))
# "mm cpplint-art" to verify we aren't regressing
.PHONY: cpplint-art