blob: af4c70cce13968d3b2fa3519aee62e7bfae441f6 [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",
Sally Qi6af6e312023-10-09 17:15:36 +000040 defaults: ["android.hardware.graphics.common-ndk_shared"],
Devin Moore65ca53f2023-05-23 17:34:38 +000041 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",
Eino-Ville Talvala6f1a9c12023-09-14 17:26:28 -070086 "camera_platform_flags_c_lib",
Devin Moore65ca53f2023-05-23 17:34:38 +000087 "media_permission-aidl-cpp",
88 ],
89
90 static_libs: [
91 "android.frameworks.cameraservice.common@2.0",
92 "android.frameworks.cameraservice.service@2.0",
93 "android.frameworks.cameraservice.service@2.1",
94 "android.frameworks.cameraservice.service@2.2",
95 "android.frameworks.cameraservice.device@2.0",
96 "android.frameworks.cameraservice.device@2.1",
97 "android.frameworks.cameraservice.common-V1-ndk",
98 "android.frameworks.cameraservice.service-V1-ndk",
99 "android.frameworks.cameraservice.device-V1-ndk",
100 "android.hardware.camera.common-V1-ndk",
101 "android.hardware.camera.device-V2-ndk",
102 "android.hardware.camera.metadata-V2-ndk",
103 "android.hardware.camera.provider@2.4",
104 "android.hardware.camera.provider@2.5",
105 "android.hardware.camera.provider@2.6",
106 "android.hardware.camera.provider@2.7",
107 "android.hardware.camera.provider-V2-ndk",
108 "libaidlcommonsupport",
Eino-Ville Talvalaae70f8c2023-08-18 10:10:55 -0700109 "libbinderthreadstateutils",
110 "libcameraservice_device_independent",
Devin Moore65ca53f2023-05-23 17:34:38 +0000111 "libdynamic_depth",
112 "libprocessinfoservice_aidl",
Devin Moore65ca53f2023-05-23 17:34:38 +0000113 "media_permission-aidl-cpp",
Devin Moore65ca53f2023-05-23 17:34:38 +0000114 ],
115}
116
117cc_library {
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700118 name: "libcameraservice",
119
Devin Moore65ca53f2023-05-23 17:34:38 +0000120 defaults: [
121 "libcameraservice_deps",
122 ],
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700123 // Camera service source
124
125 srcs: [
126 "CameraService.cpp",
Ravneet98ffa752022-03-02 07:22:46 +0000127 "CameraServiceWatchdog.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700128 "CameraFlashlight.cpp",
129 "common/Camera2ClientBase.cpp",
130 "common/CameraDeviceBase.cpp",
Yin-Chia Yehb978c382019-10-30 00:22:37 -0700131 "common/CameraOfflineSessionBase.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700132 "common/CameraProviderManager.cpp",
133 "common/FrameProcessorBase.cpp",
Jayant Chowdhary0bd38522021-11-05 17:49:27 -0700134 "common/hidl/HidlProviderInfo.cpp",
Jayant Chowdharya04055f2022-01-03 02:07:49 +0000135 "common/aidl/AidlProviderInfo.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700136 "api1/Camera2Client.cpp",
137 "api1/client2/Parameters.cpp",
138 "api1/client2/FrameProcessor.cpp",
139 "api1/client2/StreamingProcessor.cpp",
140 "api1/client2/JpegProcessor.cpp",
141 "api1/client2/CallbackProcessor.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700142 "api1/client2/CaptureSequencer.cpp",
143 "api1/client2/ZslProcessor.cpp",
144 "api2/CameraDeviceClient.cpp",
Emilian Peevb2bc5a42019-11-20 16:02:14 -0800145 "api2/CameraOfflineSessionClient.cpp",
Emilian Peev538c90e2018-12-17 18:03:19 +0000146 "api2/CompositeStream.cpp",
147 "api2/DepthCompositeStream.cpp",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -0800148 "api2/HeicEncoderInfoManager.cpp",
149 "api2/HeicCompositeStream.cpp",
Emilian Peev434248e2022-10-06 14:58:54 -0700150 "api2/JpegRCompositeStream.cpp",
Yin-Chia Yeh5fd603e2019-11-20 11:22:27 -0800151 "device3/BufferUtils.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700152 "device3/Camera3Device.cpp",
Yin-Chia Yehb978c382019-10-30 00:22:37 -0700153 "device3/Camera3OfflineSession.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700154 "device3/Camera3Stream.cpp",
155 "device3/Camera3IOStreamBase.cpp",
156 "device3/Camera3InputStream.cpp",
157 "device3/Camera3OutputStream.cpp",
Ivan Lozanoc0ad82f2020-07-30 09:32:57 -0400158 "device3/Camera3FakeStream.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700159 "device3/Camera3SharedOutputStream.cpp",
160 "device3/StatusTracker.cpp",
161 "device3/Camera3BufferManager.cpp",
162 "device3/Camera3StreamSplitter.cpp",
Yin-Chia Yeh5fd603e2019-11-20 11:22:27 -0800163 "device3/Camera3OutputStreamInterface.cpp",
164 "device3/Camera3OutputUtils.cpp",
Cliff Wuc2ad9c82021-04-21 00:58:58 +0800165 "device3/Camera3DeviceInjectionMethods.cpp",
Jayant Chowdhary9255ce02021-07-15 11:18:17 -0700166 "device3/UHRCropAndMeteringRegionMapper.cpp",
Shuzhen Wangba92d772022-04-11 11:47:24 -0700167 "device3/PreviewFrameSpacer.cpp",
Jayant Chowdhary22441f32021-12-26 18:35:41 -0800168 "device3/hidl/HidlCamera3Device.cpp",
169 "device3/hidl/HidlCamera3OfflineSession.cpp",
170 "device3/hidl/HidlCamera3OutputUtils.cpp",
Jayant Chowdhary35642f22022-01-08 00:39:39 +0000171 "device3/aidl/AidlCamera3Device.cpp",
172 "device3/aidl/AidlCamera3OutputUtils.cpp",
173 "device3/aidl/AidlCamera3OfflineSession.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700174 "gui/RingBufferConsumer.cpp",
Jayant Chowdhary0c947272018-08-15 14:42:04 -0700175 "hidl/AidlCameraDeviceCallbacks.cpp",
Jayant Chowdhary94f79a92018-08-15 13:57:17 -0700176 "hidl/AidlCameraServiceListener.cpp",
Jayant Chowdhary0c947272018-08-15 14:42:04 -0700177 "hidl/HidlCameraDeviceUser.cpp",
178 "hidl/HidlCameraService.cpp",
Jayant Chowdhary2f686522022-05-09 14:52:16 +0000179 "hidl/Utils.cpp",
Avichal Rakeshfcb78cb2022-10-27 15:45:54 -0700180 "aidl/AidlCameraDeviceCallbacks.cpp",
181 "aidl/AidlCameraDeviceUser.cpp",
182 "aidl/AidlCameraService.cpp",
183 "aidl/AidlCameraServiceListener.cpp",
184 "aidl/AidlUtils.cpp",
185 "aidl/DeathPipe.cpp",
Shuzhen Wang316781a2020-08-18 18:11:01 -0700186 "utils/CameraServiceProxyWrapper.cpp",
Jayant Chowdhary2bbdce42020-01-12 14:55:41 -0800187 "utils/CameraThreadState.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700188 "utils/CameraTraces.cpp",
189 "utils/AutoConditionLock.cpp",
Jyoti Bhayana3128fda2023-04-27 18:27:56 -0700190 "utils/SchedulingPolicyUtils.cpp",
Jayant Chowdhary2bbdce42020-01-12 14:55:41 -0800191 "utils/SessionConfigurationUtils.cpp",
Jayant Chowdharyc67af1b2022-04-07 18:05:04 +0000192 "utils/SessionConfigurationUtilsHidl.cpp",
Shuzhen Wang316781a2020-08-18 18:11:01 -0700193 "utils/SessionStatsBuilder.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700194 "utils/TagMonitor.cpp",
195 "utils/LatencyHistogram.cpp",
196 ],
197
Marco Nelissen13aa1a42019-09-27 10:21:55 -0700198 header_libs: [
Austin Borgerce7594d2022-02-22 22:21:38 +0000199 "libdynamic_depth-internal_headers",
200 "libdynamic_depth-public_headers",
Marco Nelissen7c96ea72020-01-10 15:46:22 -0800201 "libmediadrm_headers",
202 "libmediametrics_headers",
Marco Nelissen13aa1a42019-09-27 10:21:55 -0700203 ],
204
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700205 export_shared_lib_headers: [
206 "libbinder",
Steven Moreland09226a72021-04-05 23:18:44 +0000207 "libactivitymanager_aidl",
Steven Moreland5d6ea8f2021-04-13 01:02:53 +0000208 "libpermission",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700209 "libcamera_client",
210 "libfmq",
Michael Grooverd1d435a2018-12-18 17:39:42 -0800211 "libsensorprivacy",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700212 ],
213
214 include_dirs: [
215 "system/media/private/camera/include",
216 "frameworks/native/include/media/openmax",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700217 ],
218
219 export_include_dirs: ["."],
220
221 cflags: [
222 "-Wall",
223 "-Wextra",
224 "-Werror",
Emilian Peev538c90e2018-12-17 18:03:19 +0000225 "-Wno-ignored-qualifiers",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700226 ],
227
228}
Austin Borger6db81852021-12-08 20:51:54 +0000229
230cc_library_static {
Austin Borger886c62e2022-01-04 20:58:32 +0000231 name: "libcameraservice_device_independent",
Austin Borger6db81852021-12-08 20:51:54 +0000232 host_supported: true,
233
234 // Camera service source
235
236 srcs: [
Austin Borger94422aa2021-12-14 22:59:59 +0000237 "common/DepthPhotoProcessor.cpp",
Austin Borgerea931242021-12-13 23:10:41 +0000238 "device3/CoordinateMapper.cpp",
239 "device3/DistortionMapper.cpp",
Austin Borger0c9eee22021-12-13 23:36:39 +0000240 "device3/RotateAndCropMapper.cpp",
Austin Borgerab7b1f32021-12-13 23:50:25 +0000241 "device3/ZoomRatioMapper.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000242 "utils/ExifUtils.cpp",
Austin Borgerea931242021-12-13 23:10:41 +0000243 "utils/SessionConfigurationUtilsHost.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000244 ],
245
Austin Borgerce7594d2022-02-22 22:21:38 +0000246 header_libs: [
247 "libdynamic_depth-internal_headers",
248 "libdynamic_depth-public_headers",
249 ],
250
Austin Borger6db81852021-12-08 20:51:54 +0000251 shared_libs: [
252 "libbase",
253 "libbinder",
254 "libcamera_metadata",
Austin Borger94422aa2021-12-14 22:59:59 +0000255 "libdynamic_depth",
Austin Borger6db81852021-12-08 20:51:54 +0000256 "libexif",
Austin Borger94422aa2021-12-14 22:59:59 +0000257 "libjpeg",
Austin Borger6db81852021-12-08 20:51:54 +0000258 "liblog",
259 "libutils",
Austin Borger94422aa2021-12-14 22:59:59 +0000260 "libxml2",
Austin Borger6db81852021-12-08 20:51:54 +0000261 ],
262
263 include_dirs: [
264 "frameworks/av/camera/include",
265 "frameworks/av/camera/include/camera",
266 ],
267
268 export_include_dirs: ["."],
269
270 cflags: [
271 "-Wall",
272 "-Wextra",
273 "-Werror",
274 "-Wno-ignored-qualifiers",
275 ],
276
Ray Essick8fc402a2022-02-16 15:08:55 -0800277}