blob: c50a3c621f2abe75fc465f6d4fe1b4fb2cf73fc0 [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
19cc_library_shared {
20 name: "libcameraservice",
21
22 // Camera service source
23
24 srcs: [
25 "CameraService.cpp",
26 "CameraFlashlight.cpp",
27 "common/Camera2ClientBase.cpp",
28 "common/CameraDeviceBase.cpp",
29 "common/CameraProviderManager.cpp",
30 "common/FrameProcessorBase.cpp",
31 "api1/CameraClient.cpp",
32 "api1/Camera2Client.cpp",
33 "api1/client2/Parameters.cpp",
34 "api1/client2/FrameProcessor.cpp",
35 "api1/client2/StreamingProcessor.cpp",
36 "api1/client2/JpegProcessor.cpp",
37 "api1/client2/CallbackProcessor.cpp",
38 "api1/client2/JpegCompressor.cpp",
39 "api1/client2/CaptureSequencer.cpp",
40 "api1/client2/ZslProcessor.cpp",
41 "api2/CameraDeviceClient.cpp",
Emilian Peev538c90e2018-12-17 18:03:19 +000042 "api2/CompositeStream.cpp",
43 "api2/DepthCompositeStream.cpp",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080044 "api2/HeicEncoderInfoManager.cpp",
45 "api2/HeicCompositeStream.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070046 "device1/CameraHardwareInterface.cpp",
47 "device3/Camera3Device.cpp",
48 "device3/Camera3Stream.cpp",
49 "device3/Camera3IOStreamBase.cpp",
50 "device3/Camera3InputStream.cpp",
51 "device3/Camera3OutputStream.cpp",
52 "device3/Camera3DummyStream.cpp",
53 "device3/Camera3SharedOutputStream.cpp",
54 "device3/StatusTracker.cpp",
55 "device3/Camera3BufferManager.cpp",
56 "device3/Camera3StreamSplitter.cpp",
57 "device3/DistortionMapper.cpp",
58 "gui/RingBufferConsumer.cpp",
Jayant Chowdhary12361932018-08-27 14:46:13 -070059 "utils/CameraThreadState.cpp",
Jayant Chowdhary0c947272018-08-15 14:42:04 -070060 "hidl/AidlCameraDeviceCallbacks.cpp",
Jayant Chowdhary94f79a92018-08-15 13:57:17 -070061 "hidl/AidlCameraServiceListener.cpp",
Jayant Chowdharybe543d42018-08-15 13:16:14 -070062 "hidl/Convert.cpp",
Jayant Chowdhary0c947272018-08-15 14:42:04 -070063 "hidl/HidlCameraDeviceUser.cpp",
64 "hidl/HidlCameraService.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070065 "utils/CameraTraces.cpp",
66 "utils/AutoConditionLock.cpp",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080067 "utils/ExifUtils.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070068 "utils/TagMonitor.cpp",
69 "utils/LatencyHistogram.cpp",
70 ],
71
Marco Nelissen55b259c2019-09-27 10:21:55 -070072 header_libs: [
73 "libmediadrm_headers"
74 ],
75
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070076 shared_libs: [
Jayant Chowdharyb61526c2019-05-13 19:37:42 -070077 "libbase",
Emilian Peevcbf174b2019-01-25 14:38:59 -080078 "libdl",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080079 "libexif",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070080 "libui",
81 "liblog",
82 "libutilscallstack",
83 "libutils",
84 "libbinder",
85 "libcutils",
86 "libmedia",
87 "libmediautils",
88 "libcamera_client",
89 "libcamera_metadata",
90 "libfmq",
91 "libgui",
92 "libhardware",
93 "libhidlbase",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070094 "libjpeg",
Dongwon Kanga42a62d2019-09-23 17:48:14 -070095 "libmedia_codeclist",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080096 "libmedia_omx",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070097 "libmemunreachable",
Michael Grooverd1d435a2018-12-18 17:39:42 -080098 "libsensorprivacy",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080099 "libstagefright",
Jayant Chowdhary0c947272018-08-15 14:42:04 -0700100 "libstagefright_foundation",
Shuzhen Wang219c2992019-02-15 17:24:28 -0800101 "libyuv",
Jayant Chowdharybe543d42018-08-15 13:16:14 -0700102 "android.frameworks.cameraservice.common@2.0",
103 "android.frameworks.cameraservice.service@2.0",
104 "android.frameworks.cameraservice.device@2.0",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700105 "android.hardware.camera.common@1.0",
106 "android.hardware.camera.provider@2.4",
Eino-Ville Talvala63f36112018-12-06 14:57:03 -0800107 "android.hardware.camera.provider@2.5",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700108 "android.hardware.camera.device@1.0",
109 "android.hardware.camera.device@3.2",
110 "android.hardware.camera.device@3.3",
111 "android.hardware.camera.device@3.4",
Shuzhen Wangf9d2c022018-08-21 12:07:35 -0700112 "android.hardware.camera.device@3.5",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700113 ],
114
115 export_shared_lib_headers: [
116 "libbinder",
117 "libcamera_client",
118 "libfmq",
Michael Grooverd1d435a2018-12-18 17:39:42 -0800119 "libsensorprivacy",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700120 ],
121
122 include_dirs: [
123 "system/media/private/camera/include",
124 "frameworks/native/include/media/openmax",
Jayant Chowdharybe543d42018-08-15 13:16:14 -0700125 "frameworks/av/media/ndk",
Emilian Peev538c90e2018-12-17 18:03:19 +0000126 "external/dynamic_depth/includes",
127 "external/dynamic_depth/internal",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700128 ],
129
130 export_include_dirs: ["."],
131
132 cflags: [
133 "-Wall",
134 "-Wextra",
135 "-Werror",
Emilian Peev538c90e2018-12-17 18:03:19 +0000136 "-Wno-ignored-qualifiers",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700137 ],
138
139}
Emilian Peevcbf174b2019-01-25 14:38:59 -0800140
141cc_library_shared {
142 name: "libdepthphoto",
143
144 srcs: [
Emilian Peev4b08d5d2019-02-01 09:53:14 -0800145 "utils/ExifUtils.cpp",
Emilian Peevcbf174b2019-01-25 14:38:59 -0800146 "common/DepthPhotoProcessor.cpp",
147 ],
148
149 shared_libs: [
150 "libimage_io",
151 "libdynamic_depth",
152 "libxml2",
153 "liblog",
154 "libutilscallstack",
155 "libutils",
156 "libcutils",
157 "libjpeg",
158 "libmemunreachable",
Emilian Peev4b08d5d2019-02-01 09:53:14 -0800159 "libexif",
160 "libcamera_client",
Emilian Peevcbf174b2019-01-25 14:38:59 -0800161 ],
162
163 include_dirs: [
164 "external/dynamic_depth/includes",
165 "external/dynamic_depth/internal",
166 ],
167
168 export_include_dirs: ["."],
169
170 cflags: [
171 "-Wall",
172 "-Wextra",
173 "-Werror",
174 "-Wno-ignored-qualifiers",
175 ],
176
177}