blob: f877fbd44ef6f96429f889a40a20ebe4be4c3082 [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
72 shared_libs: [
Jayant Chowdharyb61526c2019-05-13 19:37:42 -070073 "libbase",
Emilian Peevcbf174b2019-01-25 14:38:59 -080074 "libdl",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080075 "libexif",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070076 "libui",
77 "liblog",
78 "libutilscallstack",
79 "libutils",
80 "libbinder",
81 "libcutils",
82 "libmedia",
83 "libmediautils",
84 "libcamera_client",
85 "libcamera_metadata",
86 "libfmq",
87 "libgui",
88 "libhardware",
89 "libhidlbase",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070090 "libjpeg",
Dongwon Kang23a180b2019-09-23 17:48:14 -070091 "libmedia_codeclist",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080092 "libmedia_omx",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070093 "libmemunreachable",
Michael Grooverd1d435a2018-12-18 17:39:42 -080094 "libsensorprivacy",
Shuzhen Wang68ac7ad2019-01-30 14:03:28 -080095 "libstagefright",
Jayant Chowdhary0c947272018-08-15 14:42:04 -070096 "libstagefright_foundation",
Shuzhen Wang219c2992019-02-15 17:24:28 -080097 "libyuv",
Jayant Chowdharybe543d42018-08-15 13:16:14 -070098 "android.frameworks.cameraservice.common@2.0",
99 "android.frameworks.cameraservice.service@2.0",
100 "android.frameworks.cameraservice.device@2.0",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700101 "android.hardware.camera.common@1.0",
102 "android.hardware.camera.provider@2.4",
Eino-Ville Talvala63f36112018-12-06 14:57:03 -0800103 "android.hardware.camera.provider@2.5",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700104 "android.hardware.camera.device@1.0",
105 "android.hardware.camera.device@3.2",
106 "android.hardware.camera.device@3.3",
107 "android.hardware.camera.device@3.4",
Shuzhen Wangf9d2c022018-08-21 12:07:35 -0700108 "android.hardware.camera.device@3.5",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700109 ],
110
111 export_shared_lib_headers: [
112 "libbinder",
113 "libcamera_client",
114 "libfmq",
Michael Grooverd1d435a2018-12-18 17:39:42 -0800115 "libsensorprivacy",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700116 ],
117
118 include_dirs: [
119 "system/media/private/camera/include",
120 "frameworks/native/include/media/openmax",
Jayant Chowdharybe543d42018-08-15 13:16:14 -0700121 "frameworks/av/media/ndk",
Emilian Peev538c90e2018-12-17 18:03:19 +0000122 "external/dynamic_depth/includes",
123 "external/dynamic_depth/internal",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700124 ],
125
126 export_include_dirs: ["."],
127
128 cflags: [
129 "-Wall",
130 "-Wextra",
131 "-Werror",
Emilian Peev538c90e2018-12-17 18:03:19 +0000132 "-Wno-ignored-qualifiers",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700133 ],
134
135}
Emilian Peevcbf174b2019-01-25 14:38:59 -0800136
137cc_library_shared {
138 name: "libdepthphoto",
139
140 srcs: [
Emilian Peev4b08d5d2019-02-01 09:53:14 -0800141 "utils/ExifUtils.cpp",
Emilian Peevcbf174b2019-01-25 14:38:59 -0800142 "common/DepthPhotoProcessor.cpp",
143 ],
144
145 shared_libs: [
146 "libimage_io",
147 "libdynamic_depth",
148 "libxml2",
149 "liblog",
150 "libutilscallstack",
151 "libutils",
152 "libcutils",
153 "libjpeg",
154 "libmemunreachable",
Emilian Peev4b08d5d2019-02-01 09:53:14 -0800155 "libexif",
156 "libcamera_client",
Emilian Peevcbf174b2019-01-25 14:38:59 -0800157 ],
158
159 include_dirs: [
160 "external/dynamic_depth/includes",
161 "external/dynamic_depth/internal",
162 ],
163
164 export_include_dirs: ["."],
165
166 cflags: [
167 "-Wall",
168 "-Wextra",
169 "-Werror",
170 "-Wno-ignored-qualifiers",
171 ],
172
173}