| Austin Borger | 485c247 | 2021-12-01 05:08:12 +0000 | [diff] [blame] | 1 | // Copyright 2021 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package { |
| 16 | default_applicable_licenses: [ |
| 17 | "frameworks_av_services_camera_libcameraservice_license", |
| 18 | ], |
| 19 | } |
| 20 | |
| 21 | cc_test { |
| 22 | name: "cameraservice_test", |
| 23 | |
| 24 | include_dirs: [ |
| 25 | "system/media/private/camera/include", |
| 26 | "external/dynamic_depth/includes", |
| 27 | "external/dynamic_depth/internal", |
| 28 | ], |
| 29 | |
| 30 | shared_libs: [ |
| 31 | "libbase", |
| 32 | "libcutils", |
| 33 | "libcameraservice", |
| 34 | "libhidlbase", |
| 35 | "liblog", |
| 36 | "libcamera_client", |
| 37 | "libcamera_metadata", |
| 38 | "libui", |
| 39 | "libutils", |
| 40 | "libjpeg", |
| 41 | "libexif", |
| 42 | "android.hardware.camera.common@1.0", |
| 43 | "android.hardware.camera.provider@2.4", |
| 44 | "android.hardware.camera.provider@2.5", |
| 45 | "android.hardware.camera.provider@2.6", |
| 46 | "android.hardware.camera.provider@2.7", |
| Jayant Chowdhary | a04055f | 2022-01-03 02:07:49 +0000 | [diff] [blame] | 47 | "android.hardware.camera.provider-V1-ndk", |
| Austin Borger | 485c247 | 2021-12-01 05:08:12 +0000 | [diff] [blame] | 48 | "android.hardware.camera.device@1.0", |
| 49 | "android.hardware.camera.device@3.2", |
| 50 | "android.hardware.camera.device@3.4", |
| 51 | "android.hardware.camera.device@3.7", |
| 52 | "android.hidl.token@1.0-utils", |
| 53 | ], |
| 54 | |
| 55 | static_libs: [ |
| 56 | "libgmock", |
| 57 | ], |
| 58 | |
| 59 | srcs: [ |
| 60 | "CameraProviderManagerTest.cpp", |
| 61 | "ClientManagerTest.cpp", |
| 62 | "DepthProcessorTest.cpp", |
| 63 | "DistortionMapperTest.cpp", |
| 64 | "ExifUtilsTest.cpp", |
| 65 | "NV12Compressor.cpp", |
| 66 | "RotateAndCropMapperTest.cpp", |
| 67 | "ZoomRatioTest.cpp", |
| 68 | ], |
| 69 | |
| 70 | cflags: [ |
| 71 | "-Wall", |
| 72 | "-Wextra", |
| 73 | "-Werror", |
| 74 | ], |
| 75 | |
| 76 | test_suites: ["device-tests"], |
| 77 | |
| Austin Borger | 6db8185 | 2021-12-08 20:51:54 +0000 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | cc_test_host { |
| 81 | name: "cameraservice_test_host", |
| 82 | |
| 83 | include_dirs: [ |
| 84 | "frameworks/av/camera/include", |
| 85 | "frameworks/av/camera/include/camera", |
| Austin Borger | b6c0682 | 2021-12-13 20:23:35 +0000 | [diff] [blame] | 86 | "frameworks/native/libs/binder/include_activitymanager" |
| Austin Borger | 6db8185 | 2021-12-08 20:51:54 +0000 | [diff] [blame] | 87 | ], |
| 88 | |
| 89 | shared_libs: [ |
| Austin Borger | b6c0682 | 2021-12-13 20:23:35 +0000 | [diff] [blame] | 90 | "libactivity_manager_procstate_aidl-cpp", |
| Austin Borger | 6db8185 | 2021-12-08 20:51:54 +0000 | [diff] [blame] | 91 | "libbase", |
| 92 | "libbinder", |
| 93 | "libcamera_metadata", |
| Austin Borger | 94422aa | 2021-12-14 22:59:59 +0000 | [diff] [blame] | 94 | "libdynamic_depth", |
| Austin Borger | 6db8185 | 2021-12-08 20:51:54 +0000 | [diff] [blame] | 95 | "libexif", |
| Austin Borger | 94422aa | 2021-12-14 22:59:59 +0000 | [diff] [blame] | 96 | "libjpeg", |
| Austin Borger | 6db8185 | 2021-12-08 20:51:54 +0000 | [diff] [blame] | 97 | "liblog", |
| 98 | "libutils", |
| 99 | ], |
| 100 | |
| 101 | static_libs: [ |
| 102 | "libcamera_client_host", |
| Austin Borger | 886c62e | 2022-01-04 20:58:32 +0000 | [diff] [blame] | 103 | "libcameraservice_device_independent", |
| Austin Borger | 6db8185 | 2021-12-08 20:51:54 +0000 | [diff] [blame] | 104 | "libgmock", |
| 105 | ], |
| 106 | |
| 107 | srcs: [ |
| Austin Borger | b6c0682 | 2021-12-13 20:23:35 +0000 | [diff] [blame] | 108 | "ClientManagerTest.cpp", |
| Austin Borger | 94422aa | 2021-12-14 22:59:59 +0000 | [diff] [blame] | 109 | "DepthProcessorTest.cpp", |
| Austin Borger | ea93124 | 2021-12-13 23:10:41 +0000 | [diff] [blame] | 110 | "DistortionMapperTest.cpp", |
| Austin Borger | 6db8185 | 2021-12-08 20:51:54 +0000 | [diff] [blame] | 111 | "ExifUtilsTest.cpp", |
| Austin Borger | 94422aa | 2021-12-14 22:59:59 +0000 | [diff] [blame] | 112 | "NV12Compressor.cpp", |
| Austin Borger | 0c9eee2 | 2021-12-13 23:36:39 +0000 | [diff] [blame] | 113 | "RotateAndCropMapperTest.cpp", |
| Austin Borger | ab7b1f3 | 2021-12-13 23:50:25 +0000 | [diff] [blame] | 114 | "ZoomRatioTest.cpp", |
| Austin Borger | 6db8185 | 2021-12-08 20:51:54 +0000 | [diff] [blame] | 115 | ], |
| 116 | |
| 117 | cflags: [ |
| 118 | "-Wall", |
| 119 | "-Wextra", |
| 120 | "-Werror", |
| 121 | ], |
| 122 | |
| 123 | test_suites: ["device-tests"], |
| 124 | |
| Emilian Peev | 2295df7 | 2021-11-12 18:14:10 -0800 | [diff] [blame] | 125 | } |