blob: abc3ecfaaa33d81adaab61729fcec7d78dc61ddf [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",
Eino-Ville Talvala6f1a9c12023-09-14 17:26:28 -070087 "camera_platform_flags_c_lib",
Devin Moore65ca53f2023-05-23 17:34:38 +000088 "media_permission-aidl-cpp",
89 ],
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",
109 "libaidlcommonsupport",
Eino-Ville Talvalaae70f8c2023-08-18 10:10:55 -0700110 "libbinderthreadstateutils",
111 "libcameraservice_device_independent",
Devin Moore65ca53f2023-05-23 17:34:38 +0000112 "libdynamic_depth",
113 "libprocessinfoservice_aidl",
Devin Moore65ca53f2023-05-23 17:34:38 +0000114 "media_permission-aidl-cpp",
Devin Moore65ca53f2023-05-23 17:34:38 +0000115 ],
116}
117
118cc_library {
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700119 name: "libcameraservice",
120
Devin Moore65ca53f2023-05-23 17:34:38 +0000121 defaults: [
122 "libcameraservice_deps",
123 ],
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700124 // Camera service source
125
126 srcs: [
127 "CameraService.cpp",
Ravneet98ffa752022-03-02 07:22:46 +0000128 "CameraServiceWatchdog.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700129 "CameraFlashlight.cpp",
130 "common/Camera2ClientBase.cpp",
131 "common/CameraDeviceBase.cpp",
Yin-Chia Yehb978c382019-10-30 00:22:37 -0700132 "common/CameraOfflineSessionBase.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700133 "common/CameraProviderManager.cpp",
134 "common/FrameProcessorBase.cpp",
Jayant Chowdhary0bd38522021-11-05 17:49:27 -0700135 "common/hidl/HidlProviderInfo.cpp",
Jayant Chowdharya04055f2022-01-03 02:07:49 +0000136 "common/aidl/AidlProviderInfo.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700137 "api1/Camera2Client.cpp",
138 "api1/client2/Parameters.cpp",
139 "api1/client2/FrameProcessor.cpp",
140 "api1/client2/StreamingProcessor.cpp",
141 "api1/client2/JpegProcessor.cpp",
142 "api1/client2/CallbackProcessor.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700143 "api1/client2/CaptureSequencer.cpp",
144 "api1/client2/ZslProcessor.cpp",
145 "api2/CameraDeviceClient.cpp",
Emilian Peevb2bc5a42019-11-20 16:02:14 -0800146 "api2/CameraOfflineSessionClient.cpp",
Emilian Peev538c90e2018-12-17 18:03:19 +0000147 "api2/CompositeStream.cpp",
148 "api2/DepthCompositeStream.cpp",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -0800149 "api2/HeicEncoderInfoManager.cpp",
150 "api2/HeicCompositeStream.cpp",
Emilian Peev434248e2022-10-06 14:58:54 -0700151 "api2/JpegRCompositeStream.cpp",
Yin-Chia Yeh5fd603e2019-11-20 11:22:27 -0800152 "device3/BufferUtils.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700153 "device3/Camera3Device.cpp",
Yin-Chia Yehb978c382019-10-30 00:22:37 -0700154 "device3/Camera3OfflineSession.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700155 "device3/Camera3Stream.cpp",
156 "device3/Camera3IOStreamBase.cpp",
157 "device3/Camera3InputStream.cpp",
158 "device3/Camera3OutputStream.cpp",
Ivan Lozanoc0ad82f2020-07-30 09:32:57 -0400159 "device3/Camera3FakeStream.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700160 "device3/Camera3SharedOutputStream.cpp",
161 "device3/StatusTracker.cpp",
162 "device3/Camera3BufferManager.cpp",
163 "device3/Camera3StreamSplitter.cpp",
Yin-Chia Yeh5fd603e2019-11-20 11:22:27 -0800164 "device3/Camera3OutputStreamInterface.cpp",
165 "device3/Camera3OutputUtils.cpp",
Cliff Wuc2ad9c82021-04-21 00:58:58 +0800166 "device3/Camera3DeviceInjectionMethods.cpp",
Jayant Chowdhary9255ce02021-07-15 11:18:17 -0700167 "device3/UHRCropAndMeteringRegionMapper.cpp",
Shuzhen Wangba92d772022-04-11 11:47:24 -0700168 "device3/PreviewFrameSpacer.cpp",
Jayant Chowdhary22441f32021-12-26 18:35:41 -0800169 "device3/hidl/HidlCamera3Device.cpp",
170 "device3/hidl/HidlCamera3OfflineSession.cpp",
171 "device3/hidl/HidlCamera3OutputUtils.cpp",
Jayant Chowdhary35642f22022-01-08 00:39:39 +0000172 "device3/aidl/AidlCamera3Device.cpp",
173 "device3/aidl/AidlCamera3OutputUtils.cpp",
174 "device3/aidl/AidlCamera3OfflineSession.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700175 "gui/RingBufferConsumer.cpp",
Jayant Chowdhary0c947272018-08-15 14:42:04 -0700176 "hidl/AidlCameraDeviceCallbacks.cpp",
Jayant Chowdhary94f79a92018-08-15 13:57:17 -0700177 "hidl/AidlCameraServiceListener.cpp",
Jayant Chowdhary0c947272018-08-15 14:42:04 -0700178 "hidl/HidlCameraDeviceUser.cpp",
179 "hidl/HidlCameraService.cpp",
Jayant Chowdhary2f686522022-05-09 14:52:16 +0000180 "hidl/Utils.cpp",
Avichal Rakeshfcb78cb2022-10-27 15:45:54 -0700181 "aidl/AidlCameraDeviceCallbacks.cpp",
182 "aidl/AidlCameraDeviceUser.cpp",
183 "aidl/AidlCameraService.cpp",
184 "aidl/AidlCameraServiceListener.cpp",
185 "aidl/AidlUtils.cpp",
186 "aidl/DeathPipe.cpp",
Shuzhen Wang316781a2020-08-18 18:11:01 -0700187 "utils/CameraServiceProxyWrapper.cpp",
Jayant Chowdhary2bbdce42020-01-12 14:55:41 -0800188 "utils/CameraThreadState.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700189 "utils/CameraTraces.cpp",
190 "utils/AutoConditionLock.cpp",
Jyoti Bhayana3128fda2023-04-27 18:27:56 -0700191 "utils/SchedulingPolicyUtils.cpp",
Jayant Chowdhary2bbdce42020-01-12 14:55:41 -0800192 "utils/SessionConfigurationUtils.cpp",
Jayant Chowdharyc67af1b2022-04-07 18:05:04 +0000193 "utils/SessionConfigurationUtilsHidl.cpp",
Shuzhen Wang316781a2020-08-18 18:11:01 -0700194 "utils/SessionStatsBuilder.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700195 "utils/TagMonitor.cpp",
196 "utils/LatencyHistogram.cpp",
197 ],
198
Marco Nelissen13aa1a42019-09-27 10:21:55 -0700199 header_libs: [
Austin Borgerce7594d2022-02-22 22:21:38 +0000200 "libdynamic_depth-internal_headers",
201 "libdynamic_depth-public_headers",
Marco Nelissen7c96ea72020-01-10 15:46:22 -0800202 "libmediadrm_headers",
203 "libmediametrics_headers",
Marco Nelissen13aa1a42019-09-27 10:21:55 -0700204 ],
205
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700206 export_shared_lib_headers: [
207 "libbinder",
Steven Moreland09226a72021-04-05 23:18:44 +0000208 "libactivitymanager_aidl",
Steven Moreland5d6ea8f2021-04-13 01:02:53 +0000209 "libpermission",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700210 "libcamera_client",
211 "libfmq",
Michael Grooverd1d435a2018-12-18 17:39:42 -0800212 "libsensorprivacy",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700213 ],
214
215 include_dirs: [
216 "system/media/private/camera/include",
217 "frameworks/native/include/media/openmax",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700218 ],
219
220 export_include_dirs: ["."],
221
222 cflags: [
223 "-Wall",
224 "-Wextra",
225 "-Werror",
Emilian Peev538c90e2018-12-17 18:03:19 +0000226 "-Wno-ignored-qualifiers",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700227 ],
228
229}
Austin Borger6db81852021-12-08 20:51:54 +0000230
231cc_library_static {
Austin Borger886c62e2022-01-04 20:58:32 +0000232 name: "libcameraservice_device_independent",
Austin Borger6db81852021-12-08 20:51:54 +0000233 host_supported: true,
234
235 // Camera service source
236
237 srcs: [
Austin Borger94422aa2021-12-14 22:59:59 +0000238 "common/DepthPhotoProcessor.cpp",
Austin Borgerea931242021-12-13 23:10:41 +0000239 "device3/CoordinateMapper.cpp",
240 "device3/DistortionMapper.cpp",
Austin Borger0c9eee22021-12-13 23:36:39 +0000241 "device3/RotateAndCropMapper.cpp",
Austin Borgerab7b1f32021-12-13 23:50:25 +0000242 "device3/ZoomRatioMapper.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000243 "utils/ExifUtils.cpp",
Austin Borgerea931242021-12-13 23:10:41 +0000244 "utils/SessionConfigurationUtilsHost.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000245 ],
246
Austin Borgerce7594d2022-02-22 22:21:38 +0000247 header_libs: [
248 "libdynamic_depth-internal_headers",
249 "libdynamic_depth-public_headers",
250 ],
251
Austin Borger6db81852021-12-08 20:51:54 +0000252 shared_libs: [
253 "libbase",
254 "libbinder",
255 "libcamera_metadata",
Austin Borger94422aa2021-12-14 22:59:59 +0000256 "libdynamic_depth",
Austin Borger6db81852021-12-08 20:51:54 +0000257 "libexif",
Austin Borger94422aa2021-12-14 22:59:59 +0000258 "libjpeg",
Austin Borger6db81852021-12-08 20:51:54 +0000259 "liblog",
260 "libutils",
Austin Borger94422aa2021-12-14 22:59:59 +0000261 "libxml2",
Austin Borger6db81852021-12-08 20:51:54 +0000262 ],
263
264 include_dirs: [
265 "frameworks/av/camera/include",
266 "frameworks/av/camera/include/camera",
267 ],
268
269 export_include_dirs: ["."],
270
271 cflags: [
272 "-Wall",
273 "-Wextra",
274 "-Werror",
275 "-Wno-ignored-qualifiers",
276 ],
277
Ray Essick8fc402a2022-02-16 15:08:55 -0800278}