Skip to content

Commit 21aab7b

Browse files
committed
build: compile schema at build time
this fixes "GLib-GIO-ERROR **: 12:33:32.536: Settings schema 'io.github.vani_tty1.memerist' is not installed" when running `make run` and not building with GNOME Builder
1 parent b6724f5 commit 21aab7b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎Makefile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ $(REL)/build.ninja:
4949
meson setup --buildtype=release $(REL)
5050

5151
run: all
52-
./$(BUILD)/src/$(PROJECT) $(ARGS)
52+
dconf reset -f /io/github/vani_tty1/memerist/
53+
meson devenv -C $(BUILD) ./src/$(PROJECT) $(ARGS)
5354

5455
run-release: release
55-
./$(REL)/src/$(PROJECT) $(ARGS)
56+
dconf reset -f /io/github/vani_tty1/memerist/
57+
meson devenv -C $(REL) ./src/$(PROJECT) $(ARGS)
5658

5759
test: all
5860
meson test -v -C $(BUILD)

‎data/meson.build‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ install_data(
3333
install_dir: get_option('datadir') / 'glib-2.0' / 'schemas',
3434
)
3535

36+
gnome.compile_schemas(
37+
build_by_default: true,
38+
depend_files: files('io.github.vani_tty1.memerist.gschema.xml'),
39+
)
40+
3641
compile_schemas = find_program('glib-compile-schemas', required: false, disabler: true)
3742
test(
3843
'Validate schema file',

0 commit comments

Comments
 (0)