-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a ashpd-demo.devel that can run from the meson builddir
Running the demo from the builddir fails with the missing gresources file. Hack around this by copying the binary into a ashpd-demo.devel and, if argv0 ends with .devel, loading the gresources file from the meson builddir instead.
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ global_conf.set_quoted('PROFILE', profile) | |
global_conf.set_quoted('VERSION', version + version_suffix) | ||
global_conf.set_quoted('GETTEXT_PACKAGE', gettext_package) | ||
global_conf.set_quoted('LOCALEDIR', localedir) | ||
global_conf.set_quoted('BUILDDATADIR', meson.project_build_root() / 'data') | ||
config = configure_file( | ||
input: 'config.rs.in', | ||
output: 'config.rs', | ||
|
@@ -48,5 +49,7 @@ cargo_build = custom_target( | |
cargo_options, | ||
'&&', | ||
'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@', | ||
'&&', | ||
'cp', 'src' / rust_target / meson.project_name(), '@[email protected]', | ||
] | ||
) |