summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.bp12
-rw-r--r--build/Android.cpplint.mk5
2 files changed, 12 insertions, 5 deletions
diff --git a/Android.bp b/Android.bp
index 095d0aff3d..3c384f6d95 100644
--- a/Android.bp
+++ b/Android.bp
@@ -60,3 +60,15 @@ phony_rule {
default: true,
}),
}
+
+genrule {
+ name: "cpplint-art-all",
+ tools: ["cpplint"],
+ srcs: [
+ "**/*.h",
+ "**/*.cc",
+ "CPPLINT.cfg",
+ ],
+ out: ["cpplint_output.txt"],
+ cmd: "$(location cpplint) --quiet art/**/*.h art/**/*.cc > $(out)",
+}
diff --git a/build/Android.cpplint.mk b/build/Android.cpplint.mk
index 6eeaa49d8d..f364baf9b1 100644
--- a/build/Android.cpplint.mk
+++ b/build/Android.cpplint.mk
@@ -42,11 +42,6 @@ ART_CPPLINT_CFG := $(addprefix $(LOCAL_PATH)/, $(call all-subdir-named-files,CPP
.PHONY: cpplint-art
cpplint-art: cpplint-art-phony
-# "mm cpplint-art-all" to manually execute cpplint.py on all files (very slow).
-.PHONY: cpplint-art-all
-cpplint-art-all:
- $(ART_CPPLINT) $(ART_CPPLINT_FLAGS) $(ART_CPPLINT_SRC)
-
OUT_CPPLINT := $(TARGET_COMMON_OUT_ROOT)/cpplint
# Build up the list of all targets for linting the ART source files.