blob: 87aed41fc21d26c007968157662801918ca97a37 [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",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080095 "libmedia_omx",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070096 "libmemunreachable",
Michael Grooverd1d435a2018-12-18 17:39:42 -080097 "libsensorprivacy",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080098 "libstagefright",
Jayant Chowdhary0c947272018-08-15 14:42:04 -070099 "libstagefright_foundation",
Shuzhen Wang219c2992019-02-15 17:24:28 -0800100 "libyuv",
Jayant Chowdharybe543d42018-08-15 13:16:14 -0700101 "android.frameworks.cameraservice.common@2.0",
102 "android.frameworks.cameraservice.service@2.0",
103 "android.frameworks.cameraservice.device@2.0",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700104 "android.hardware.camera.common@1.0",
105 "android.hardware.camera.provider@2.4",
Eino-Ville Talvala63f36112018-12-06 14:57:03 -0800106 "android.hardware.camera.provider@2.5",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700107 "android.hardware.camera.device@1.0",
108 "android.hardware.camera.device@3.2",
109 "android.hardware.camera.device@3.3",
110 "android.hardware.camera.device@3.4",
Shuzhen Wangf9d2c022018-08-21 12:07:35 -0700111 "android.hardware.camera.device@3.5",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700112 ],
113
114 export_shared_lib_headers: [
115 "libbinder",
116 "libcamera_client",
117 "libfmq",
Michael Grooverd1d435a2018-12-18 17:39:42 -0800118 "libsensorprivacy",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700119 ],
120
121 include_dirs: [
122 "system/media/private/camera/include",
123 "frameworks/native/include/media/openmax",
Jayant Chowdharybe543d42018-08-15 13:16:14 -0700124 "frameworks/av/media/ndk",
Emilian Peev538c90e2018-12-17 18:03:19 +0000125 "external/dynamic_depth/includes",
126 "external/dynamic_depth/internal",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700127 ],
128
129 export_include_dirs: ["."],
130
131 cflags: [
132 "-Wall",
133 "-Wextra",
134 "-Werror",
Emilian Peev538c90e2018-12-17 18:03:19 +0000135 "-Wno-ignored-qualifiers",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700136 ],
137
138}
Emilian Peevcbf174b2019-01-25 14:38:59 -0800139
140cc_library_shared {
141 name: "libdepthphoto",
142
143 srcs: [
Emilian Peev4b08d5d2019-02-01 09:53:14 -0800144 "utils/ExifUtils.cpp",
Emilian Peevcbf174b2019-01-25 14:38:59 -0800145 "common/DepthPhotoProcessor.cpp",
146 ],
147
148 shared_libs: [
149 "libimage_io",
150 "libdynamic_depth",
151 "libxml2",
152 "liblog",
153 "libutilscallstack",
154 "libutils",
155 "libcutils",
156 "libjpeg",
157 "libmemunreachable",
Emilian Peev4b08d5d2019-02-01 09:53:14 -0800158 "libexif",
159 "libcamera_client",
Emilian Peevcbf174b2019-01-25 14:38:59 -0800160 ],
161
162 include_dirs: [
163 "external/dynamic_depth/includes",
164 "external/dynamic_depth/internal",
165 ],
166
167 export_include_dirs: ["."],
168
169 cflags: [
170 "-Wall",
171 "-Wextra",
172 "-Werror",
173 "-Wno-ignored-qualifiers",
174 ],
175
176}