test: Include specific headers instead of libcamera.h
Let's only pull required headers, to avoid slowing compilation down. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
#include <numeric>
|
||||
#include <vector>
|
||||
|
||||
#include <libcamera/event_dispatcher.h>
|
||||
#include <libcamera/timer.h>
|
||||
|
||||
#include "libcamera/internal/device_enumerator.h"
|
||||
#include "libcamera/internal/media_device.h"
|
||||
#include "libcamera/internal/v4l2_videodevice.h"
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <libcamera/event_dispatcher.h>
|
||||
#include <libcamera/framebuffer_allocator.h>
|
||||
#include <libcamera/timer.h>
|
||||
|
||||
#include "camera_test.h"
|
||||
#include "test.h"
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <libcamera/framebuffer_allocator.h>
|
||||
|
||||
#include "camera_test.h"
|
||||
#include "test.h"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#ifndef __LIBCAMERA_BUFFER_SOURCE_TEST_H__
|
||||
#define __LIBCAMERA_BUFFER_SOURCE_TEST_H__
|
||||
|
||||
#include <libcamera/libcamera.h>
|
||||
#include <libcamera/stream.h>
|
||||
|
||||
#include "libcamera/internal/media_device.h"
|
||||
#include "libcamera/internal/v4l2_videodevice.h"
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
#ifndef __LIBCAMERA_CAMERA_TEST_H__
|
||||
#define __LIBCAMERA_CAMERA_TEST_H__
|
||||
|
||||
#include <libcamera/libcamera.h>
|
||||
#include <memory>
|
||||
|
||||
#include <libcamera/camera.h>
|
||||
#include <libcamera/camera_manager.h>
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <libcamera/framebuffer_allocator.h>
|
||||
|
||||
#include "libcamera/internal/buffer.h"
|
||||
|
||||
#include "camera_test.h"
|
||||
|
||||
Reference in New Issue
Block a user