gstreamer/ext/x264/meson.build
Sebastian Dröge 7bf576b238 x264enc: Add configure parameter to specify additional x264 libraries with e.g. different depth configuration
x264 has to be compiled specifically for a target bit depth.
Distributions currently ship various libraries in their packages, with
different bit depths.

This change now allows to provide them all at configure time and have
the x264enc element dynamically switch between them based on the bit
depth of the input format.

https://bugzilla.gnome.org/show_bug.cgi?id=763297
2016-11-14 18:26:04 +02:00

22 lines
557 B
Meson

x264_sources = [
'gstx264enc.c',
]
x264_dep = dependency('x264', required : false)
if x264_dep.found()
x264_libraries = get_option('x264_libraries')
x264_args = []
if x264_libraries != ''
x264_args += ['-DHAVE_X264_ADDITIONAL_LIBRARIES="@0@"'.format(x264_libraries)]
endif
gstx264 = library('gstx264',
x264_sources,
c_args : ugly_args + x264_args,
include_directories : [configinc],
dependencies : [gstbase_dep, gstvideo_dep, gstpbutils_dep, x264_dep],
install : true,
install_dir : plugins_install_dir,
)
endif