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]
|
android_deps += [libyuv_dep]
|
||||||
|
|
||||||
|
if get_option('android_platform') == 'cros'
|
||||||
|
libcamera_cpp_args += [ '-DOS_CHROMEOS']
|
||||||
|
endif
|
||||||
|
|
||||||
subdir('cros')
|
subdir('cros')
|
||||||
|
|
||||||
android_hal_sources = files([
|
android_hal_sources = files([
|
||||||
|
|
|
@ -148,6 +148,7 @@ libcamera = shared_library('camera',
|
||||||
libcamera_sources,
|
libcamera_sources,
|
||||||
install : true,
|
install : true,
|
||||||
link_with : libcamera_link_with,
|
link_with : libcamera_link_with,
|
||||||
|
cpp_args : libcamera_cpp_args,
|
||||||
include_directories : includes,
|
include_directories : includes,
|
||||||
objects : libcamera_objects,
|
objects : libcamera_objects,
|
||||||
build_rpath : '/',
|
build_rpath : '/',
|
||||||
|
|
|
@ -11,6 +11,7 @@ else
|
||||||
ipa_sign_module = false
|
ipa_sign_module = false
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
libcamera_cpp_args = []
|
||||||
libcamera_objects = []
|
libcamera_objects = []
|
||||||
|
|
||||||
# The 'android' subdir must be processed first, and the build targets
|
# The 'android' subdir must be processed first, and the build targets
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue