mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
libcamera is depending on libdrm in libcamera_wrapper.cpp but it was implicitely including the header drm_fourcc.h with libcamera file pixel_format.h With this patch, the libcamera plugin should explicitely depends on libdrm as it needs DRM fourcc and should not depend on multiple inclusion from libcamera. Add a FourCC for Motion-JPEG compressed format. This is a temporary addition until the format gets merged in the upstream kernel.
16 lines
697 B
Meson
16 lines
697 B
Meson
libcamera_sources = ['libcamera.c',
|
|
'libcamera-device.c',
|
|
'libcamera-client.c',
|
|
'libcamera-source.c',
|
|
'libcamera_wrapper.cpp']
|
|
|
|
libdrm_dep = dependency('libdrm', version : '>= 2.4.98',
|
|
required : get_option('libcamera'))
|
|
if libdrm_dep.found()
|
|
libcameralib = shared_library('spa-libcamera',
|
|
libcamera_sources,
|
|
include_directories : [ spa_inc ],
|
|
dependencies : [ libudev_dep, libcamera_dep, pthread_lib, libdrm_dep ],
|
|
install : true,
|
|
install_dir : join_paths(spa_plugindir, 'libcamera'))
|
|
endif
|