2016-08-12 14:55:17 +00:00
|
|
|
gst_controller_sources = [
|
|
|
|
'gstargbcontrolbinding.c',
|
|
|
|
'gstdirectcontrolbinding.c',
|
|
|
|
'gsttimedvaluecontrolsource.c',
|
|
|
|
'gstinterpolationcontrolsource.c',
|
2016-11-18 02:09:21 +00:00
|
|
|
'gstproxycontrolbinding.c',
|
2016-08-12 14:55:17 +00:00
|
|
|
'gsttriggercontrolsource.c',
|
|
|
|
'gstlfocontrolsource.c',
|
|
|
|
]
|
|
|
|
|
2017-04-09 09:02:43 +00:00
|
|
|
controller_mkenum_headers = [
|
|
|
|
'gstinterpolationcontrolsource.h',
|
|
|
|
'gstlfocontrolsource.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
gst_controller_headers = controller_mkenum_headers + [
|
2016-08-12 14:55:17 +00:00
|
|
|
'gstargbcontrolbinding.h',
|
|
|
|
'gstdirectcontrolbinding.h',
|
|
|
|
'gsttimedvaluecontrolsource.h',
|
|
|
|
'gstinterpolationcontrolsource.h',
|
2016-11-18 02:09:21 +00:00
|
|
|
'gstproxycontrolbinding.h',
|
2016-08-12 14:55:17 +00:00
|
|
|
'gsttriggercontrolsource.h',
|
|
|
|
'gstlfocontrolsource.h',
|
|
|
|
'controller.h',
|
|
|
|
]
|
|
|
|
install_headers(gst_controller_headers, subdir : 'gstreamer-1.0/gst/controller/')
|
|
|
|
|
2017-04-09 09:02:43 +00:00
|
|
|
mkenums = find_program('controller_mkenum.py')
|
|
|
|
gstcontroller_h = custom_target('gstcontrollerenum_h',
|
|
|
|
output : 'controller-enumtypes.h',
|
|
|
|
input : controller_mkenum_headers,
|
|
|
|
install : true,
|
|
|
|
install_dir : 'include/gstreamer-1.0/gst/controller/',
|
|
|
|
command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
|
|
|
|
|
|
|
|
gstcontroller_c = custom_target('gstcontrollerenum_c',
|
|
|
|
output : 'controller-enumtypes.c',
|
|
|
|
input : controller_mkenum_headers,
|
|
|
|
depends : [gstcontroller_h],
|
|
|
|
command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
|
|
|
|
controller_gen_sources = [gstcontroller_h]
|
|
|
|
|
2016-08-12 14:55:17 +00:00
|
|
|
if libtype != 'shared'
|
|
|
|
gst_controller_static = static_library('gstcontroller-@0@'.format(apiversion),
|
2017-04-09 09:16:39 +00:00
|
|
|
gst_controller_sources, gstcontroller_h, gstcontroller_c,
|
2016-08-12 14:55:17 +00:00
|
|
|
c_args : gst_c_args,
|
|
|
|
install : true,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
dependencies : [gobject_dep, glib_dep, mathlib, gst_dep],
|
|
|
|
)
|
|
|
|
gst_controller = gst_controller_static
|
|
|
|
endif
|
|
|
|
|
2017-01-18 21:16:26 +00:00
|
|
|
|
2017-04-12 12:48:53 +00:00
|
|
|
gst_controller_gen_sources = [gstcontroller_h]
|
2016-08-12 14:55:17 +00:00
|
|
|
if libtype != 'static'
|
|
|
|
gst_controller_shared = shared_library('gstcontroller-@0@'.format(apiversion),
|
2017-04-09 09:16:39 +00:00
|
|
|
gst_controller_sources, gstcontroller_h, gstcontroller_c,
|
2016-08-12 14:55:17 +00:00
|
|
|
c_args : gst_c_args,
|
|
|
|
install : true,
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
dependencies : [gobject_dep, glib_dep, mathlib, gst_dep],
|
|
|
|
)
|
|
|
|
gst_controller = gst_controller_shared
|
|
|
|
if build_gir
|
2017-04-10 14:28:57 +00:00
|
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/controller/controller.h' ]
|
2017-01-18 21:16:26 +00:00
|
|
|
gst_controller_gir = gnome.generate_gir(gst_controller_shared,
|
2017-04-09 09:16:39 +00:00
|
|
|
sources : gst_controller_sources + gst_controller_headers + [gstcontroller_h] + [gstcontroller_c],
|
2016-08-12 14:55:17 +00:00
|
|
|
namespace : 'GstController',
|
|
|
|
nsversion : apiversion,
|
|
|
|
identifier_prefix : 'Gst',
|
|
|
|
symbol_prefix : 'gst',
|
|
|
|
export_packages : 'gstreamer-controller-1.0',
|
2016-11-09 17:07:28 +00:00
|
|
|
dependencies : [gst_dep],
|
2016-08-12 14:55:17 +00:00
|
|
|
include_directories : [configinc, libsinc, privinc],
|
|
|
|
includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0', 'Gst-1.0'],
|
|
|
|
install : true,
|
2017-04-10 14:28:57 +00:00
|
|
|
extra_args : gst_gir_extra_args,
|
2016-08-12 14:55:17 +00:00
|
|
|
)
|
2017-01-18 21:16:26 +00:00
|
|
|
gst_controller_gen_sources += [gst_controller_gir]
|
2016-08-12 14:55:17 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
gst_controller_dep = declare_dependency(link_with : gst_controller,
|
|
|
|
include_directories : [libsinc],
|
2017-01-18 21:16:26 +00:00
|
|
|
sources: gst_controller_gen_sources,
|
2016-08-12 14:55:17 +00:00
|
|
|
dependencies : [gst_dep])
|