fftools/resources: Add resource manager files with build-time compression
Compression requires zlib to be available, otherwise resources will be included uncompressed - in either case via BIN2C. It can also be disabled via ./configure --disable-resource-compression Size figures: graph.css 7752 graph.css.min 6655 (css is always minified) graph.html 2153 No Compression graph.css.c 40026 graph.css.o 9344 (6688) graph.html.c 13016 graph.html.o 4848 (2186) With Compression graph.css.c 10206 graph.css.o 4368 (1718) graph.html.c 5725 graph.html.o 3632 (971) Numbers in brackets: .rodata size from 'size -Ax -d *.o' Signed-off-by: softworkz <softworkz@hotmail.com>
This commit is contained in:
parent
e2f39671ae
commit
517a805565
9 changed files with 785 additions and 3 deletions
13
fftools/resources/Makefile
Normal file
13
fftools/resources/Makefile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
clean::
|
||||
$(RM) $(CLEANSUFFIXES:%=fftools/resources/%)
|
||||
|
||||
vpath %.html $(SRC_PATH)
|
||||
vpath %.css $(SRC_PATH)
|
||||
|
||||
# Uncomment to prevent deletion during build
|
||||
#.PRECIOUS: %.css.c %.css.min %.css.gz %.css.min.gz %.html.gz %.html.c
|
||||
|
||||
OBJS-resman += \
|
||||
fftools/resources/resman.o \
|
||||
fftools/resources/graph.html.o \
|
||||
fftools/resources/graph.css.o \
|
||||
Loading…
Add table
Add a link
Reference in a new issue