Closed GeopJr closed 2 years ago
On Collision I use the --sourcedir flag while compiling resources with glib-compile-resources. Should register_resource accept an extra parameter for it or maybe just an extra parameter for extra flags?
--sourcedir
glib-compile-resources
register_resource
eg.
macro register_resource(resource_file, flags) {% `glib-compile-resources #{flags} --target crystal-gio-resource.gresource #{resource_file}` ... register_resource("./data.gresource.xml", "--sourcedir data")
source dir is default to project dir, would be nice to have an extra option for data but I prefer the syntax:
register_resource("./data.gresource.xml", sourcedir: "data")
On Collision I use the
--sourcedir
flag while compiling resources withglib-compile-resources
. Shouldregister_resource
accept an extra parameter for it or maybe just an extra parameter for extra flags?eg.