Commit 1c0f75bc authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜

tests: Fix minor bugs in usage of config.h

parent b7d91711
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment