| // Copyright 2021 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. |
| |
| package { |
| default_applicable_licenses: [ |
| "frameworks_av_services_camera_libcameraservice_license", |
| ], |
| } |
| |
| cc_test { |
| name: "cameraservice_test", |
| |
| include_dirs: [ |
| "system/media/private/camera/include", |
| "external/dynamic_depth/includes", |
| "external/dynamic_depth/internal", |
| ], |
| |
| header_libs: [ |
| "libmedia_headers", |
| ], |
| |
| defaults: [ |
| "libcameraservice_deps", |
| ], |
| |
| shared_libs: [ |
| "libbase", |
| "libbinder", |
| "libcutils", |
| "libhidlbase", |
| "liblog", |
| "libcamera_client", |
| "libcamera_metadata", |
| "libui", |
| "libutils", |
| "libjpeg", |
| "libexif", |
| "android.companion.virtualdevice.flags-aconfig-cc", |
| "android.hardware.camera.common@1.0", |
| "android.hardware.camera.device@1.0", |
| "android.hardware.camera.device@3.2", |
| "android.hardware.camera.device@3.4", |
| "android.hardware.camera.device@3.7", |
| "android.hidl.token@1.0-utils", |
| "camera_platform_flags_c_lib", |
| ], |
| |
| static_libs: [ |
| "android.hardware.camera.provider@2.4", |
| "android.hardware.camera.provider@2.5", |
| "android.hardware.camera.provider@2.6", |
| "android.hardware.camera.provider@2.7", |
| "android.hardware.camera.provider-V3-ndk", |
| "libcameraservice", |
| "libgmock", |
| "libflagtest", |
| ], |
| |
| srcs: [ |
| "CameraPermissionsTest.cpp", |
| "CameraProviderManagerTest.cpp", |
| "ClientManagerTest.cpp", |
| "DepthProcessorTest.cpp", |
| "DistortionMapperTest.cpp", |
| "ExifUtilsTest.cpp", |
| "NV12Compressor.cpp", |
| "RotateAndCropMapperTest.cpp", |
| "ZoomRatioTest.cpp", |
| ], |
| |
| cflags: [ |
| "-Wall", |
| "-Wextra", |
| "-Werror", |
| ], |
| |
| test_suites: ["device-tests"], |
| |
| } |
| |
| cc_test_host { |
| name: "cameraservice_test_host", |
| |
| include_dirs: [ |
| "frameworks/av/camera/include", |
| "frameworks/av/camera/include/camera", |
| "frameworks/native/libs/binder/include_activitymanager" |
| ], |
| |
| shared_libs: [ |
| "libactivity_manager_procstate_aidl-cpp", |
| "libbase", |
| "libbinder", |
| "libcamera_metadata", |
| "libdynamic_depth", |
| "libexif", |
| "libjpeg", |
| "liblog", |
| "libutils", |
| "camera_platform_flags_c_lib", |
| ], |
| |
| static_libs: [ |
| "libcamera_client_host", |
| "libcameraservice_device_independent", |
| "libgmock", |
| ], |
| |
| srcs: [ |
| "ClientManagerTest.cpp", |
| "DepthProcessorTest.cpp", |
| "DistortionMapperTest.cpp", |
| "ExifUtilsTest.cpp", |
| "NV12Compressor.cpp", |
| "RotateAndCropMapperTest.cpp", |
| "ZoomRatioTest.cpp", |
| ], |
| |
| cflags: [ |
| "-Wall", |
| "-Wextra", |
| "-Werror", |
| ], |
| |
| test_suites: ["device-tests"], |
| |
| } |