summaryrefslogtreecommitdiff
path: root/test/v4l2_compat
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-08-10 01:05:51 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-08-12 14:57:35 +0300
commit43632663229d7cb4396ca1cd14cc87a0fd2a9602 (patch)
tree28a0f03311b7e1cc71e4a9ff10728a66547d3b59 /test/v4l2_compat
parentb6369e7df246859c2a9f7196397413fb5e82d52f (diff)
libcamera: Fix header grouping
The libcamera coding style groups the C and C++ standard library headers in a single group. Fix the few offenders in the source tree. While at it, add a missing blank line between header groups in a separate location. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Diffstat (limited to 'test/v4l2_compat')
0 files changed, 0 insertions, 0 deletions
os;, 'utils.cpp', 'v4l2_controls.cpp', 'v4l2_device.cpp', 'v4l2_subdevice.cpp', 'v4l2_videodevice.cpp', ]) subdir('include') libcamera_internal_includes = include_directories('include') includes = [ libcamera_includes, libcamera_internal_includes, ] subdir('pipeline') subdir('proxy') libudev = dependency('libudev', required : false) if libudev.found() config_h.set('HAVE_LIBUDEV', 1) libcamera_sources += files([ 'device_enumerator_udev.cpp', ]) endif gen_controls = files('gen-controls.py') control_sources = [] foreach source : control_source_files input_files = files(source +'.yaml', source + '.cpp.in') control_sources += custom_target(source + '_cpp', input : input_files, output : source + '.cpp', depend_files : gen_controls, command : [gen_controls, '-o', '@OUTPUT@', '@INPUT@']) endforeach libcamera_sources += control_headers libcamera_sources += control_sources gen_version = join_paths(meson.source_root(), 'utils', 'gen-version.sh') version_cpp = vcs_tag(command : [gen_version, meson.build_root()], input : 'version.cpp.in', output : 'version.cpp', fallback : meson.project_version()) libcamera_sources += version_cpp libcamera_deps = [ cc.find_library('atomic', required: false), cc.find_library('dl'), libudev, dependency('threads'), ] libcamera_link_with = [] if get_option('android') libcamera_sources += android_hal_sources includes += android_includes libcamera_link_with += android_camera_metadata endif # We add '/' to the build_rpath as a 'safe' path to act as a boolean flag. # The build_rpath is stripped at install time by meson, so we determine at # runtime if the library is running from an installed location by checking # for the presence or abscence of the dynamic tag. libcamera = shared_library('camera', libcamera_sources, install : true, link_with : libcamera_link_with, include_directories : includes, build_rpath : '/', dependencies : libcamera_deps) libcamera_dep = declare_dependency(sources : [libcamera_api, libcamera_ipa_api, libcamera_h], include_directories : libcamera_includes, link_with : libcamera) subdir('proxy/worker')