mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
validate: Also mkenums with autotools
And fix the build with stricter gcc arguments.
This commit is contained in:
parent
b9d6f9df9e
commit
8ef1050d1e
3 changed files with 25 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
built_header_make = gst-validate-enum-types.h
|
||||
built_source_make = gst-validate-enum-types.c
|
||||
|
||||
source_c = \
|
||||
gst-validate-runner.c \
|
||||
gst-validate-reporter.c \
|
||||
|
@ -39,6 +42,25 @@ source_h = \
|
|||
gst-validate-scenario.h \
|
||||
gst-validate-utils.h \
|
||||
gst-validate-media-info.h
|
||||
#
|
||||
# do not put files in the distribution that are generated
|
||||
nodist_libgstvalidate_@GST_API_VERSION@_la_SOURCES = $(built_source_make)
|
||||
nodist_libgstvalidate_@GST_API_VERSION@include_HEADERS = $(built_header_make)
|
||||
|
||||
gst-validate-enum-types.h: $(source_h)
|
||||
$(AM_V_GEN)$(GLIB_MKENUMS) \
|
||||
--template gst-validate-enum-types.h.template \
|
||||
$^ > gst-validate-enum-types.h
|
||||
|
||||
gst-validate-enum-types.c: $(source_h)
|
||||
$(AM_V_GEN)$(GLIB_MKENUMS) \
|
||||
--template gst-validate-enum-types.c.template \
|
||||
$^ > gst-validate-enum-types.c
|
||||
|
||||
# BUILT_SOURCES are built on make all/check/install before all other targets
|
||||
BUILT_SOURCES = \
|
||||
$(built_header_make) \
|
||||
$(built_source_make)
|
||||
|
||||
noinst_HEADERS = \
|
||||
gettext.h \
|
||||
|
@ -75,7 +97,7 @@ libgstvalidatetracer_la_LIBADD = \
|
|||
$(GST_ALL_LIBS) $(GIO_LIBS) $(GST_PBUTILS_LIBS) \
|
||||
$(JSON_GLIB_LIBS) $(GLIB_LIBS) $(LIBM)
|
||||
|
||||
CLEANFILES =
|
||||
CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles) *.gcno *.gcda *.gcov *.gcov.out
|
||||
|
||||
if HAVE_INTROSPECTION
|
||||
BUILT_GIRSOURCES = GstValidate-@GST_API_VERSION@.gir
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/*** BEGIN file-header ***/
|
||||
#include "gst-validate-enum-types.h"
|
||||
#include <gst/validate/validate.h>
|
||||
#define C_ENUM(v) ((gint) v)
|
||||
#define C_FLAGS(v) ((guint) v)
|
||||
|
|
|
@ -522,7 +522,7 @@ _bus_handler (GstBus * bus, GstMessage * message,
|
|||
} else {
|
||||
g_string_append (str, "no message details\n");
|
||||
}
|
||||
gst_validate_printf (NULL, str->str);
|
||||
gst_validate_printf (NULL, "%s", str->str);
|
||||
g_string_free (str, TRUE);
|
||||
}
|
||||
switch (GST_MESSAGE_TYPE (message)) {
|
||||
|
|
Loading…
Reference in a new issue