blob: c781ec6a4e93706eaeff0b8a107c84f5da04a883 (
plain)
1
2
3
4
5
6
7
8
9
10
|
INPUT_FILE = icons.xml
GRESOURCE_FILE = icons.gresource
INC_FILE = icons.inc
all::
glib-compile-resources ${INPUT_FILE}
echo 'const gresource_icons: array of byte = (' > ${INC_FILE}
od -Anone -v -tx1 ${GRESOURCE_FILE} | sed 's/\([0-9a-f][0-9a-f]\)/$$\1,/g' >> ${INC_FILE}
truncate --size=-2 ${INC_FILE}
echo ');' >> ${INC_FILE}
|