From 185574b741f0eca6c6225f4dec6be847aa73738f Mon Sep 17 00:00:00 2001 From: Hirokazu Honda Date: Sat, 3 Apr 2021 22:10:12 +0900 Subject: 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 Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/libcamera/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libcamera/meson.build') diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 815629db..e0a48aa2 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -148,6 +148,7 @@ libcamera = shared_library('camera', libcamera_sources, install : true, link_with : libcamera_link_with, + cpp_args : libcamera_cpp_args, include_directories : includes, objects : libcamera_objects, build_rpath : '/', -- cgit v1.2.1