| # |
| # Copyright (C) 2022 The Android Open Source Project |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| |
| PRODUCT_VENDOR_PROPERTIES += \ |
| ro.camerax.extensions.enabled=true |
| |
| # Enable Camera Extension sample |
| ifeq ($(TARGET_USE_CAMERA_ADVANCED_EXTENSION_SAMPLE),true) |
| PRODUCT_PACKAGES += \ |
| androidx.camera.extensions.impl.advanced advancedSample_camera_extensions.xml \ |
| libencoderjpeg_jni |
| else |
| PRODUCT_PACKAGES += androidx.camera.extensions.impl sample_camera_extensions.xml |
| endif |
| |
| PRODUCT_SOONG_NAMESPACES += hardware/google/camera |
| PRODUCT_SOONG_NAMESPACES += hardware/google/camera/devices/EmulatedCamera |
| |
| # TODO(b/257379485): 3A is incrementally enabling cuttlefish build for native |
| # code coverage support, temporary require separate namespace for folders that |
| # can be built successfully. |
| PRODUCT_SOONG_NAMESPACES += vendor/google/camera/google_3a/libs_v4/g3ABase |
| PRODUCT_SOONG_NAMESPACES += vendor/google/camera/google_3a/libs_v4/gAF |
| PRODUCT_SOONG_NAMESPACES += vendor/google/camera/google_3a/libs_v4/gHAWB/native_coverage |
| |
| PRODUCT_COPY_FILES += \ |
| frameworks/native/data/etc/android.hardware.camera.concurrent.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.concurrent.xml \ |
| frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ |
| frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \ |
| frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \ |
| hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_back.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_back.json \ |
| hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_front.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_front.json \ |
| hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_depth.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_depth.json |
| |
| ifeq ($(TARGET_USE_VSOCK_CAMERA_HAL_IMPL),true) |
| PRODUCT_PACKAGES += \ |
| android.hardware.camera.provider@2.7-external-vsock-service \ |
| android.hardware.camera.provider@2.7-impl-cuttlefish |
| DEVICE_MANIFEST_FILE += \ |
| device/google/cuttlefish/guest/hals/camera/manifest.xml |
| else |
| PRODUCT_PACKAGES += com.google.emulated.camera.provider.hal |
| PRODUCT_PACKAGES += com.google.emulated.camera.provider.hal.fastscenecycle |
| endif |