summaryrefslogtreecommitdiff
path: root/lib/libutee/tui/sub.mk
blob: 05343146efc698488fd67a2a176d9ab98c2b09b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
srcs-y += utf8.c
srcs-y += image.c
srcs-y += image_png.c
srcs-y += font.c

# Need to locate font.h from generated sources
incdirs-y += .

gensrcs-y += default_bold
produce-additional-default_bold = default_bold.h
produce-default_bold = default_bold.c
depends-default_bold := scripts/render_font.py \
		$(sub-dir)/fonts/amble/Amble-Bold.ttf
recipe-default_bold := scripts/render_font.py \
		--font_file $(sub-dir)/fonts/amble/Amble-Bold.ttf \
		--font_size 20 --font_name default_bold \
		--out_dir $(sub-dir-out)
cleanfiles += $(sub-dir-out)/default_bold.c $(sub-dir-out)/default_bold.h

gensrcs-y += default_regular
produce-additional-default_regular = default_regular.h
produce-default_regular = default_regular.c
depends-default_regular := scripts/render_font.py \
		$(sub-dir)/fonts/amble/Amble-Regular.ttf
recipe-default_regular := scripts/render_font.py \
		--font_file $(sub-dir)/fonts/amble/Amble-Regular.ttf \
		--font_size 20 --font_name default_regular \
		--out_dir $(sub-dir-out)
cleanfiles += $(sub-dir-out)/default_regular.c $(sub-dir-out)/default_regular.h