2018-10-22 06:22:52 +00:00
|
|
|
ges_sources = files([
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges.c',
|
|
|
|
'ges-enums.c',
|
2023-11-13 16:14:01 +00:00
|
|
|
'ges-frame-composition-meta.c',
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges-meta-container.c',
|
|
|
|
'ges-timeline.c',
|
|
|
|
'ges-layer.c',
|
|
|
|
'ges-clip.c',
|
|
|
|
'ges-pipeline.c',
|
|
|
|
'ges-source-clip.c',
|
2020-03-17 14:53:47 +00:00
|
|
|
'ges-source-clip-asset.c',
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges-base-effect-clip.c',
|
|
|
|
'ges-effect-clip.c',
|
|
|
|
'ges-uri-clip.c',
|
2020-07-03 20:34:21 +00:00
|
|
|
'ges-uri-source.c',
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges-operation-clip.c',
|
|
|
|
'ges-base-transition-clip.c',
|
|
|
|
'ges-transition-clip.c',
|
2020-04-22 17:39:21 +00:00
|
|
|
'ges-time-overlay-clip.c',
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges-test-clip.c',
|
|
|
|
'ges-title-clip.c',
|
|
|
|
'ges-overlay-clip.c',
|
|
|
|
'ges-text-overlay-clip.c',
|
|
|
|
'ges-track.c',
|
|
|
|
'ges-audio-track.c',
|
|
|
|
'ges-video-track.c',
|
|
|
|
'ges-track-element.c',
|
|
|
|
'ges-source.c',
|
|
|
|
'ges-operation.c',
|
|
|
|
'ges-video-source.c',
|
|
|
|
'ges-audio-source.c',
|
|
|
|
'ges-video-uri-source.c',
|
|
|
|
'ges-audio-uri-source.c',
|
|
|
|
'ges-image-source.c',
|
|
|
|
'ges-multi-file-source.c',
|
|
|
|
'ges-transition.c',
|
|
|
|
'ges-audio-transition.c',
|
|
|
|
'ges-video-transition.c',
|
|
|
|
'ges-video-test-source.c',
|
|
|
|
'ges-audio-test-source.c',
|
|
|
|
'ges-title-source.c',
|
|
|
|
'ges-text-overlay.c',
|
|
|
|
'ges-base-effect.c',
|
|
|
|
'ges-effect.c',
|
|
|
|
'ges-screenshot.c',
|
|
|
|
'ges-formatter.c',
|
|
|
|
'ges-asset.c',
|
|
|
|
'ges-uri-asset.c',
|
|
|
|
'ges-clip-asset.c',
|
|
|
|
'ges-track-element-asset.c',
|
|
|
|
'ges-extractable.c',
|
|
|
|
'ges-project.c',
|
|
|
|
'ges-base-xml-formatter.c',
|
|
|
|
'ges-xml-formatter.c',
|
|
|
|
'ges-command-line-formatter.c',
|
|
|
|
'ges-auto-transition.c',
|
|
|
|
'ges-timeline-element.c',
|
2019-03-01 22:32:19 +00:00
|
|
|
'ges-timeline-tree.c',
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges-container.c',
|
|
|
|
'ges-effect-asset.c',
|
|
|
|
'ges-smart-adder.c',
|
|
|
|
'ges-smart-video-mixer.c',
|
|
|
|
'ges-utils.c',
|
|
|
|
'ges-group.c',
|
|
|
|
'ges-validate.c',
|
|
|
|
'ges-structured-interface.c',
|
|
|
|
'ges-structure-parser.c',
|
2019-08-22 16:50:00 +00:00
|
|
|
'ges-marker-list.c',
|
2023-02-07 20:01:11 +00:00
|
|
|
'ges-discoverer-manager.c',
|
2023-06-20 20:01:37 +00:00
|
|
|
'gesvideoscale.c',
|
2016-08-04 21:33:55 +00:00
|
|
|
'gstframepositioner.c'
|
2018-10-22 06:22:52 +00:00
|
|
|
])
|
2016-08-04 21:33:55 +00:00
|
|
|
|
2018-10-22 06:22:52 +00:00
|
|
|
ges_headers = files([
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges-types.h',
|
|
|
|
'ges.h',
|
2018-03-13 13:45:24 +00:00
|
|
|
'ges-prelude.h',
|
2023-11-13 16:14:01 +00:00
|
|
|
'ges-frame-composition-meta.h',
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges-enums.h',
|
|
|
|
'ges-gerror.h',
|
|
|
|
'ges-meta-container.h',
|
|
|
|
'ges-timeline.h',
|
|
|
|
'ges-layer.h',
|
|
|
|
'ges-clip.h',
|
|
|
|
'ges-pipeline.h',
|
|
|
|
'ges-source-clip.h',
|
2020-03-17 14:53:47 +00:00
|
|
|
'ges-source-clip-asset.h',
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges-uri-clip.h',
|
|
|
|
'ges-base-effect-clip.h',
|
|
|
|
'ges-effect-clip.h',
|
|
|
|
'ges-operation-clip.h',
|
|
|
|
'ges-base-transition-clip.h',
|
|
|
|
'ges-transition-clip.h',
|
|
|
|
'ges-test-clip.h',
|
2020-04-22 17:39:21 +00:00
|
|
|
'ges-time-overlay-clip.h',
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges-title-clip.h',
|
|
|
|
'ges-overlay-clip.h',
|
|
|
|
'ges-text-overlay-clip.h',
|
|
|
|
'ges-base-effect.h',
|
|
|
|
'ges-effect.h',
|
|
|
|
'ges-track.h',
|
|
|
|
'ges-audio-track.h',
|
|
|
|
'ges-video-track.h',
|
|
|
|
'ges-track-element.h',
|
2019-08-20 21:46:09 +00:00
|
|
|
'ges-track-element-deprecated.h',
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges-source.h',
|
|
|
|
'ges-operation.h',
|
|
|
|
'ges-video-source.h',
|
|
|
|
'ges-audio-source.h',
|
|
|
|
'ges-video-uri-source.h',
|
|
|
|
'ges-audio-uri-source.h',
|
|
|
|
'ges-multi-file-source.h',
|
|
|
|
'ges-transition.h',
|
|
|
|
'ges-audio-transition.h',
|
|
|
|
'ges-video-transition.h',
|
|
|
|
'ges-video-test-source.h',
|
|
|
|
'ges-audio-test-source.h',
|
|
|
|
'ges-title-source.h',
|
|
|
|
'ges-text-overlay.h',
|
|
|
|
'ges-screenshot.h',
|
|
|
|
'ges-formatter.h',
|
|
|
|
'ges-asset.h',
|
|
|
|
'ges-uri-asset.h',
|
|
|
|
'ges-clip-asset.h',
|
|
|
|
'ges-track-element-asset.h',
|
|
|
|
'ges-extractable.h',
|
|
|
|
'ges-project.h',
|
|
|
|
'ges-base-xml-formatter.h',
|
|
|
|
'ges-xml-formatter.h',
|
|
|
|
'ges-command-line-formatter.h',
|
|
|
|
'ges-timeline-element.h',
|
|
|
|
'ges-container.h',
|
|
|
|
'ges-effect-asset.h',
|
|
|
|
'ges-utils.h',
|
2019-08-22 16:50:00 +00:00
|
|
|
'ges-group.h',
|
2023-02-07 20:01:11 +00:00
|
|
|
'ges-marker-list.h',
|
|
|
|
'ges-discoverer-manager.h',
|
2018-10-22 06:22:52 +00:00
|
|
|
])
|
2016-08-04 21:33:55 +00:00
|
|
|
|
2018-11-30 15:41:04 +00:00
|
|
|
if libxml_dep.found()
|
2018-10-22 09:39:03 +00:00
|
|
|
ges_sources += files(['ges-pitivi-formatter.c'])
|
|
|
|
ges_headers += files(['ges-pitivi-formatter.h'])
|
2018-11-30 15:41:04 +00:00
|
|
|
endif
|
2016-08-04 21:33:55 +00:00
|
|
|
|
|
|
|
version_data = configuration_data()
|
|
|
|
version_data.set('GES_VERSION_MAJOR', gst_version_major)
|
|
|
|
version_data.set('GES_VERSION_MINOR', gst_version_minor)
|
|
|
|
version_data.set('GES_VERSION_MICRO', gst_version_micro)
|
|
|
|
version_data.set('GES_VERSION_NANO', gst_version_nano)
|
|
|
|
|
2020-07-10 12:16:10 +00:00
|
|
|
ges_headers += [configure_file(input : 'ges-version.h.in',
|
2016-08-04 21:33:55 +00:00
|
|
|
output : 'ges-version.h',
|
2018-04-01 14:22:16 +00:00
|
|
|
install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/ges'),
|
2020-07-10 12:16:10 +00:00
|
|
|
configuration : version_data)]
|
2016-08-04 21:33:55 +00:00
|
|
|
|
|
|
|
flex = find_program('flex', required : false)
|
|
|
|
if not flex.found()
|
|
|
|
flex = find_program('win_flex', required : false)
|
|
|
|
if not flex.found()
|
|
|
|
error('flex not found')
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
parser = custom_target('gesparselex',
|
|
|
|
input : 'parse.l',
|
|
|
|
output : ['lex.priv_ges_parse_yy.c', 'ges-parse-lex.h'],
|
|
|
|
command : [flex, '-Ppriv_ges_parse_yy', '--header-file=@OUTPUT1@', '-o', '@OUTPUT0@', '@INPUT@']
|
|
|
|
)
|
|
|
|
|
2019-02-05 18:46:49 +00:00
|
|
|
ges_resources = []
|
|
|
|
if has_python
|
|
|
|
ges_resources = gnome.compile_resources(
|
|
|
|
'ges-resources', 'ges.resource',
|
|
|
|
source_dir: '.',
|
|
|
|
c_name: 'ges'
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
libges = library('ges-1.0', ges_sources, parser, ges_resources,
|
2016-08-04 21:33:55 +00:00
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:14:58 +00:00
|
|
|
darwin_versions : osxversion,
|
2018-09-24 14:41:24 +00:00
|
|
|
c_args : [ges_c_args] + ['-DBUILDING_GES'],
|
2016-08-04 21:33:55 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
install : true,
|
2017-11-26 13:29:33 +00:00
|
|
|
dependencies : libges_deps)
|
2016-08-04 21:33:55 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
pkg_name = 'gst-editing-services-1.0'
|
2018-11-04 18:04:45 +00:00
|
|
|
pkgconfig.generate(libges,
|
|
|
|
libraries : [gst_dep, gstbase_dep, gstpbutils_dep, gstcontroller_dep],
|
|
|
|
subdirs : pkgconfig_subdirs,
|
2020-06-27 04:39:00 +00:00
|
|
|
name : pkg_name,
|
2018-11-04 18:04:45 +00:00
|
|
|
description : 'GStreamer Editing Services',
|
|
|
|
)
|
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': libges}
|
|
|
|
pkg_name = 'gst-editing-services-1.0'
|
2016-08-26 22:55:33 +00:00
|
|
|
ges_gen_sources = []
|
2016-08-04 21:33:55 +00:00
|
|
|
if build_gir
|
2016-08-26 22:55:33 +00:00
|
|
|
ges_gir_extra_args = gir_init_section + [ '--c-include=ges/ges.h' ]
|
|
|
|
if meson.is_subproject()
|
|
|
|
# FIXME: There must be a better way to do this
|
|
|
|
# Need to pass the include path to find gst/gst.h and gst/gstenumtypes.h (built)
|
|
|
|
ges_gir_extra_args += ['--cflags-begin',
|
2016-09-09 11:52:32 +00:00
|
|
|
'-I' + meson.current_source_dir() + '/..',
|
|
|
|
'-I' + meson.current_build_dir() + '/..',
|
|
|
|
'--cflags-end']
|
2016-08-26 22:55:33 +00:00
|
|
|
endif
|
2018-10-22 06:22:52 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
gir = {
|
|
|
|
'sources' : ges_sources + ges_headers,
|
|
|
|
'namespace' : 'GES',
|
|
|
|
'nsversion' : apiversion,
|
|
|
|
'identifier_prefix' : 'GES',
|
|
|
|
'symbol_prefix' : 'ges',
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'includes' : ['Gst-1.0', 'GstPbutils-1.0', 'GstVideo-1.0', 'Gio-2.0', 'GObject-2.0'],
|
|
|
|
'install' : true,
|
|
|
|
'dependencies' : libges_deps,
|
|
|
|
'extra_args' : ges_gir_extra_args
|
|
|
|
}
|
2021-11-08 14:08:45 +00:00
|
|
|
library_def += {'gir': gir}
|
2020-06-27 04:39:00 +00:00
|
|
|
if not static_build
|
2021-10-13 02:25:40 +00:00
|
|
|
gir += {'sources': ges_sources + ges_headers + files('ges-image-source.h')}
|
2020-06-27 04:39:00 +00:00
|
|
|
ges_gir = gnome.generate_gir(libges, kwargs: gir)
|
2022-08-31 18:15:16 +00:00
|
|
|
library_def += {'gir_targets': library_def.get('gir_targets', []) + [ges_gir]}
|
2020-06-27 04:39:00 +00:00
|
|
|
ges_gen_sources += [ges_gir]
|
|
|
|
endif
|
2016-08-04 21:33:55 +00:00
|
|
|
endif
|
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
# GESImageSource is unused and is internal only so it gets stripped out when we statically
|
|
|
|
# link GES. We keep the header for backward compatibility reasons.
|
2022-01-24 17:44:32 +00:00
|
|
|
install_headers(ges_headers + files('ges-image-source.h'), subdir : 'gstreamer-1.0/ges')
|
2022-09-01 15:51:48 +00:00
|
|
|
gst_libraries += [[pkg_name, library_def]]
|
2020-06-27 04:39:00 +00:00
|
|
|
|
2016-08-04 21:33:55 +00:00
|
|
|
ges_dep = declare_dependency(link_with : libges,
|
|
|
|
include_directories : [configinc],
|
2016-09-23 23:41:04 +00:00
|
|
|
sources : ges_gen_sources,
|
|
|
|
dependencies : libges_deps,
|
2016-08-04 21:33:55 +00:00
|
|
|
)
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, ges_dep)
|