2018-10-22 06:22:52 +00:00
|
|
|
ges_sources = files([
|
2016-08-04 21:33:55 +00:00
|
|
|
'ges.c',
|
|
|
|
'ges-enums.c',
|
|
|
|
'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',
|
|
|
|
'ges-operation-clip.c',
|
|
|
|
'ges-base-transition-clip.c',
|
|
|
|
'ges-transition-clip.c',
|
|
|
|
'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',
|
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',
|
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',
|
|
|
|
'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-image-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',
|
|
|
|
'ges-marker-list.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)
|
|
|
|
|
|
|
|
configure_file(input : 'ges-version.h.in',
|
|
|
|
output : 'ges-version.h',
|
2018-04-01 14:22:16 +00:00
|
|
|
install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/ges'),
|
2016-08-04 21:33:55 +00:00
|
|
|
configuration : version_data)
|
|
|
|
|
2016-09-21 19:41:31 +00:00
|
|
|
install_headers(ges_headers, subdir : 'gstreamer-1.0/ges')
|
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
|
|
|
|
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
|
|
|
ges_gir = gnome.generate_gir(libges,
|
2016-08-04 21:33:55 +00:00
|
|
|
sources : ges_sources + ges_headers,
|
|
|
|
namespace : 'GES',
|
|
|
|
nsversion : apiversion,
|
|
|
|
identifier_prefix : 'GES',
|
|
|
|
symbol_prefix : 'ges',
|
2018-10-31 13:06:08 +00:00
|
|
|
export_packages : 'gst-editing-services-1.0',
|
2018-01-29 20:46:06 +00:00
|
|
|
includes : ['Gst-1.0', 'GstPbutils-1.0', 'GstVideo-1.0', 'Gio-2.0', 'GObject-2.0'],
|
2016-08-04 21:33:55 +00:00
|
|
|
install : true,
|
|
|
|
dependencies : libges_deps,
|
2016-08-26 22:55:33 +00:00
|
|
|
extra_args : ges_gir_extra_args
|
2018-10-22 06:22:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ges_gen_sources += [ges_gir]
|
2016-08-04 21:33:55 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
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
|
|
|
)
|