mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-07 01:51:22 +00:00
0a38642214
Builds in about 10 seconds vs. 77 seconds with autotools.
36 lines
1.3 KiB
Meson
36 lines
1.3 KiB
Meson
rpicamsrc_sources = [
|
|
'gstrpicamsrc.c',
|
|
'gstrpicamsrcdeviceprovider.c',
|
|
'RaspiCapture.c',
|
|
'RaspiCamControl.c',
|
|
'RaspiPreview.c',
|
|
'RaspiCLI.c',
|
|
]
|
|
|
|
# This can be simplified once meson gets native support for glib-mkenums (soon)
|
|
glib_mkenums = find_program('glib-mkenums')
|
|
|
|
gstrpicam_enum_types_h = custom_target('gstrpicam-enum-types.h',
|
|
output : 'gstrpicam-enum-types.h',
|
|
input : files('gstrpicam_types.h'),
|
|
command : [glib_mkenums, '--template', meson.current_source_dir() + '/gstrpicam-enums-template.h', '@INPUT@'],
|
|
capture : true)
|
|
|
|
gstrpicam_enum_types_c = custom_target('gstrpicam-enum-types.c',
|
|
output : 'gstrpicam-enum-types.c',
|
|
input : files('gstrpicam_types.h'),
|
|
depends : [gstrpicam_enum_types_h],
|
|
command : [glib_mkenums, '--template', meson.current_source_dir() + '/gstrpicam-enums-template.c', '@INPUT@'],
|
|
capture : true)
|
|
|
|
mapfile = 'gstplugin.map'
|
|
|
|
library('gstrpicamsrc',
|
|
rpicamsrc_sources, gstrpicam_enum_types_h, gstrpicam_enum_types_c,
|
|
c_args : gst_rpicamsrc_args,
|
|
include_directories : config_inc,
|
|
link_args : '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile),
|
|
link_depends : mapfile,
|
|
dependencies : [gst_dep, gstbase_dep, gstvideo_dep] + mmal_deps,
|
|
install : true,
|
|
install_dir : plugins_install_dir)
|