[jasper] Add make loc command

This commit is contained in:
2025-07-25 22:45:14 -05:00
parent f1d4c20c88
commit 90613184e0

View File

@ -65,3 +65,38 @@ git-push-nostalgia:
.PHONY: generate-studio-rsrc .PHONY: generate-studio-rsrc
generate-studio-rsrc: generate-studio-rsrc:
${BC_CMD_ENVRUN} ${BC_PY3} deps/nostalgia/util/scripts/file-to-cpp.py --rsrc src/jasper/tools/rsrc.json ${BC_CMD_ENVRUN} ${BC_PY3} deps/nostalgia/util/scripts/file-to-cpp.py --rsrc src/jasper/tools/rsrc.json
.PHONY: loc
loc:
${BC_PY3} deps/nostalgia/util/scripts/loc.py \
--search-dirs \
src \
--include-exts \
.cpp \
.hpp \
.py \
.s \
.cmake
.PHONY: loc-full
loc-full:
${BC_PY3} deps/nostalgia/util/scripts/loc.py \
--search-dirs \
src \
deps/nostalgia/src \
deps/nostalgia/deps/ox/src \
deps/nostalgia/deps/buildcore \
deps/nostalgia/deps/gbabuildcore \
deps/nostalgia/deps/glutils \
deps/nostalgia/deps/teagba \
--include-exts \
.cpp \
.hpp \
.py \
.s \
.cmake \
--exclude-paths \
deps/nostalgia/deps/teagba/src/gba_crt0.s \
deps/nostalgia/src/olympic/studio/applib/src/font.cpp \
deps/nostalgia/src/olympic/studio/applib/src/font.hpp \
deps/nostalgia/src/nostalgia/studio/icondata.cpp