diff options
Diffstat (limited to 'src/android/mm/meson.build')
-rw-r--r-- | src/android/mm/meson.build | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/android/mm/meson.build b/src/android/mm/meson.build new file mode 100644 index 00000000..e3e0484c --- /dev/null +++ b/src/android/mm/meson.build @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: CC0-1.0 + +platform = get_option('android_platform') +if platform == 'generic' + android_hal_sources += files(['generic_camera_buffer.cpp', + 'generic_frame_buffer_allocator.cpp']) + android_deps += [libdl] + + libhardware = dependency('libhardware', required : false) + if libhardware.found() + android_deps += [libhardware] + else + android_hal_sources += files(['libhardware_stub.c']) + endif +elif platform == 'cros' + android_hal_sources += files(['cros_camera_buffer.cpp', + 'cros_frame_buffer_allocator.cpp']) + android_deps += [dependency('libcros_camera')] +endif |