summaryrefslogtreecommitdiff
path: root/test cases/frameworks/7 gnome/resources
AgeCommit message (Collapse)Author
2022-10-28gnome: allow custom targets as gdbus-codegen inputsPaolo Bonzini
Custom targets as sources to `gnome.gdbus_codegen` worked until version 0.60 of Meson, but broke in 0.61 because of the conversion to typed_pos_args and typed_kwargs. Reinstate this by adding custom targets to the decorators and annotations. While generators also used to work, they are a bit tricky because gdbus_codegen desugars to two custom_targets and therefore the generator is invoked twice. This should not be a problem, but be explicit and leave that to a separate commit to highlight the problem. Fixes: 53a187ba2 ("modules/gnome: use typed_pos_args for gdbus_codegen", 2021-11-01) Fixes: ef52e6093 ("modules/gnome: use typed_kwargs for gdbus_codegen", 2021-11-08)
2022-09-03tests/7 gnome: Fix incorrect unref of GResourceNirbheek Chauhan
The returned GResource is transfer-none, since the generated function basically calls g_static_resource_get_resource(). It should not be unreffed. Causes an abort on Debian: GLib-GIO:ERROR:../../../gio/gresource.c:1451:g_static_resource_fini: assertion failed: (g_atomic_int_get (&resource->ref_count) >= 2)
2022-06-19update gnome test to cover built gresource filesEli Schwartz
Co-authored-by: Dylan Baker <dylan@pnwbakers.com>
2021-08-31pylint: turn on superflous-parensDylan Baker
We have a lot of these. Some of them are harmless, if unidiomatic, such as `if (condition)`, others are potentially dangerous `assert(...)`, as `assert(condtion)` works as expected, but `assert(condition, message)` will result in an assertion that never triggers, as what you're actually asserting is `bool(tuple[2])`, which will always be true.
2018-10-10gnome.compile_resources: Put dependency directories before current source dirTingPing
This avoids the problem of generated files with the same name as something in source existing and using the wrong file.
2018-02-20gnome: Fix depend_files listing for compile_resourcesNirbheek Chauhan
Also add a unit test that will test all codepaths for old Glib tools versions. Closes https://github.com/mesonbuild/meson/issues/2860
2017-08-13gnome: Allow passing build_by_default: to some functionsNirbheek Chauhan
Closes https://github.com/mesonbuild/meson/issues/2174
2017-02-20gnome: Support configure_file() output in compile_resourcesNirbheek Chauhan
We can't support generated XML files with custom_target() because the dependency scanning happens at configure time, but we *can* support generating them with configure_file(). Closes https://github.com/mesonbuild/meson/issues/1380
2016-11-20gnome.compile_resources(): Add export and install_header kwargsPatrick Griffis
This defaults to not exporting resources as that is generally what you want but that does make this a breaking change. Along with that if you export your resources you would want to install the header.
2016-11-20gnome.compile_resources(): Add ability to output gresource bundlesPatrick Griffis
Closes #1061
2016-11-20gnome: Update required version for glib-compile-resources depfile fixesPatrick Griffis
Note that this version is not yet released
2016-11-14Disable gresource dependency generation as it breaks Ninja.Jussi Pakkanen
2016-10-13gnome: allow use of generated files with compile_resources()Sam Thursfield
This commit adds a 'dependencies' keyword to the gnome.compile_resources() function, which allows your resource blob to depend on files generated at build-time from custom_target() or configure_file() targets. My current use case for this is source data that gets processed with Gettext translation tools before being compiled into the resource blob. This feature only works with GLib version 2.48.2 and above. So the compile_resources() function now detects GLib version and raises an error if the version of GLib being used is too old. The compile_resources() test case is now split into two, so that the existing one can continue to run on systems with old GLib versions (such as Ubuntu Xenial, which the automated tests on travisci.org use), but where new enough GLib is available we also test generating gresource content. The existing warning about glib-compile-resources is now only printed if GLib version is older than 2.50.0 because <https://bugzilla.gnome.org/show_bug.cgi?id=745754> is fixed in the 2.50.0 release.
2016-10-13Use stdout for success message instead of stderr in gresource testSam Thursfield
This doesn't fix an issue, it's just good practice.
2015-03-14Moved different gnome feature tests in their own subdirectories.Jussi Pakkanen