hopefully more portable way of packaging binary embeds
This commit is contained in:
8
bin/prep-embed.sh
Normal file
8
bin/prep-embed.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/env sh
|
||||
set -e
|
||||
# packages embedded resources with objcopy, so that it is more portable
|
||||
# ld.lld on windows doesn't recognize --format binary, sadly
|
||||
|
||||
objdump=$(objdump -i)
|
||||
bdfname=$(echo "$objdump" | sed -n 2p)
|
||||
objcopy -I binary -O "$bdfname" share/assets/Dernyns256.ttf "$CMAKE_CURRENT_BINARY_DIR/font.o"
|
Reference in New Issue
Block a user