diff options
author | Stéphane Cerveau <scerveau@gmail.com> | 2019-06-20 08:50:38 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-06-20 08:50:38 +0000 |
commit | a349e7c890bf96004eaf099dd7160bef500c222e (patch) | |
tree | 0c2d7e342b9cf06dffffd2e0afc4d635a62a32ba /gst-plugin | |
parent | 16d996b0efc3643323698e986f33a1753cb00f15 (diff) |
Add meson build system
add configuration files to use meson.
Add .gitignore
Diffstat (limited to 'gst-plugin')
-rw-r--r-- | gst-plugin/meson.build | 39 | ||||
-rw-r--r-- | gst-plugin/src/gstaudiofilter.c | 7 | ||||
-rw-r--r-- | gst-plugin/src/gstplugin.c | 8 | ||||
-rw-r--r-- | gst-plugin/src/gsttransform.c | 8 |
4 files changed, 51 insertions, 11 deletions
diff --git a/gst-plugin/meson.build b/gst-plugin/meson.build new file mode 100644 index 0000000..9a26d8b --- /dev/null +++ b/gst-plugin/meson.build @@ -0,0 +1,39 @@ +plugin_c_args = ['-DHAVE_CONFIG_H'] + +cdata = configuration_data() +cdata.set_quoted('PACKAGE_VERSION', gst_version) +cdata.set_quoted('PACKAGE', 'gst-template-plugin') +cdata.set_quoted('GST_LICENSE', 'LGPL') +cdata.set_quoted('GST_API_VERSION', api_version) +cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer template Plug-ins') +cdata.set_quoted('GST_PACKAGE_ORIGIN', 'https://gstreamer.freedesktop.org') +configure_file(output : 'config.h', configuration : cdata) + +gstaudio_dep = dependency('gstreamer-audio-1.0', + fallback: ['gst-plugins-base', 'audio_dep']) + +# Plugin 1 +plugin_sources = [ + 'src/gstplugin.c' + ] + +gstpluginexample = library('gstplugin', + plugin_sources, + c_args: plugin_c_args, + dependencies : [gst_dep], + install : true, + install_dir : plugins_install_dir, +) + +# Plugin 2 (audio filter example) +audiofilter_sources = [ + 'src/gstaudiofilter.c', + ] + +gstaudiofilterexample = library('gstaudiofilterexample', + audiofilter_sources, + c_args: plugin_c_args, + dependencies : [gst_dep, gstaudio_dep], + install : true, + install_dir : plugins_install_dir, +) diff --git a/gst-plugin/src/gstaudiofilter.c b/gst-plugin/src/gstaudiofilter.c index f84b68b..5b3ff0c 100644 --- a/gst-plugin/src/gstaudiofilter.c +++ b/gst-plugin/src/gstaudiofilter.c @@ -336,7 +336,8 @@ GST_PLUGIN_DEFINE ( audiofilterexample, "Audio filter example plugin", plugin_init, - VERSION, "LGPL", - "GStreamer", - "http://gstreamer.freedesktop.org" + PACKAGE_VERSION, + GST_LICENSE, + GST_PACKAGE_NAME, + GST_PACKAGE_ORIGIN ); diff --git a/gst-plugin/src/gstplugin.c b/gst-plugin/src/gstplugin.c index 44017ea..f168154 100644 --- a/gst-plugin/src/gstplugin.c +++ b/gst-plugin/src/gstplugin.c @@ -281,8 +281,8 @@ GST_PLUGIN_DEFINE ( plugin, "Template plugin", plugin_init, - VERSION, - "LGPL", - "GStreamer", - "http://gstreamer.net/" + PACKAGE_VERSION, + GST_LICENSE, + GST_PACKAGE_NAME, + GST_PACKAGE_ORIGIN ) diff --git a/gst-plugin/src/gsttransform.c b/gst-plugin/src/gsttransform.c index af6c75b..28793b7 100644 --- a/gst-plugin/src/gsttransform.c +++ b/gst-plugin/src/gsttransform.c @@ -213,8 +213,8 @@ GST_PLUGIN_DEFINE ( plugin, "Template plugin", plugin_init, - VERSION, - "LGPL", - "GStreamer", - "http://gstreamer.net/" + PACKAGE_VERSION, + GST_LICENSE, + GST_PACKAGE_NAME, + GST_PACKAGE_ORIGIN ) |