[v2,10/14] libcamera: camera_sensor: Move related classes to subdirectory
diff mbox series

Message ID 20240315001613.2033-11-laurent.pinchart@ideasonboard.com
State Accepted
Commit 2a0baf47eb8a336f8378044dbeda9e7873a57d25
Headers show
Series
  • libcamera: Prepare for new camera sensor class
Related show

Commit Message

Laurent Pinchart March 15, 2024, 12:16 a.m. UTC
In preparation for adding alternative implementations of the
CameraSensor class, move the code to a subdirectory to avoid cluttering
the main src/libcamera/ directory.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
---
 src/libcamera/meson.build                               | 3 +--
 src/libcamera/{ => sensor}/camera_sensor.cpp            | 0
 src/libcamera/{ => sensor}/camera_sensor_properties.cpp | 0
 src/libcamera/sensor/meson.build                        | 6 ++++++
 4 files changed, 7 insertions(+), 2 deletions(-)
 rename src/libcamera/{ => sensor}/camera_sensor.cpp (100%)
 rename src/libcamera/{ => sensor}/camera_sensor_properties.cpp (100%)
 create mode 100644 src/libcamera/sensor/meson.build

Patch
diff mbox series

diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index 45f63e932e4f..2e7b0c77e63c 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -7,8 +7,6 @@  libcamera_sources = files([
     'camera_controls.cpp',
     'camera_lens.cpp',
     'camera_manager.cpp',
-    'camera_sensor.cpp',
-    'camera_sensor_properties.cpp',
     'color_space.cpp',
     'controls.cpp',
     'control_serializer.cpp',
@@ -69,6 +67,7 @@  subdir('converter')
 subdir('ipa')
 subdir('pipeline')
 subdir('proxy')
+subdir('sensor')
 
 null_dep = dependency('', required : false)
 
diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/sensor/camera_sensor.cpp
similarity index 100%
rename from src/libcamera/camera_sensor.cpp
rename to src/libcamera/sensor/camera_sensor.cpp
diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp
similarity index 100%
rename from src/libcamera/camera_sensor_properties.cpp
rename to src/libcamera/sensor/camera_sensor_properties.cpp
diff --git a/src/libcamera/sensor/meson.build b/src/libcamera/sensor/meson.build
new file mode 100644
index 000000000000..bf4b131a94b1
--- /dev/null
+++ b/src/libcamera/sensor/meson.build
@@ -0,0 +1,6 @@ 
+# SPDX-License-Identifier: CC0-1.0
+
+libcamera_sources += files([
+    'camera_sensor.cpp',
+    'camera_sensor_properties.cpp',
+])