Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running binaries without installing schemas #389

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ install_data('org.erikreider.swaync.gschema.xml',

subdir('icons')

gnome.compile_schemas()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem to update unless I remove the data dir in the compilation dir. Only works the first time I change the schema

Otherwise LGTM :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is true. I don't really know how to solve that, but I still think this is useful for development on a system without swaync installed (or on nix, where the schemas are isolated).

Copy link
Owner

@ErikReider ErikReider Mar 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might require something like this: https://mesonbuild.com/Reference-manual_functions.html#custom_target with build_always_stale to true should do the trick :)


compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
test('Validate schema file', compile_schemas,
Expand Down
Loading