From 63ff1bea9bb1e87a7e2643f680d04f2b9c00d072 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 27 Dec 2024 21:56:14 +0100 Subject: Port to GResource --- resources/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 resources/Makefile (limited to 'resources/Makefile') diff --git a/resources/Makefile b/resources/Makefile new file mode 100644 index 0000000..c781ec6 --- /dev/null +++ b/resources/Makefile @@ -0,0 +1,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} -- cgit v1.2.3