tests: Fix minor bugs in usage of config.h

This commit is contained in:
Nirbheek Chauhan 2020-01-12 07:49:47 +05:30
parent b7d91711f7
commit 1c0f75bc90
6 changed files with 11 additions and 7 deletions

View file

@ -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,
)

View file

@ -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>

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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