blob: 36165721840cd71fcc76364e6e1a0f4477c9907b [file] [log] [blame]
Austin Borger485c2472021-12-01 05:08:12 +00001// 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
15package {
16 default_applicable_licenses: [
17 "frameworks_av_services_camera_libcameraservice_license",
18 ],
19}
20
21cc_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 Chowdharya04055f2022-01-03 02:07:49 +000047 "android.hardware.camera.provider-V1-ndk",
Austin Borger485c2472021-12-01 05:08:12 +000048 "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 Borger6db81852021-12-08 20:51:54 +000078}
79
80cc_test_host {
81 name: "cameraservice_test_host",
82
83 include_dirs: [
84 "frameworks/av/camera/include",
85 "frameworks/av/camera/include/camera",
Austin Borgerb6c06822021-12-13 20:23:35 +000086 "frameworks/native/libs/binder/include_activitymanager"
Austin Borger6db81852021-12-08 20:51:54 +000087 ],
88
89 shared_libs: [
Austin Borgerb6c06822021-12-13 20:23:35 +000090 "libactivity_manager_procstate_aidl-cpp",
Austin Borger6db81852021-12-08 20:51:54 +000091 "libbase",
92 "libbinder",
93 "libcamera_metadata",
Austin Borger94422aa2021-12-14 22:59:59 +000094 "libdynamic_depth",
Austin Borger6db81852021-12-08 20:51:54 +000095 "libexif",
Austin Borger94422aa2021-12-14 22:59:59 +000096 "libjpeg",
Austin Borger6db81852021-12-08 20:51:54 +000097 "liblog",
98 "libutils",
99 ],
100
101 static_libs: [
102 "libcamera_client_host",
Austin Borger886c62e2022-01-04 20:58:32 +0000103 "libcameraservice_device_independent",
Austin Borger6db81852021-12-08 20:51:54 +0000104 "libgmock",
105 ],
106
107 srcs: [
Austin Borgerb6c06822021-12-13 20:23:35 +0000108 "ClientManagerTest.cpp",
Austin Borger94422aa2021-12-14 22:59:59 +0000109 "DepthProcessorTest.cpp",
Austin Borgerea931242021-12-13 23:10:41 +0000110 "DistortionMapperTest.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000111 "ExifUtilsTest.cpp",
Austin Borger94422aa2021-12-14 22:59:59 +0000112 "NV12Compressor.cpp",
Austin Borger0c9eee22021-12-13 23:36:39 +0000113 "RotateAndCropMapperTest.cpp",
Austin Borgerab7b1f32021-12-13 23:50:25 +0000114 "ZoomRatioTest.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000115 ],
116
117 cflags: [
118 "-Wall",
119 "-Wextra",
120 "-Werror",
121 ],
122
123 test_suites: ["device-tests"],
124
Emilian Peev2295df72021-11-12 18:14:10 -0800125}