diff options
author | 2025-02-14 05:01:08 +0000 | |
---|---|---|
committer | 2025-02-24 18:20:49 -0800 | |
commit | 8b75fafb8160d29e228e569bfeeeedf462f19899 (patch) | |
tree | a3ad1dc653651f1a3890480468bb5414223e048f | |
parent | 4421e7c33eb255aaa4fdbd442a4e1f17434bfb55 (diff) |
Convert cpplint-art-all to Android.bp
Note: To perform cpplint checks, CPPLINT.cfg must be placed at the
top-level directory. Therefore, CPPLINT.cfg should also be included in
srcs.
Bug: 396027786
Test: m cpplint-art-all
Change-Id: I69c7b99c4a81a78200f2285739a925a09e4925b3
-rw-r--r-- | Android.bp | 12 | ||||
-rw-r--r-- | build/Android.cpplint.mk | 5 |
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. |