diff options
author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2021-10-06 10:26:00 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2021-10-06 10:44:26 +0300 |
commit | 2b1a8f48f3a414e565cefb809f3e6a7c6aa5f8a7 (patch) | |
tree | 3f274b92d00754e6a5980f07b2c9cefcbf2cae53 /v4l2++/meson.build | |
parent | f691ed65d6bcfff0abbc2d7ce58e560af3ee63dc (diff) |
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 <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'v4l2++/meson.build')
-rw-r--r-- | v4l2++/meson.build | 32 |
1 files changed, 32 insertions, 0 deletions
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) |