Commit graph

58 commits

Author SHA1 Message Date
Thibault Saunier 9840417a87 validate: Add a way to run a TestClock in scenarios
A TestClock will be used automatically when a scenario has a
`crank-clock` action.

And make `validate` and `debug-viewer` options features in meson,
no reason they weren't and now we require gst-check to build validate

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/182>
2020-04-27 17:00:12 -04:00
Thibault Saunier d86fa2c44a validate: Enhance error reporting for errors in struct files
Get a sense of files and line numbers in the parsed GstStructure
and take that information when reporting GstValidateAction errors
by letting the user know where the action comes from in the messages.

And accept non-literal string in printing formats.
2020-02-25 16:22:10 -03:00
Tim-Philipp Müller b1268d5ad4 meson: build gir even when cross-compiling if introspection was enabled explicitly
This can be made to work in certain circumstances when
cross-compiling, so default to not building g-i stuff
when cross-compiling, but allow it if introspection was
enabled explicitly via -Dintrospection=enabled.

See gstreamer/gstreamer#454 and gstreamer/gstreamer#381.
2019-10-18 12:31:19 +01:00
Niels De Graef 035d37f762 meson: Bump minimal GLib version to 2.44
This means we can use some newer features and get rid of some
boilerplate code using the G_DECLARE_* macros.

As discussed on IRC, 2.44 is old enough by now to start depending on it.
2019-05-31 23:18:08 +02:00
Thibault Saunier 0a7b23f566 doc: Port to hotdoc
Ideally we want a GstValidate hotdoc plugin... not for now.
2019-05-13 11:37:38 -04:00
Tim-Philipp Müller a1881d4dc2 Back to development 2019-04-19 10:42:30 +01:00
Tim-Philipp Müller 477d1e7d4a Release 1.16.0 2019-04-19 00:36:54 +01:00
Tim-Philipp Müller dd97535391 Release 1.15.90 2019-04-11 01:27:46 +01:00
Nicolas Dufresne 40755c2d90 meson: validate: Fix linking error missing GstBaseTransform
There is a mockdecryptor that has been added into validate-sources and
this element is base on GstBaseTransform. This added a deps against
gstbase which was leading to linking errors when building with meson.
2019-04-01 14:51:31 -04:00
Tim-Philipp Müller 2d24674b6c g-i: pass --quiet to g-ir-scanner
This suppresses the annoying 'g-ir-scanner: link: cc ..' output
that we get even if everything works just fine.

We still get g-ir-scanner warnings and compiler warnings if
we pass this option.
2019-03-23 19:22:29 +00:00
Tim-Philipp Müller bf12d56f14 meson: use new 'python' module instead of deprecated 'python3' one
https://github.com/mesonbuild/meson/pull/4169
2019-03-21 13:06:00 +00:00
Tim-Philipp Müller 4893d6d561 Back to development 2019-03-04 09:15:11 +00:00
Tim-Philipp Müller 3fface0275 Release 1.15.2 2019-02-26 19:44:21 +00:00
Tim-Philipp Müller 2dd8395ee8 Release 1.15.1 2019-01-17 10:01:50 +00:00
Matthew Waters 1559e1aec7 gst: allow building static libraries for e.g. Android/iOS 2018-12-10 16:47:50 +11:00
Nirbheek Chauhan a86c36b9a9 meson: Add a feature option for tests
This autodetection is needed on iOS inside Cerbero where
gstreamer-check-1.0 is not available.
2018-09-01 12:09:32 +05:30
Nirbheek Chauhan 4ac1362157 meson: gst_version_* are ints, convert them early
Fixes error reported by ceyusa:

gst-devtools/meson.build:23:0: ERROR:  Multiplication works only with integers.
2018-08-31 15:21:05 +05:30
Nirbheek Chauhan d035501228 meson: Maintain macOS ABI through dylib versioning
Requires Meson 0.48, but the feature will be ignored on older versions
so it's safe to add it without bumping the requirement.

Documentation:
https://github.com/mesonbuild/meson/blob/master/docs/markdown/Reference-manual.md#shared_library
2018-08-31 14:52:04 +05:30
Nirbheek Chauhan fa3648d5fe meson: Convert common options to feature options
The rest will be converted later, these are necessary for gst-build to
set options correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=795107
2018-07-27 18:49:13 +05:30
Nirbheek Chauhan 21e7ed5025 meson: Update option names to omit disable_ prefixes
Also yield common options to the outer project (gst-build in our case)
so that they don't have to be set manually.
2018-05-05 20:27:50 +05:30
Thibault Saunier cb4342b8f2 debug-viewer: Port to meson
This allows us to run unit test as part of ninja test and have versionning
in sync. Also the goal is to have everything inside meson.

