Commit 185574b7 authored by Hirokazu Honda's avatar Hirokazu Honda Committed by Laurent Pinchart
Browse files

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: default avatarHirokazu Honda <hiroh@chromium.org>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent cc0dc7f6
......@@ -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([
......
......@@ -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 : '/',
......
......@@ -11,6 +11,7 @@ else
ipa_sign_module = false
endif
libcamera_cpp_args = []
libcamera_objects = []
# The 'android' subdir must be processed first, and the build targets
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment