mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +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
|
if not skip_test
|
||||||
exe = executable(test_name, fnames,
|
exe = executable(test_name, fnames,
|
||||||
include_directories : [configinc],
|
include_directories : [configinc],
|
||||||
c_args : ['-DHAVE_CONFIG_H=1' ] + test_defines,
|
c_args : gst_plugins_bad_args + test_defines,
|
||||||
cpp_args : gst_plugins_bad_args,
|
cpp_args : gst_plugins_bad_args + test_defines,
|
||||||
dependencies : [libm] + test_deps + extra_deps,
|
dependencies : [libm] + test_deps + extra_deps,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,10 @@
|
||||||
* running in a different process than videotestsrc.
|
* running in a different process than videotestsrc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
|
@ -6,6 +6,6 @@ foreach fname : ['ts-parser.c', 'ts-section-writer.c', 'ts-scte-writer.c']
|
||||||
install: false,
|
install: false,
|
||||||
include_directories : [configinc],
|
include_directories : [configinc],
|
||||||
dependencies : [gstmpegts_dep],
|
dependencies : [gstmpegts_dep],
|
||||||
c_args : ['-DHAVE_CONFIG_H=1', '-DGST_USE_UNSTABLE_API' ],
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
|
@ -8,6 +8,6 @@ foreach example : examples
|
||||||
src_file,
|
src_file,
|
||||||
include_directories: [configinc],
|
include_directories: [configinc],
|
||||||
dependencies: [glib_dep, gst_dep, gstbase_dep],
|
dependencies: [glib_dep, gst_dep, gstbase_dep],
|
||||||
c_args: ['-DHAVE_CONFIG_H=1'],
|
c_args : gst_plugins_bad_args,
|
||||||
install: false)
|
install: false)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
|
@ -9,7 +9,7 @@ if use_wayland
|
||||||
install: false,
|
install: false,
|
||||||
include_directories : [configinc],
|
include_directories : [configinc],
|
||||||
dependencies : [gtk_dep, gtk_wayland_dep, gst_dep, gstwayland_dep],
|
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
|
endif
|
||||||
executable('wayland_threads',
|
executable('wayland_threads',
|
||||||
|
@ -17,6 +17,6 @@ if use_wayland
|
||||||
install: false,
|
install: false,
|
||||||
include_directories : [configinc],
|
include_directories : [configinc],
|
||||||
dependencies : [gst_dep, gstwayland_dep, wl_client_dep],
|
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
|
endif
|
||||||
|
|
|
@ -9,7 +9,7 @@ foreach example : examples
|
||||||
install: false,
|
install: false,
|
||||||
include_directories : [configinc],
|
include_directories : [configinc],
|
||||||
dependencies : [glib_dep, gst_dep, gstwebrtc_dep],
|
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
|
endforeach
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue