mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
tests: Fix minor bugs in usage of config.h
This commit is contained in:
parent
b7d91711f7
commit
1c0f75bc90
6 changed files with 11 additions and 7 deletions
|
@ -154,8 +154,8 @@ foreach t : base_tests
|
|||
if not skip_test
|
||||
exe = executable(test_name, fnames,
|
||||
include_directories : [configinc],
|
||||
c_args : ['-DHAVE_CONFIG_H=1' ] + test_defines,
|
||||
cpp_args : gst_plugins_bad_args,
|
||||
c_args : gst_plugins_bad_args + test_defines,
|
||||
cpp_args : gst_plugins_bad_args + test_defines,
|
||||
dependencies : [libm] + test_deps + extra_deps,
|
||||
)
|
||||
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
* running in a different process than videotestsrc.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -6,6 +6,6 @@ foreach fname : ['ts-parser.c', 'ts-section-writer.c', 'ts-scte-writer.c']
|
|||
install: false,
|
||||
include_directories : [configinc],
|
||||
dependencies : [gstmpegts_dep],
|
||||
c_args : ['-DHAVE_CONFIG_H=1', '-DGST_USE_UNSTABLE_API' ],
|
||||
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
||||
)
|
||||
endforeach
|
||||
|
|
|
@ -8,6 +8,6 @@ foreach example : examples
|
|||
src_file,
|
||||
include_directories: [configinc],
|
||||
dependencies: [glib_dep, gst_dep, gstbase_dep],
|
||||
c_args: ['-DHAVE_CONFIG_H=1'],
|
||||
c_args : gst_plugins_bad_args,
|
||||
install: false)
|
||||
endforeach
|
||||
|
|
|
@ -9,7 +9,7 @@ if use_wayland
|
|||
install: false,
|
||||
include_directories : [configinc],
|
||||
dependencies : [gtk_dep, gtk_wayland_dep, gst_dep, gstwayland_dep],
|
||||
c_args : ['-DHAVE_CONFIG_H=1', '-DGST_USE_UNSTABLE_API=1'],
|
||||
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
||||
)
|
||||
endif
|
||||
executable('wayland_threads',
|
||||
|
@ -17,6 +17,6 @@ if use_wayland
|
|||
install: false,
|
||||
include_directories : [configinc],
|
||||
dependencies : [gst_dep, gstwayland_dep, wl_client_dep],
|
||||
c_args : ['-DHAVE_CONFIG_H=1', '-DGST_USE_UNSTABLE_API=1'],
|
||||
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
||||
)
|
||||
endif
|
||||
|
|
|
@ -9,7 +9,7 @@ foreach example : examples
|
|||
install: false,
|
||||
include_directories : [configinc],
|
||||
dependencies : [glib_dep, gst_dep, gstwebrtc_dep],
|
||||
c_args : ['-DHAVE_CONFIG_H=1', '-DGST_USE_UNSTABLE_API'],
|
||||
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
||||
)
|
||||
endforeach
|
||||
|
||||
|
|
Loading…
Reference in a new issue