2023-07-08 13:31:00 -07:00
|
|
|
#!/bin/bash
|
2023-04-24 15:28:39 -07:00
|
|
|
pushd "$(dirname "$0")"
|
2023-04-24 13:45:06 -07:00
|
|
|
if [ -z "$CXX" ]; then
|
|
|
|
export CXX=g++
|
|
|
|
fi
|
|
|
|
add_image() {
|
|
|
|
./btcc -nocompress $1 $2 > $2.h
|
|
|
|
}
|
|
|
|
add_font() {
|
|
|
|
./btcc -base85 $1 $2 > $2.h
|
|
|
|
}
|
2023-04-24 15:28:39 -07:00
|
|
|
$CXX ../imgui/misc/fonts/binary_to_compressed_c.cpp -o btcc
|
2023-04-24 13:45:06 -07:00
|
|
|
add_font forkawesome-webfont.ttf forkawesome
|
|
|
|
add_image icon.png icon
|
|
|
|
rm btcc
|
2023-04-24 15:28:39 -07:00
|
|
|
popd
|