From 2b1a8f48f3a414e565cefb809f3e6a7c6aa5f8a7 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 6 Oct 2021 10:26:00 +0300 Subject: Split V4L2 code into separate libs Create v4l2++ library and pyv4l2, which are independent from the rest of the kms++. Signed-off-by: Tomi Valkeinen --- v4l2++/meson.build | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 v4l2++/meson.build (limited to 'v4l2++/meson.build') diff --git a/v4l2++/meson.build b/v4l2++/meson.build new file mode 100644 index 0000000..2f425d6 --- /dev/null +++ b/v4l2++/meson.build @@ -0,0 +1,32 @@ +libv4l2xx_sources = files([ + 'src/videodevice.cpp', + 'src/pixelformats.cpp', + 'src/helpers.cpp', +]) + +public_headers = [ + 'inc/v4l2++/videodevice.h', + 'inc/v4l2++/pixelformats.h', + 'inc/v4l2++/helpers.h', +] + +private_includes = include_directories('src', 'inc') +public_includes = include_directories('inc') + +libv4l2xx_deps = [ libfmt_dep ] + +libv4l2xx = library('v4l2++', + libv4l2xx_sources, + install : true, + include_directories : [ private_includes ], + dependencies : libv4l2xx_deps, + version : meson.project_version()) + + +libv4l2xx_dep = declare_dependency(include_directories : public_includes, + link_with : libv4l2xx) + +install_headers(public_headers, subdir : 'v4l2++') + +pkg = import('pkgconfig') +pkg.generate(libv4l2xx) -- cgit v1.2.3