blob: bbfe3f9bd8836df3750e5e6ff298a39e3b80c58d [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",
47 "android.hardware.camera.device@1.0",
48 "android.hardware.camera.device@3.2",
49 "android.hardware.camera.device@3.4",
50 "android.hardware.camera.device@3.7",
51 "android.hidl.token@1.0-utils",
52 ],
53
54 static_libs: [
55 "libgmock",
56 ],
57
58 srcs: [
59 "CameraProviderManagerTest.cpp",
60 "ClientManagerTest.cpp",
61 "DepthProcessorTest.cpp",
62 "DistortionMapperTest.cpp",
63 "ExifUtilsTest.cpp",
64 "NV12Compressor.cpp",
65 "RotateAndCropMapperTest.cpp",
66 "ZoomRatioTest.cpp",
67 ],
68
69 cflags: [
70 "-Wall",
71 "-Wextra",
72 "-Werror",
73 ],
74
75 test_suites: ["device-tests"],
76
Austin Borger6db81852021-12-08 20:51:54 +000077}
78
79cc_test_host {
80 name: "cameraservice_test_host",
81
82 include_dirs: [
83 "frameworks/av/camera/include",
84 "frameworks/av/camera/include/camera",
Austin Borgerb6c06822021-12-13 20:23:35 +000085 "frameworks/native/libs/binder/include_activitymanager"
Austin Borger6db81852021-12-08 20:51:54 +000086 ],
87
88 shared_libs: [
Austin Borgerb6c06822021-12-13 20:23:35 +000089 "libactivity_manager_procstate_aidl-cpp",
Austin Borger6db81852021-12-08 20:51:54 +000090 "libbase",
91 "libbinder",
92 "libcamera_metadata",
Austin Borger94422aa2021-12-14 22:59:59 +000093 "libdynamic_depth",
Austin Borger6db81852021-12-08 20:51:54 +000094 "libexif",
Austin Borger94422aa2021-12-14 22:59:59 +000095 "libjpeg",
Austin Borger6db81852021-12-08 20:51:54 +000096 "liblog",
97 "libutils",
98 ],
99
100 static_libs: [
101 "libcamera_client_host",
102 "libcameraservice_host",
103 "libgmock",
104 ],
105
106 srcs: [
Austin Borgerb6c06822021-12-13 20:23:35 +0000107 "ClientManagerTest.cpp",
Austin Borger94422aa2021-12-14 22:59:59 +0000108 "DepthProcessorTest.cpp",
Austin Borgerea931242021-12-13 23:10:41 +0000109 "DistortionMapperTest.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000110 "ExifUtilsTest.cpp",
Austin Borger94422aa2021-12-14 22:59:59 +0000111 "NV12Compressor.cpp",
Austin Borger0c9eee22021-12-13 23:36:39 +0000112 "RotateAndCropMapperTest.cpp",
Austin Borgerab7b1f32021-12-13 23:50:25 +0000113 "ZoomRatioTest.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000114 ],
115
116 cflags: [
117 "-Wall",
118 "-Wextra",
119 "-Werror",
120 ],
121
122 test_suites: ["device-tests"],
123
Austin Borger485c2472021-12-01 05:08:12 +0000124}