diff options
-rw-r--r-- | Android.bp | 12 | ||||
-rw-r--r-- | build/Android.cpplint.mk | 5 |
2 files changed, 5 insertions, 12 deletions
diff --git a/Android.bp b/Android.bp index 3c384f6d95..095d0aff3d 100644 --- a/Android.bp +++ b/Android.bp @@ -60,15 +60,3 @@ 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 f364baf9b1..6eeaa49d8d 100644 --- a/build/Android.cpplint.mk +++ b/build/Android.cpplint.mk @@ -42,6 +42,11 @@ 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. |