Skip to content

Draft: resources: Support C23 #embed

Matthias Clasen requested to merge resource-embed into main

Make it possible for glib-compile-resources to generate a source file that uses C23 #embed to include the resource data.

The idea is that you can

glib-compile-resources --generate --target=foo.c --embed-data=foo.gresource foo.xml

clang 19 has (experimental) support for #embed, gcc still waits for a release. Until that happens, mark this as draft.

Edited by Matthias Clasen

Merge request reports

Loading