blob: 38c87c721d83a098bffd5178d5220956d0b01d17 [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",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070044 "device1/CameraHardwareInterface.cpp",
45 "device3/Camera3Device.cpp",
46 "device3/Camera3Stream.cpp",
47 "device3/Camera3IOStreamBase.cpp",
48 "device3/Camera3InputStream.cpp",
49 "device3/Camera3OutputStream.cpp",
50 "device3/Camera3DummyStream.cpp",
51 "device3/Camera3SharedOutputStream.cpp",
52 "device3/StatusTracker.cpp",
53 "device3/Camera3BufferManager.cpp",
54 "device3/Camera3StreamSplitter.cpp",
55 "device3/DistortionMapper.cpp",
56 "gui/RingBufferConsumer.cpp",
Jayant Chowdhary12361932018-08-27 14:46:13 -070057 "utils/CameraThreadState.cpp",
Jayant Chowdhary0c947272018-08-15 14:42:04 -070058 "hidl/AidlCameraDeviceCallbacks.cpp",
Jayant Chowdhary94f79a92018-08-15 13:57:17 -070059 "hidl/AidlCameraServiceListener.cpp",
Jayant Chowdharybe543d42018-08-15 13:16:14 -070060 "hidl/Convert.cpp",
Jayant Chowdhary0c947272018-08-15 14:42:04 -070061 "hidl/HidlCameraDeviceUser.cpp",
62 "hidl/HidlCameraService.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070063 "utils/CameraTraces.cpp",
64 "utils/AutoConditionLock.cpp",
65 "utils/TagMonitor.cpp",
66 "utils/LatencyHistogram.cpp",
67 ],
68
69 shared_libs: [
Emilian Peevcbf174b2019-01-25 14:38:59 -080070 "libdl",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070071 "libui",
72 "liblog",
73 "libutilscallstack",
74 "libutils",
75 "libbinder",
76 "libcutils",
77 "libmedia",
78 "libmediautils",
79 "libcamera_client",
80 "libcamera_metadata",
81 "libfmq",
82 "libgui",
83 "libhardware",
Jayant Chowdhary12361932018-08-27 14:46:13 -070084 "libhwbinder",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070085 "libhidlbase",
86 "libhidltransport",
87 "libjpeg",
88 "libmemunreachable",
Michael Grooverd1d435a2018-12-18 17:39:42 -080089 "libsensorprivacy",
Jayant Chowdhary0c947272018-08-15 14:42:04 -070090 "libstagefright_foundation",
Jayant Chowdharybe543d42018-08-15 13:16:14 -070091 "android.frameworks.cameraservice.common@2.0",
92 "android.frameworks.cameraservice.service@2.0",
93 "android.frameworks.cameraservice.device@2.0",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070094 "android.hardware.camera.common@1.0",
95 "android.hardware.camera.provider@2.4",
Eino-Ville Talvala63f36112018-12-06 14:57:03 -080096 "android.hardware.camera.provider@2.5",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070097 "android.hardware.camera.device@1.0",
98 "android.hardware.camera.device@3.2",
99 "android.hardware.camera.device@3.3",
100 "android.hardware.camera.device@3.4",
Shuzhen Wangf9d2c022018-08-21 12:07:35 -0700101 "android.hardware.camera.device@3.5",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700102 ],
103
104 export_shared_lib_headers: [
105 "libbinder",
106 "libcamera_client",
107 "libfmq",
Michael Grooverd1d435a2018-12-18 17:39:42 -0800108 "libsensorprivacy",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700109 ],
110
111 include_dirs: [
112 "system/media/private/camera/include",
113 "frameworks/native/include/media/openmax",
Jayant Chowdharybe543d42018-08-15 13:16:14 -0700114 "frameworks/av/media/ndk",
Emilian Peev538c90e2018-12-17 18:03:19 +0000115 "external/dynamic_depth/includes",
116 "external/dynamic_depth/internal",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700117 ],
118
119 export_include_dirs: ["."],
120
121 cflags: [
122 "-Wall",
123 "-Wextra",
124 "-Werror",
Emilian Peev538c90e2018-12-17 18:03:19 +0000125 "-Wno-ignored-qualifiers",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700126 ],
127
128}
Emilian Peevcbf174b2019-01-25 14:38:59 -0800129
130cc_library_shared {
131 name: "libdepthphoto",
132
133 srcs: [
134 "common/DepthPhotoProcessor.cpp",
135 ],
136
137 shared_libs: [
138 "libimage_io",
139 "libdynamic_depth",
140 "libxml2",
141 "liblog",
142 "libutilscallstack",
143 "libutils",
144 "libcutils",
145 "libjpeg",
146 "libmemunreachable",
147 ],
148
149 include_dirs: [
150 "external/dynamic_depth/includes",
151 "external/dynamic_depth/internal",
152 ],
153
154 export_include_dirs: ["."],
155
156 cflags: [
157 "-Wall",
158 "-Wextra",
159 "-Werror",
160 "-Wno-ignored-qualifiers",
161 ],
162
163}