blob: ea467e75fe01540c23f5f1944b4877ac6b42221f [file] [log] [blame]
Jayant Chowdhary5033aa12018-07-24 11:56:19 -07001// Copyright 2018 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//
16// libcameraservice
17//
18
Bob Badourc8375042021-02-12 21:02:31 -080019package {
20 default_applicable_licenses: [
21 "frameworks_av_services_camera_libcameraservice_license",
22 ],
23}
24
25// Added automatically by a large-scale-change
26// See: http://go/android-license-faq
27license {
28 name: "frameworks_av_services_camera_libcameraservice_license",
29 visibility: [":__subpackages__"],
30 license_kinds: [
31 "SPDX-license-identifier-Apache-2.0",
32 ],
33 license_text: [
34 "NOTICE",
35 ],
36}
37
Devin Moore65ca53f2023-05-23 17:34:38 +000038cc_defaults {
39 name: "libcameraservice_deps",
40
41 shared_libs: [
42 "libactivitymanager_aidl",
43 "libbase",
44 "libdl",
45 "libui",
46 "liblog",
47 "libutilscallstack",
48 "libutils",
49 "libbinder",
50 "libbinder_ndk",
51 "libactivitymanager_aidl",
52 "libpermission",
53 "libcutils",
54 "libexif",
55 "libmedia",
56 "libmediautils",
57 "libcamera_client",
58 "libcamera_metadata",
59 "libfmq",
60 "libgui",
61 "libhardware",
62 "libhidlbase",
63 "libimage_io",
64 "libjpeg",
65 "libultrahdr",
66 "libmedia_codeclist",
67 "libmedia_omx",
68 "libmemunreachable",
Jyoti Bhayana3128fda2023-04-27 18:27:56 -070069 "libprocessgroup",
70 "libprocinfo",
Devin Moore65ca53f2023-05-23 17:34:38 +000071 "libsensorprivacy",
72 "libstagefright",
73 "libstagefright_foundation",
74 "libxml2",
75 "libyuv",
76 "android.hardware.camera.common@1.0",
77 "android.hardware.camera.device@1.0",
78 "android.hardware.camera.device@3.2",
79 "android.hardware.camera.device@3.3",
80 "android.hardware.camera.device@3.4",
81 "android.hardware.camera.device@3.5",
82 "android.hardware.camera.device@3.6",
83 "android.hardware.camera.device@3.7",
84 "android.hardware.common-V2-ndk",
85 "android.hardware.common.fmq-V1-ndk",
86 "android.hardware.graphics.common-V4-ndk",
87 "media_permission-aidl-cpp",
Eino-Ville Talvalaae70f8c2023-08-18 10:10:55 -070088 "server_configurable_flags",
Devin Moore65ca53f2023-05-23 17:34:38 +000089 ],
90
91 static_libs: [
92 "android.frameworks.cameraservice.common@2.0",
93 "android.frameworks.cameraservice.service@2.0",
94 "android.frameworks.cameraservice.service@2.1",
95 "android.frameworks.cameraservice.service@2.2",
96 "android.frameworks.cameraservice.device@2.0",
97 "android.frameworks.cameraservice.device@2.1",
98 "android.frameworks.cameraservice.common-V1-ndk",
99 "android.frameworks.cameraservice.service-V1-ndk",
100 "android.frameworks.cameraservice.device-V1-ndk",
101 "android.hardware.camera.common-V1-ndk",
102 "android.hardware.camera.device-V2-ndk",
103 "android.hardware.camera.metadata-V2-ndk",
104 "android.hardware.camera.provider@2.4",
105 "android.hardware.camera.provider@2.5",
106 "android.hardware.camera.provider@2.6",
107 "android.hardware.camera.provider@2.7",
108 "android.hardware.camera.provider-V2-ndk",
Eino-Ville Talvalaae70f8c2023-08-18 10:10:55 -0700109 "camera_platform_flags_c_lib",
Devin Moore65ca53f2023-05-23 17:34:38 +0000110 "libaidlcommonsupport",
Eino-Ville Talvalaae70f8c2023-08-18 10:10:55 -0700111 "libbinderthreadstateutils",
112 "libcameraservice_device_independent",
Devin Moore65ca53f2023-05-23 17:34:38 +0000113 "libdynamic_depth",
114 "libprocessinfoservice_aidl",
Devin Moore65ca53f2023-05-23 17:34:38 +0000115 "media_permission-aidl-cpp",
Devin Moore65ca53f2023-05-23 17:34:38 +0000116 ],
117}
118
119cc_library {
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700120 name: "libcameraservice",
121
Devin Moore65ca53f2023-05-23 17:34:38 +0000122 defaults: [
123 "libcameraservice_deps",
124 ],
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700125 // Camera service source
126
127 srcs: [
128 "CameraService.cpp",
Ravneet98ffa752022-03-02 07:22:46 +0000129 "CameraServiceWatchdog.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700130 "CameraFlashlight.cpp",
131 "common/Camera2ClientBase.cpp",
132 "common/CameraDeviceBase.cpp",
Yin-Chia Yehb978c382019-10-30 00:22:37 -0700133 "common/CameraOfflineSessionBase.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700134 "common/CameraProviderManager.cpp",
135 "common/FrameProcessorBase.cpp",
Jayant Chowdhary0bd38522021-11-05 17:49:27 -0700136 "common/hidl/HidlProviderInfo.cpp",
Jayant Chowdharya04055f2022-01-03 02:07:49 +0000137 "common/aidl/AidlProviderInfo.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700138 "api1/Camera2Client.cpp",
139 "api1/client2/Parameters.cpp",
140 "api1/client2/FrameProcessor.cpp",
141 "api1/client2/StreamingProcessor.cpp",
142 "api1/client2/JpegProcessor.cpp",
143 "api1/client2/CallbackProcessor.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700144 "api1/client2/CaptureSequencer.cpp",
145 "api1/client2/ZslProcessor.cpp",
146 "api2/CameraDeviceClient.cpp",
Emilian Peevb2bc5a42019-11-20 16:02:14 -0800147 "api2/CameraOfflineSessionClient.cpp",
Emilian Peev538c90e2018-12-17 18:03:19 +0000148 "api2/CompositeStream.cpp",
149 "api2/DepthCompositeStream.cpp",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -0800150 "api2/HeicEncoderInfoManager.cpp",
151 "api2/HeicCompositeStream.cpp",
Emilian Peev434248e2022-10-06 14:58:54 -0700152 "api2/JpegRCompositeStream.cpp",
Yin-Chia Yeh5fd603e2019-11-20 11:22:27 -0800153 "device3/BufferUtils.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700154 "device3/Camera3Device.cpp",
Yin-Chia Yehb978c382019-10-30 00:22:37 -0700155 "device3/Camera3OfflineSession.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700156 "device3/Camera3Stream.cpp",
157 "device3/Camera3IOStreamBase.cpp",
158 "device3/Camera3InputStream.cpp",
159 "device3/Camera3OutputStream.cpp",
Ivan Lozanoc0ad82f2020-07-30 09:32:57 -0400160 "device3/Camera3FakeStream.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700161 "device3/Camera3SharedOutputStream.cpp",
162 "device3/StatusTracker.cpp",
163 "device3/Camera3BufferManager.cpp",
164 "device3/Camera3StreamSplitter.cpp",
Yin-Chia Yeh5fd603e2019-11-20 11:22:27 -0800165 "device3/Camera3OutputStreamInterface.cpp",
166 "device3/Camera3OutputUtils.cpp",
Cliff Wuc2ad9c82021-04-21 00:58:58 +0800167 "device3/Camera3DeviceInjectionMethods.cpp",
Jayant Chowdhary9255ce02021-07-15 11:18:17 -0700168 "device3/UHRCropAndMeteringRegionMapper.cpp",
Shuzhen Wangba92d772022-04-11 11:47:24 -0700169 "device3/PreviewFrameSpacer.cpp",
Jayant Chowdhary22441f32021-12-26 18:35:41 -0800170 "device3/hidl/HidlCamera3Device.cpp",
171 "device3/hidl/HidlCamera3OfflineSession.cpp",
172 "device3/hidl/HidlCamera3OutputUtils.cpp",
Jayant Chowdhary35642f22022-01-08 00:39:39 +0000173 "device3/aidl/AidlCamera3Device.cpp",
174 "device3/aidl/AidlCamera3OutputUtils.cpp",
175 "device3/aidl/AidlCamera3OfflineSession.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700176 "gui/RingBufferConsumer.cpp",
Jayant Chowdhary0c947272018-08-15 14:42:04 -0700177 "hidl/AidlCameraDeviceCallbacks.cpp",
Jayant Chowdhary94f79a92018-08-15 13:57:17 -0700178 "hidl/AidlCameraServiceListener.cpp",
Jayant Chowdhary0c947272018-08-15 14:42:04 -0700179 "hidl/HidlCameraDeviceUser.cpp",
180 "hidl/HidlCameraService.cpp",
Jayant Chowdhary2f686522022-05-09 14:52:16 +0000181 "hidl/Utils.cpp",
Avichal Rakeshfcb78cb2022-10-27 15:45:54 -0700182 "aidl/AidlCameraDeviceCallbacks.cpp",
183 "aidl/AidlCameraDeviceUser.cpp",
184 "aidl/AidlCameraService.cpp",
185 "aidl/AidlCameraServiceListener.cpp",
186 "aidl/AidlUtils.cpp",
187 "aidl/DeathPipe.cpp",
Shuzhen Wang316781a2020-08-18 18:11:01 -0700188 "utils/CameraServiceProxyWrapper.cpp",
Jayant Chowdhary2bbdce42020-01-12 14:55:41 -0800189 "utils/CameraThreadState.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700190 "utils/CameraTraces.cpp",
191 "utils/AutoConditionLock.cpp",
Jyoti Bhayana3128fda2023-04-27 18:27:56 -0700192 "utils/SchedulingPolicyUtils.cpp",
Jayant Chowdhary2bbdce42020-01-12 14:55:41 -0800193 "utils/SessionConfigurationUtils.cpp",
Jayant Chowdharyc67af1b2022-04-07 18:05:04 +0000194 "utils/SessionConfigurationUtilsHidl.cpp",
Shuzhen Wang316781a2020-08-18 18:11:01 -0700195 "utils/SessionStatsBuilder.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700196 "utils/TagMonitor.cpp",
197 "utils/LatencyHistogram.cpp",
198 ],
199
Marco Nelissen13aa1a42019-09-27 10:21:55 -0700200 header_libs: [
Austin Borgerce7594d2022-02-22 22:21:38 +0000201 "libdynamic_depth-internal_headers",
202 "libdynamic_depth-public_headers",
Marco Nelissen7c96ea72020-01-10 15:46:22 -0800203 "libmediadrm_headers",
204 "libmediametrics_headers",
Marco Nelissen13aa1a42019-09-27 10:21:55 -0700205 ],
206
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700207 export_shared_lib_headers: [
208 "libbinder",
Steven Moreland09226a72021-04-05 23:18:44 +0000209 "libactivitymanager_aidl",
Steven Moreland5d6ea8f2021-04-13 01:02:53 +0000210 "libpermission",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700211 "libcamera_client",
212 "libfmq",
Michael Grooverd1d435a2018-12-18 17:39:42 -0800213 "libsensorprivacy",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700214 ],
215
216 include_dirs: [
217 "system/media/private/camera/include",
218 "frameworks/native/include/media/openmax",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700219 ],
220
221 export_include_dirs: ["."],
222
223 cflags: [
224 "-Wall",
225 "-Wextra",
226 "-Werror",
Emilian Peev538c90e2018-12-17 18:03:19 +0000227 "-Wno-ignored-qualifiers",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700228 ],
229
230}
Austin Borger6db81852021-12-08 20:51:54 +0000231
232cc_library_static {
Austin Borger886c62e2022-01-04 20:58:32 +0000233 name: "libcameraservice_device_independent",
Austin Borger6db81852021-12-08 20:51:54 +0000234 host_supported: true,
235
236 // Camera service source
237
238 srcs: [
Austin Borger94422aa2021-12-14 22:59:59 +0000239 "common/DepthPhotoProcessor.cpp",
Austin Borgerea931242021-12-13 23:10:41 +0000240 "device3/CoordinateMapper.cpp",
241 "device3/DistortionMapper.cpp",
Austin Borger0c9eee22021-12-13 23:36:39 +0000242 "device3/RotateAndCropMapper.cpp",
Austin Borgerab7b1f32021-12-13 23:50:25 +0000243 "device3/ZoomRatioMapper.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000244 "utils/ExifUtils.cpp",
Austin Borgerea931242021-12-13 23:10:41 +0000245 "utils/SessionConfigurationUtilsHost.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000246 ],
247
Austin Borgerce7594d2022-02-22 22:21:38 +0000248 header_libs: [
249 "libdynamic_depth-internal_headers",
250 "libdynamic_depth-public_headers",
251 ],
252
Austin Borger6db81852021-12-08 20:51:54 +0000253 shared_libs: [
254 "libbase",
255 "libbinder",
256 "libcamera_metadata",
Austin Borger94422aa2021-12-14 22:59:59 +0000257 "libdynamic_depth",
Austin Borger6db81852021-12-08 20:51:54 +0000258 "libexif",
Austin Borger94422aa2021-12-14 22:59:59 +0000259 "libjpeg",
Austin Borger6db81852021-12-08 20:51:54 +0000260 "liblog",
261 "libutils",
Austin Borger94422aa2021-12-14 22:59:59 +0000262 "libxml2",
Austin Borger6db81852021-12-08 20:51:54 +0000263 ],
264
265 include_dirs: [
266 "frameworks/av/camera/include",
267 "frameworks/av/camera/include/camera",
268 ],
269
270 export_include_dirs: ["."],
271
272 cflags: [
273 "-Wall",
274 "-Wextra",
275 "-Werror",
276 "-Wno-ignored-qualifiers",
277 ],
278
Ray Essick8fc402a2022-02-16 15:08:55 -0800279}