| { |
| 'includes': [ |
| '../../build/cros-camera-common.gypi', |
| ], |
| 'target_defaults': { |
| 'variables': { |
| 'deps': [ |
| 'cros-camera-android-headers', |
| 'libcbm', |
| 'libcamera_client', |
| 'libcamera_common', |
| 'libcamera_exif', |
| 'libcamera_metadata', |
| 'libcamera_timezone', |
| 'libjda', |
| 'libsync', |
| 'libyuv', |
| 're2', |
| ], |
| 'conditions': [ |
| ['USE_usb_camera_monocle == 1', { |
| 'deps': [ |
| 'librealtek-sdk', |
| ], |
| 'defines': [ |
| 'MONOCLE_QUIRKS=1', |
| ], |
| }], |
| ], |
| }, |
| }, |
| 'targets': [ |
| { |
| 'target_name': 'libcamera_hal', |
| 'type': 'shared_library', |
| 'dependencies': [ |
| '../../common/libcamera_jpeg.gyp:libcamera_jpeg', |
| '../../common/libcamera_metrics.gyp:libcamera_metrics', |
| ], |
| 'variables': { |
| 'mojo_root': '../../', |
| }, |
| 'includes': [ |
| '../../../common-mk/mojom_bindings_generator.gypi', |
| ], |
| 'sources': [ |
| '../../common/utils/camera_config_impl.cc', |
| '../../common/vendor_tag_manager.cc', |
| '../../mojo/cros_camera_enum.mojom', |
| 'cached_frame.cc', |
| 'camera_characteristics.cc', |
| 'camera_client.cc', |
| 'camera_hal.cc', |
| 'camera_hal_device_ops.cc', |
| 'capture_request.cc', |
| 'frame_buffer.cc', |
| 'image_processor.cc', |
| 'metadata_handler.cc', |
| 'quirks.cc', |
| 'sensor_handler.cc', |
| 'stream_format.cc', |
| 'test_pattern.cc', |
| 'v4l2_camera_device.cc', |
| 'vendor_tag.cc', |
| ], |
| 'conditions': [ |
| ['USE_usb_camera_monocle == 1', { |
| 'sources': [ |
| 'sensor_handler_monocle.cc', |
| ], |
| }], |
| ], |
| }, |
| ], |
| 'conditions': [ |
| ['USE_test == 1', { |
| 'targets': [ |
| { |
| 'target_name': 'image_processor_test', |
| 'type': 'executable', |
| 'includes': [ |
| '../../../common-mk/common_test.gypi', |
| ], |
| 'sources': [ |
| 'frame_buffer.cc', |
| 'image_processor.cc', |
| 'unittest/image_processor_test.cc', |
| ], |
| }, |
| ], |
| }], |
| ], |
| } |