summaryrefslogtreecommitdiff
path: root/src/libcamera/base
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-06-15 15:23:09 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-06-25 16:10:58 +0100
commit86eaa6c5e10dde632f17b900ea0e3aa4d61cb3b3 (patch)
tree3a3734822d82720e928f42296dd6b023e7ad3fd2 /src/libcamera/base
parentb96ab21cdbf49eef43c428b6e13b6e32bfb28f87 (diff)
libcamera/base: Introduce new base library
The libcamera-base.so will feature internal support functionality that is utilised by libcamera, and can be shared in other places. This new library provides a layer beneath libcamera which provides common abstractions to internal objects. A pkg-config file is generated and named libcamera-base.pc which allows components such as external IPA modules to link directly to this library if they need. Normal applications will reference this library through the Requires: statement provided by the libcamera.pc package configuration, and linkage will be handled automatically through the pkg-config mechanisms. No code is moved to this library yet, this patch only introduces the framework, construction and linkage. Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/libcamera/base')
-rw-r--r--src/libcamera/base/meson.build26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/libcamera/base/meson.build b/src/libcamera/base/meson.build
new file mode 100644
index 00000000..e8384602
--- /dev/null
+++ b/src/libcamera/base/meson.build
@@ -0,0 +1,26 @@
+# SPDX-License-Identifier: CC0-1.0
+
+libcamera_base_sources = files([
+])
+
+libcamera_base_deps = [
+]
+
+libcamera_base_lib = shared_library('libcamera-base',
+ [libcamera_base_sources, libcamera_base_headers],
+ name_prefix : '',
+ install : true,
+ include_directories : libcamera_includes,
+ dependencies : libcamera_base_deps)
+
+libcamera_base = declare_dependency(sources : [
+ libcamera_base_headers,
+ ],
+ include_directories : libcamera_includes,
+ link_with : libcamera_base_lib)
+
+pkg_mod = import('pkgconfig')
+pkg_mod.generate(libcamera_base_lib,
+ version : '1.0',
+ description : 'Camera support base utility library',
+ subdirs : 'libcamera')