From fa5e785760254860c0a10195d1e0cb566314a27a Mon Sep 17 00:00:00 2001 From: Anghelo Carvajal Date: Fri, 2 Apr 2021 19:07:29 -0300 Subject: [PATCH] Add needed rules for prerenders extraction (#752) * update makefile Signed-off-by: Angie * change jfif to jpg Signed-off-by: angie --- .gitignore | 1 + Makefile | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 1348d0d54f..e9a6cda009 100644 --- a/.gitignore +++ b/.gitignore @@ -47,6 +47,7 @@ tools/*dSYM/ *.ia16.png *.ci4.png *.ci8.png +*.jpg *.mdli *.anmi *.obj diff --git a/Makefile b/Makefile index 844522e8da..b511e33b61 100644 --- a/Makefile +++ b/Makefile @@ -119,6 +119,7 @@ TEXTURE_FILES_GRAYA8 := $(foreach dir,$(ASSET_BIN_DIRS),$(wildcard $(dir)/*.ia8. TEXTURE_FILES_GRAYA16 := $(foreach dir,$(ASSET_BIN_DIRS),$(wildcard $(dir)/*.ia16.png)) TEXTURE_FILES_CI4 := $(foreach dir,$(ASSET_BIN_DIRS),$(wildcard $(dir)/*.ci4.png)) TEXTURE_FILES_CI8 := $(foreach dir,$(ASSET_BIN_DIRS),$(wildcard $(dir)/*.ci8.png)) +TEXTURE_FILES_JPG := $(foreach dir,$(ASSET_BIN_DIRS),$(wildcard $(dir)/*.jpg)) TEXTURE_FILES_OUT := $(foreach f,$(TEXTURE_FILES_RGBA32:.rgba32.png=.rgba32.inc.c),build/$f) \ $(foreach f,$(TEXTURE_FILES_RGBA16:.rgb5a1.png=.rgb5a1.inc.c),build/$f) \ $(foreach f,$(TEXTURE_FILES_GRAY4:.i4.png=.i4.inc.c),build/$f) \ @@ -128,6 +129,7 @@ TEXTURE_FILES_OUT := $(foreach f,$(TEXTURE_FILES_RGBA32:.rgba32.png=.rgba32.inc. $(foreach f,$(TEXTURE_FILES_GRAYA16:.ia16.png=.ia16.inc.c),build/$f) \ $(foreach f,$(TEXTURE_FILES_CI4:.ci4.png=.ci4.inc.c),build/$f) \ $(foreach f,$(TEXTURE_FILES_CI8:.ci8.png=.ci8.inc.c),build/$f) \ + $(foreach f,$(TEXTURE_FILES_JPG:.jpg=.jpg.inc.c),build/$f) \ # create build directories $(shell mkdir -p build/baserom $(foreach dir,$(SRC_DIRS) $(ASM_DIRS) $(ASSET_BIN_DIRS),build/$(dir))) @@ -279,3 +281,6 @@ build/%.ci8.inc.c: %.ci8.png build/assets/%.bin.inc.c: assets/%.bin $(ZAPD) bblb -i $< -o $@ + +build/assets/%.jpg.inc.c: assets/%.jpg + $(ZAPD) bren -i $< -o $@ -eh