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:
parent
2fa4ba01ff
commit
beed258a5a
6 changed files with 16 additions and 2 deletions
|
@ -12,6 +12,9 @@
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include <libcamera/event_dispatcher.h>
|
||||||
|
#include <libcamera/timer.h>
|
||||||
|
|
||||||
#include "libcamera/internal/device_enumerator.h"
|
#include "libcamera/internal/device_enumerator.h"
|
||||||
#include "libcamera/internal/media_device.h"
|
#include "libcamera/internal/media_device.h"
|
||||||
#include "libcamera/internal/v4l2_videodevice.h"
|
#include "libcamera/internal/v4l2_videodevice.h"
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#include <libcamera/event_dispatcher.h>
|
||||||
|
#include <libcamera/framebuffer_allocator.h>
|
||||||
|
#include <libcamera/timer.h>
|
||||||
|
|
||||||
#include "camera_test.h"
|
#include "camera_test.h"
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#include <libcamera/framebuffer_allocator.h>
|
||||||
|
|
||||||
#include "camera_test.h"
|
#include "camera_test.h"
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#ifndef __LIBCAMERA_BUFFER_SOURCE_TEST_H__
|
#ifndef __LIBCAMERA_BUFFER_SOURCE_TEST_H__
|
||||||
#define __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/media_device.h"
|
||||||
#include "libcamera/internal/v4l2_videodevice.h"
|
#include "libcamera/internal/v4l2_videodevice.h"
|
||||||
|
|
|
@ -7,7 +7,10 @@
|
||||||
#ifndef __LIBCAMERA_CAMERA_TEST_H__
|
#ifndef __LIBCAMERA_CAMERA_TEST_H__
|
||||||
#define __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;
|
using namespace libcamera;
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#include <libcamera/framebuffer_allocator.h>
|
||||||
|
|
||||||
#include "libcamera/internal/buffer.h"
|
#include "libcamera/internal/buffer.h"
|
||||||
|
|
||||||
#include "camera_test.h"
|
#include "camera_test.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue