project('gst-libav', 'c', 'cpp',
- version : '1.15.0.1',
- meson_version : '>= 0.46.0',
+ version : '1.17.0.1',
+ meson_version : '>= 0.48.0',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
gst_version_nano = 0
endif
+api_version = '1.0'
libavfilter_dep = dependency('libavfilter', version: '>= 7.16.100',
fallback: ['FFmpeg', 'libavfilter_dep'])
libavformat_dep = dependency('libavformat', version: '>= 58.12.100',
libav_deps_type_name = ''
foreach dep: libav_deps
- message('type name: @0@'.format(dep.type_name()))
-endforeach
-
-foreach dep: libav_deps
- message('[@0@] / [@1@]'.format(libav_deps_type_name, dep.type_name()))
if libav_deps_type_name != '' and dep.type_name() != libav_deps_type_name
error('Libav deps must be either all internal or all external')
endif
configinc = include_directories('.')
plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir'))
-subdir('ext/libav/')
-python3 = import('python3').find_python()
+pkgconfig = import('pkgconfig')
+plugins_pkgconfig_install_dir = join_paths(plugins_install_dir, 'pkgconfig')
+if get_option('default_library') == 'shared'
+ # If we don't build static plugins there is no need to generate pc files
+ plugins_pkgconfig_install_dir = disabler()
+endif
+
+plugins = []
+subdir('ext/libav')
+subdir('docs')
+
+python3 = import('python').find_installation()
run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')