Chameleon

Chameleon Commit Details

Date:2010-07-25 00:40:03 (13 years 8 months ago)
Author:Evan Lojewski
Commit:228
Parents: 227
Message:Modified makefile to generate an array of embeded pngs
Changes:
M/branches/zef/i386/boot2/Makefile

File differences

branches/zef/i386/boot2/Makefile
9595
9696
9797
98
99
100
101
102
103
104
105
106
107
108
109
110
98111
99112
100113
@echo "#define __BOOT2_ART_H" >> $(SYMROOT)/art.h
@cd $(SYMROOT)/embed && find . -name 'theme.plist' -exec xxd -i >> $(SYMROOT)/art.h {} \;
@cd $(SYMROOT)/embed && find . -name '*.png' -exec xxd -i >> $(SYMROOT)/art.h {} \;
@echo "typedef struct {" >> $(SYMROOT)/art.h
@echo "charname[32];" >> $(SYMROOT)/art.h
@echo "unsigned char*pngdata;" >> $(SYMROOT)/art.h
@echo "unsigned int*length;" >> $(SYMROOT)/art.h
@echo "} embededpng_t;" >> $(SYMROOT)/art.h
@echo "" >> $(SYMROOT)/art.h
@echo "embededpng_t embededImages[] = {" >> $(SYMROOT)/art.h
cd $(SYMROOT)/embed && find . -name '*.png' -exec sh -c "echo {.name = \`echo '\"'\`\`echo '{}' | cut -f 2 -d \"/\" | cut -f 1 -d \".\" \`\`echo '\"'\`, .pngdata = \`echo {} | tr / _ | tr . _ \`, .length = \&\`echo {} | tr / _ | tr . _ \`_len}," \; >> $(SYMROOT)/art.h
@echo "};" >> $(SYMROOT)/art.h
@echo "#endif /* !__BOOT2_ART_H */" >> $(SYMROOT)/art.h ;\
rm -rf $(SYMROOT)/embed ;\

Archive Download the corresponding diff file

Revision: 228