Compare commits

...

3 commits

Author SHA1 Message Date
Octavian Alexandru Butiu
7cad7d5956 Merge branch 'main' into 'main'
port: Fix build error when building in a flatpak

See merge request jwestman/blueprint-compiler!235
2025-03-25 21:08:17 +00:00
Octavian Alexandru Butiu
fa3b84d612 port: Fix build error when building in a flatpak
If you create a project with gnome builder and port it blueprint and try to build it in flatpak you will get a compiler error that /org/gnome/Example/window.ui.
Setting the source_dir variable in meson fixes this.
2025-03-25 21:08:04 +00:00
Sertonix
394014429e Sort keys in collect-sections.py
This makes sure that the reference_docs.json file
is build reproducible.

Ref https://reproducible-builds.org/
2025-03-24 22:58:43 +00:00
2 changed files with 5 additions and 1 deletions

View file

@ -266,6 +266,7 @@ blueprints = custom_target('blueprints',
arguments in {Colors.UNDERLINE}{meson_file}{Colors.NO_UNDERLINE}:{Colors.CLEAR}
dependencies: blueprints,
source_dir: meson.current_build_dir(),
"""
)
enter()

View file

@ -132,5 +132,8 @@ if __name__ == "__main__":
# print the sections to a json file
with open(outfile, "w") as f:
json.dump(
{name: section.to_json() for name, section in sections.items()}, f, indent=2
{name: section.to_json() for name, section in sections.items()},
f,
indent=2,
sort_keys=True,
)