diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-11-02 16:50:47 +0100 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-11-05 13:46:17 +0100 |
commit | 254eb9507f5e3c51552bfdf6c4b97650e847d55a (patch) | |
tree | 02a3e2fb7d05211023620b09bcc340d5fe57bfa8 /tests | |
parent | 5171a3d5b1b3ebe7a26c8b835edeb922186f374a (diff) |
build: meson: build examples
Diffstat (limited to 'tests')
-rw-r--r-- | tests/elements/meson.build | 24 | ||||
-rw-r--r-- | tests/meson.build | 75 |
2 files changed, 99 insertions, 0 deletions
diff --git a/tests/elements/meson.build b/tests/elements/meson.build new file mode 100644 index 00000000..9fb57f67 --- /dev/null +++ b/tests/elements/meson.build @@ -0,0 +1,24 @@ +examples = [ + 'test-vaapisink', + 'test-vaapipostproc', + 'test-roi', +] + +foreach example : examples + executable(example, '@0@.c'.format(example), + c_args : gstreamer_vaapi_args, + include_directories: [configinc, libsinc], + dependencies : [gst_dep, gstvideo_dep], + install: false) +endforeach + +executable('test-vaapicontext', 'test-vaapicontext.c', + c_args : gstreamer_vaapi_args, + include_directories: [configinc, libsinc], + dependencies : [ gst_dep, + gstvideo_dep, + libva_dep, + x11_dep, + gtk_dep, + libva_x11_dep ], + install: false) diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 00000000..b7f7c881 --- /dev/null +++ b/tests/meson.build @@ -0,0 +1,75 @@ +libdecutils_sources = [ + 'decoder.c', + 'test-h264.c', + 'test-jpeg.c', + 'test-mpeg2.c', + 'test-mpeg4.c', + 'test-vc1.c', +] + +libdecutils_headers = [ + 'decoder.h', + 'test-h264.h', + 'test-jpeg.h', + 'test-mpeg2.h', + 'test-mpeg4.h', + 'test-vc1.h', +] + +libutils_sources = [ + 'codec.c', + 'image.c', + 'output.c', + 'test-subpicture-data.c', + 'y4mreader.c', +] + +libutils_headers = [ + 'codec.h', + 'image.h', + 'output.h', + 'test-subpicture-data.h', + 'y4mreader.h', +] + +test_examples = [ + 'simple-decoder', + 'test-decode', + 'test-display', + 'test-filter', + 'test-surfaces', + 'test-windows', + 'test-subpicture', +] + +if USE_ENCODERS + test_examples += [ 'simple-encoder' ] +endif +if USE_GLX + test_examples += [ 'test-textures' ] +endif + +libutils = static_library('libutils', + libutils_sources + libutils_headers, + c_args : gstreamer_vaapi_args, + include_directories: [configinc, libsinc], + dependencies : gstlibvaapi_deps, + install: false) + +libdecutils = static_library('libdecutils', + libdecutils_sources + libdecutils_headers, + c_args : gstreamer_vaapi_args, + include_directories: [configinc, libsinc], + dependencies : gstlibvaapi_deps, + install: false) + +foreach example : test_examples + executable(example, '@0@.c'.format(example), + c_args : gstreamer_vaapi_args, + include_directories: [configinc, libsinc], + dependencies : [gst_dep, libva_dep, gstlibvaapi_dep], + link_with: [libutils, libdecutils], + install: false) +endforeach + +subdir('elements') |