Many tests other than the camera/ tests use a camera. To increase code sharing, move the base CameraTest class to the test library. The class becomes a helper that doesn't inherit from Test anymore (to avoid diamond inheritance issues when more such helpers will exist). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
20 lines
389 B
Meson
20 lines
389 B
Meson
libtest_sources = files([
|
|
'camera_test.cpp',
|
|
'test.cpp',
|
|
])
|
|
|
|
libtest = static_library('libtest', libtest_sources,
|
|
dependencies : libcamera_dep)
|
|
|
|
libtest_includes = include_directories('.')
|
|
|
|
test_libraries = [libtest]
|
|
|
|
test_includes_public = [
|
|
libtest_includes,
|
|
]
|
|
|
|
test_includes_internal = [
|
|
test_includes_public,
|
|
libcamera_internal_includes,
|
|
]
|