Commit a349e7c8 authored by Stéphane Cerveau's avatar Stéphane Cerveau 🤸🏻 Committed by Tim-Philipp Müller

Add meson build system

add configuration files to use meson.
Add .gitignore
parent 16d996b0
*.o
*.bak
*.orig
*.diff
*.patch
*.so
*.a
*.la
*.lo
*.pyc
*.page
*.swp
build*
compile
*~
core.*
Makefile
Makefile.in
core
log
.deps
.libs
.dirstamp
/INSTALL
/aclocal.m4
/autom4te.cache
/autoregen.sh
/compile
/config.guess
/config.h
/config.h.in
/config.log
/config.status
/config.sub
/configure
/depcomp
/install-sh
app_sources = [
'src/main.c',
'src/play.c'
]
executable('gst-app', app_sources, dependencies : [gst_dep])
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,
)
......@@ -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
);
......@@ -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
)
......@@ -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
)
project('gst-template', 'c', version : '1.17.0.1', license : 'LGPL')
plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
cc = meson.get_compiler('c')
gst_version = meson.project_version()
api_version = '1.0'
gst_dep = dependency('gstreamer-1.0',
fallback : ['gstreamer', 'gst_dep'])
subdir('gst-app')
subdir('gst-plugin')
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