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:
Laurent Pinchart 2020-08-23 21:56:37 +03:00
parent 2fa4ba01ff
commit beed258a5a
6 changed files with 16 additions and 2 deletions

View file

@ -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"

View file

@ -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"

View file

@ -7,6 +7,8 @@
#include <iostream>
#include <libcamera/framebuffer_allocator.h>
#include "camera_test.h"
#include "test.h"