mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-26 01:55:51 +03:00
android: Define OS_CHROMEOS macro if android_platform=cros
Android Camera HAL 3 API used in ChromeOS has a ChromeOS own extension, for example, crop_rotate_scale_degrees in camera3_stream. As those extensions are not available on Android platforms, introduce a OS_CHROMEOS macro that can be used to compile CrOS-specific code conditionally. The macro is defined if and only if android_platform is 'cros'. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
cc0dc7f611
commit
185574b741
3 changed files with 6 additions and 0 deletions
|
@ -35,6 +35,10 @@ endif
|
|||
|
||||
android_deps += [libyuv_dep]
|
||||
|
||||
if get_option('android_platform') == 'cros'
|
||||
libcamera_cpp_args += [ '-DOS_CHROMEOS']
|
||||
endif
|
||||
|
||||
subdir('cros')
|
||||
|
||||
android_hal_sources = files([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue