summaryrefslogtreecommitdiff
path: root/src/android/cros/meson.build
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2021-02-25 19:38:26 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2021-03-03 19:05:12 +0900
commit09b0801fdb1716c809b1b442015a237974bf6fc5 (patch)
tree39a55d4fbdd3dc3258b62ae90a6310ce227fccd3 /src/android/cros/meson.build
parentd8d6a78f223e14e3da7adf73ee54730ba0f1740b (diff)
cros: Support the new cros camera API with set_up and tear_down
Implement and expose the symbol and functions that the new cros camera API requires. Since we don't actually need them, leave them empty. Update meson accordingly. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/cros/meson.build')
-rw-r--r--src/android/cros/meson.build17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/android/cros/meson.build b/src/android/cros/meson.build
new file mode 100644
index 00000000..4aab0f20
--- /dev/null
+++ b/src/android/cros/meson.build
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: CC0-1.0
+
+if get_option('android_platform') != 'cros'
+ subdir_done()
+endif
+
+cros_hal_info_sources = files([
+ 'camera3_hal.cpp',
+])
+
+cros_hal_info = static_library('cros_hal_info',
+ cros_hal_info_sources,
+ dependencies : dependency('libcros_camera'),
+ c_args : '-Wno-shadow',
+ include_directories : android_includes)
+
+libcamera_objects += cros_hal_info.extract_objects('camera3_hal.cpp')