https://bugzilla.gnome.org/show_bug.cgi?id=795282
2018-04-15 20:50:22 -03:00
Tim-Philipp Müller dede83a542 Back to development 2018-03-20 10:57:53 +00:00
Tim-Philipp Müller 207c447a40 Release 1.14.0 2018-03-19 20:29:08 +00:00
Thibault Saunier 769a9f72e2 validate: Fix the way we set the testsuite version
The testuite version should be 'master' during development
and the version number on releases, during the pre-release
cycle, there is no nano version, thus our detection handling
was mistaking.
2018-03-13 21:14:56 -03:00
Tim-Philipp Müller e158fc6bd1 meson: update version 2018-03-13 22:20:52 +00:00
Mathieu Duponchelle 9a7591397a meson: enable more warnings 2018-03-01 18:50:22 +01:00
Tim-Philipp Müller d8f7969e41 meson: simplify GST_DISABLE_GST_DEBUG check and don't use add_global_*
add_global_arguments() can't be used in subprojects. It's
entirely possible that devtools is a subproject but gstreamer
is picked up from an installed location, so we should
really use add_project_arguments() in both cases.
2018-02-21 19:50:33 +00:00
Tim-Philipp Müller 32d146b7de Fix versions 2018-02-15 21:04:21 +00:00
Tim-Philipp Müller 41abaf99a9 Back to development 2018-02-15 19:44:37 +00:00
Tim-Philipp Müller dab15df5eb Release 1.13.1 2018-02-15 18:28:13 +00:00
Tim-Philipp Müller 3bc6d34859 meson: use -fno-strict-aliasing where supported
https://bugzilla.gnome.org/show_bug.cgi?id=769183
2018-01-30 20:38:15 +00:00
Tim-Philipp Müller a0ff0095b5 meson: hide symbols by default unless explicitly exported 2017-08-12 12:08:09 +01:00
Tim-Philipp Müller b6cd37f142 meson: find python3 via python3 module
https://bugzilla.gnome.org/show_bug.cgi?id=783198
2017-07-07 12:26:40 +01:00
Thibault Saunier 263d8bc8fd meson: Allow using glib as a subproject 2017-06-27 16:50:35 -04:00
Sebastian Dröge 17f2220311 Back to development 2017-05-04 18:59:42 +03:00
Sebastian Dröge 4b61eb4b41 Release 1.11.91 2017-04-27 17:54:05 +03:00
Sebastian Dröge 91d2d2dc2b Update meson.build version to 1.11.90 too 2017-04-10 17:06:43 +03:00
Thibault Saunier bf21c2f64e validate:launcher: Fix typo in meson build definitions 2017-02-27 12:12:38 -03:00
Sebastian Dröge cd75b4d7ad meson: Update version 2017-02-24 16:00:19 +02:00
Thibault Saunier 99ee2dc3bb meson:validate: Build validate plugins 2017-01-31 08:15:38 -03:00
Tim-Philipp Müller a7343e4329 meson: bump version 2017-01-13 12:39:29 +00:00
Thibault Saunier 0f865aca82 validate: Fix setting of the testsuite version
If nano is set, it means we are running in git/unreleased version
2017-01-06 13:14:25 -03:00
Thibault Saunier 16d060a81d meson: Support building without Gst debug 2016-12-09 18:15:08 -03:00
Sebastian Dröge b46e80080f meson: Move vs_module_defs_dir to the validate subdirectory
It's validate/win32/ and not just win32/

https://bugzilla.gnome.org/show_bug.cgi?id=774638
2016-11-19 12:36:32 +02:00
Scott D Phillips 55d0e7a607 meson: Add ignored warnings for MSVC
https://bugzilla.gnome.org/show_bug.cgi?id=774656
2016-11-18 09:40:55 +00:00
Scott D Phillips 9b18bafc68 Enable building with MSVC
https://bugzilla.gnome.org/show_bug.cgi?id=774638
2016-11-17 17:36:03 -03:00
Thibault Saunier cf1404814a meson: Unset the plugin paths to generate the .gir files
Avoiding problems when using subproject:

'Failed to load plugin something.so file too short'
2016-11-04 14:45:38 -03:00
Thibault Saunier febbff72be validate: Allow using json-glib as a subproject 2016-11-02 18:11:56 -03:00
Tim-Philipp Müller 3dcaa36b81 meson: update version 2016-11-01 18:11:13 +00:00
Scott D Phillips 99a1f3911d meson: Don't depend on gstreamer-check-1.0 on windows
https://bugzilla.gnome.org/show_bug.cgi?id=773114
2016-10-26 17:51:27 +05:30