build: Build resources with meson instead of build.rs

Allows us to get rid of build.rs, which was only used to
compile resources. static_resource.rs is now created by
meson, and the meson path is used for include_bytes!.

Closes https://gitlab.gnome.org/World/podcasts/issues/55
This commit is contained in:
Christopher Davis
2019-03-07 04:35:31 +00:00
committed by Jordan Petridis
parent 395e31ff85
commit 5b2edc73ec
9 changed files with 27 additions and 22 deletions
-3
View File
@@ -12,9 +12,6 @@ export CONFIGURE_ARGS="-Dprofile=development"
# export RUNTIME_REPO="https://sdk.gnome.org/gnome-nightly.flatpakrepo"
flatpak-builder --stop-at=${FLATPAK_MODULE} --force-clean app ${MANIFEST_PATH}
# https://gitlab.gnome.org/World/podcasts/issues/55
# Force regeneration of gresources regardless of artifacts chage
flatpak-builder --run app ${MANIFEST_PATH} glib-compile-resources --sourcedir=podcasts-gtk/resources/ podcasts-gtk/resources/resources.xml
# Build the flatpak repo
flatpak-builder --run app ${MANIFEST_PATH} meson --prefix=/app ${CONFIGURE_ARGS} build