Make embedded font file during compilation instead of distributing it.
This commit is contained in:
@@ -18,7 +18,7 @@ CPP := g++
|
||||
all: $(PUIOBJ)
|
||||
|
||||
clean:
|
||||
rm $(PUIOBJ) $(PUIO)
|
||||
rm $(PUIOBJ) $(PUIO) font/vera.h
|
||||
|
||||
depend:
|
||||
makedepend $(PUISRC)
|
||||
@@ -27,6 +27,11 @@ depend:
|
||||
# $(CPP) -dynamiclib $(LDFLAGS) -static $(PUIOBJ) -o $@
|
||||
# $(CPP) $(LDFLAGS) -shared -fPIC -Wl,-soname,$(PUIO) $(PUIOBJ) -o $@
|
||||
|
||||
textures.cpp: font/vera.h
|
||||
|
||||
font/vera.h:
|
||||
xxd -i font/Vera.ttf > font/vera.h
|
||||
|
||||
%.o: %.cpp
|
||||
$(CPP) -c -fPIC $(CFLAGS) $< -o $@
|
||||
|
||||
|
Reference in New Issue
Block a user