mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
c5cddfcec4
The only automagic dependency left is C++ availability detection. https://bugzilla.gnome.org/show_bug.cgi?id=795107
25 lines
712 B
Meson
25 lines
712 B
Meson
x264_sources = [
|
|
'gstx264enc.c',
|
|
]
|
|
|
|
x264_dep = dependency('x264', required : get_option('x264'))
|
|
|
|
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,
|
|
)
|
|
pkgconfig.generate(gstx264, install_dir : plugins_pkgconfig_install_dir)
|
|
|
|
install_data(sources: 'GstX264Enc.prs', install_dir: presetdir)
|
|
endif
|