From 786c6f4d36309d70d91d9ab8c72a1135988fa4db Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 20 Jul 2018 22:07:04 -0400 Subject: [PATCH] meson: Build gl/gtk examples --- tests/examples/gl/gtk/3dvideo/meson.build | 5 +++++ .../gl/gtk/filternovideooverlay/meson.build | 6 +++++ .../gl/gtk/filtervideooverlay/meson.build | 6 +++++ tests/examples/gl/gtk/fxtest/meson.build | 11 ++++++++++ tests/examples/gl/gtk/meson.build | 22 +++++++++++++++++++ .../gl/gtk/switchvideooverlay/meson.build | 5 +++++ tests/examples/gl/meson.build | 2 +- 7 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 tests/examples/gl/gtk/3dvideo/meson.build create mode 100644 tests/examples/gl/gtk/filternovideooverlay/meson.build create mode 100644 tests/examples/gl/gtk/filtervideooverlay/meson.build create mode 100644 tests/examples/gl/gtk/fxtest/meson.build create mode 100644 tests/examples/gl/gtk/meson.build create mode 100644 tests/examples/gl/gtk/switchvideooverlay/meson.build diff --git a/tests/examples/gl/gtk/3dvideo/meson.build b/tests/examples/gl/gtk/3dvideo/meson.build new file mode 100644 index 0000000000..4034f94acf --- /dev/null +++ b/tests/examples/gl/gtk/3dvideo/meson.build @@ -0,0 +1,5 @@ +executable('3dvideo', ['main.cpp', 'mviewwidget.c'], + cpp_args : [gst_plugins_base_args], + include_directories: [configinc, libsinc], + dependencies : [gstgtkhelper_dep, gstgl_dep, video_dep, x11_dep], + install: false) diff --git a/tests/examples/gl/gtk/filternovideooverlay/meson.build b/tests/examples/gl/gtk/filternovideooverlay/meson.build new file mode 100644 index 0000000000..966ff85b1e --- /dev/null +++ b/tests/examples/gl/gtk/filternovideooverlay/meson.build @@ -0,0 +1,6 @@ +executable('filternovideooverlay', 'main.cpp', + cpp_args : [gst_plugins_base_args], + include_directories: [configinc, libsinc], + dependencies : [gstgtkhelper_dep], + install: false) + diff --git a/tests/examples/gl/gtk/filtervideooverlay/meson.build b/tests/examples/gl/gtk/filtervideooverlay/meson.build new file mode 100644 index 0000000000..9ca33a09e8 --- /dev/null +++ b/tests/examples/gl/gtk/filtervideooverlay/meson.build @@ -0,0 +1,6 @@ +executable('filtervideooverlay', 'main.cpp', + cpp_args : [gst_plugins_base_args], + include_directories: [configinc, libsinc], + dependencies : [gstgtkhelper_dep, video_dep, x11_dep], + install: false) + diff --git a/tests/examples/gl/gtk/fxtest/meson.build b/tests/examples/gl/gtk/fxtest/meson.build new file mode 100644 index 0000000000..23cc7a63ba --- /dev/null +++ b/tests/examples/gl/gtk/fxtest/meson.build @@ -0,0 +1,11 @@ +executable('fxtest', 'fxtest.c', + c_args : [gst_plugins_base_args], + include_directories: [configinc, libsinc], + dependencies : [gstgtkhelper_dep, video_dep, x11_dep], + install: false) + +executable('pixbufdrop', 'pixbufdrop.c', + c_args : [gst_plugins_base_args], + include_directories: [configinc, libsinc], + dependencies : [gstgtkhelper_dep, video_dep, x11_dep], + install: false) diff --git a/tests/examples/gl/gtk/meson.build b/tests/examples/gl/gtk/meson.build new file mode 100644 index 0000000000..9d9a7d4a53 --- /dev/null +++ b/tests/examples/gl/gtk/meson.build @@ -0,0 +1,22 @@ +extra_args = [] +if cc.has_argument ('-Wno-parentheses') + extra_args += '-Wno-parentheses' +endif + +gstgtkhelper = static_library ('gstgtkhelper', + ['gstgtk.c'], + c_args : gst_plugins_base_args, + include_directories : [configinc, libsinc], + dependencies : [gst_base_dep, gtk_dep], + install : false) + +gstgtkhelper_dep = declare_dependency(link_with: gstgtkhelper, + compile_args : extra_args, + include_directories : include_directories('.'), + dependencies : [gst_base_dep, gtk_dep]) + +subdir('filternovideooverlay') +subdir('filtervideooverlay') +subdir('fxtest') +subdir('switchvideooverlay') +subdir('3dvideo') diff --git a/tests/examples/gl/gtk/switchvideooverlay/meson.build b/tests/examples/gl/gtk/switchvideooverlay/meson.build new file mode 100644 index 0000000000..b804d0856c --- /dev/null +++ b/tests/examples/gl/gtk/switchvideooverlay/meson.build @@ -0,0 +1,5 @@ +executable('switchvideooverlay', 'main.cpp', + cpp_args : [gst_plugins_base_args], + include_directories: [configinc, libsinc], + dependencies : [gstgtkhelper_dep, gstgl_dep, video_dep, x11_dep], + install: false) diff --git a/tests/examples/gl/meson.build b/tests/examples/gl/meson.build index a1f4889faa..5071211dc2 100644 --- a/tests/examples/gl/meson.build +++ b/tests/examples/gl/meson.build @@ -2,6 +2,6 @@ #subdir('clutter') #subdir('cocoa') #subdir('generic') -#subdir('gtk') +subdir('gtk', is_found : gtk_dep) #subdir('qt') subdir('sdl')