Initial commit
This commit is contained in:
50
meson.build
Normal file
50
meson.build
Normal file
@@ -0,0 +1,50 @@
|
||||
project('gst-template', 'c', version : '0.0.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_req = '==1.16.2'
|
||||
|
||||
gst_dep = dependency('gstreamer-1.0', version : gst_req,
|
||||
required : true, fallback : ['gstreamer', 'gst_dep'])
|
||||
gstvideo_dep = dependency('gstreamer-video-1.0', version : gst_req,
|
||||
fallback : ['gst-plugins-base', 'video_dep'])
|
||||
gstbase_dep = dependency('gstreamer-base-1.0', version : gst_req,
|
||||
fallback : ['gstreamer', 'gst_base_dep'])
|
||||
gstpluginsbase_dep = dependency('gstreamer-plugins-base-1.0', version : gst_req,
|
||||
fallback : ['gst-plugins-base', 'gst_dep'])
|
||||
threads_dep = dependency('threads')
|
||||
|
||||
|
||||
plugin_c_args = ['-DHAVE_CONFIG_H']
|
||||
|
||||
cdata = configuration_data()
|
||||
cdata.set_quoted('PACKAGE_VERSION', gst_version)
|
||||
cdata.set_quoted('PACKAGE', 'gst-v4l2pinesrc-plugin')
|
||||
cdata.set_quoted('GST_LICENSE', 'LGPL')
|
||||
cdata.set_quoted('GST_API_VERSION', api_version)
|
||||
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer Pine64 pinephone camera v4l2 plug-in')
|
||||
cdata.set_quoted('GST_PACKAGE_ORIGIN', 'http://www.example.com')
|
||||
cdata.set_quoted('DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
|
||||
cdata.set_quoted('SYSCONFDIR', get_option('sysconfdir'))
|
||||
|
||||
configure_file(output : 'config.h', configuration : cdata)
|
||||
|
||||
# Plugin 1
|
||||
plugin_sources = [
|
||||
'pinesrcbin.c'
|
||||
]
|
||||
|
||||
gstpluginexample = library('gstpinesrcbin',
|
||||
plugin_sources,
|
||||
c_args: plugin_c_args,
|
||||
dependencies : [gst_dep, gstbase_dep, gstpluginsbase_dep, gstvideo_dep, threads_dep],
|
||||
install : true,
|
||||
install_dir : plugins_install_dir,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user