blob: c912f634cff135f0939828d36edd3a5540c00e15 [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",
42 "device1/CameraHardwareInterface.cpp",
43 "device3/Camera3Device.cpp",
44 "device3/Camera3Stream.cpp",
45 "device3/Camera3IOStreamBase.cpp",
46 "device3/Camera3InputStream.cpp",
47 "device3/Camera3OutputStream.cpp",
48 "device3/Camera3DummyStream.cpp",
49 "device3/Camera3SharedOutputStream.cpp",
50 "device3/StatusTracker.cpp",
51 "device3/Camera3BufferManager.cpp",
52 "device3/Camera3StreamSplitter.cpp",
53 "device3/DistortionMapper.cpp",
54 "gui/RingBufferConsumer.cpp",
Jayant Chowdhary12361932018-08-27 14:46:13 -070055 "utils/CameraThreadState.cpp",
Jayant Chowdhary94f79a92018-08-15 13:57:17 -070056 "hidl/AidlCameraServiceListener.cpp",
Jayant Chowdharybe543d42018-08-15 13:16:14 -070057 "hidl/HidlCameraService.cpp",
58 "hidl/Convert.cpp",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070059 "utils/CameraTraces.cpp",
60 "utils/AutoConditionLock.cpp",
61 "utils/TagMonitor.cpp",
62 "utils/LatencyHistogram.cpp",
63 ],
64
65 shared_libs: [
66 "libui",
67 "liblog",
68 "libutilscallstack",
69 "libutils",
70 "libbinder",
71 "libcutils",
72 "libmedia",
Jayant Chowdharybe543d42018-08-15 13:16:14 -070073 "libmediandk",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070074 "libmediautils",
75 "libcamera_client",
76 "libcamera_metadata",
77 "libfmq",
78 "libgui",
79 "libhardware",
Jayant Chowdhary12361932018-08-27 14:46:13 -070080 "libhwbinder",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070081 "libhidlbase",
82 "libhidltransport",
83 "libjpeg",
84 "libmemunreachable",
Jayant Chowdharybe543d42018-08-15 13:16:14 -070085 "android.frameworks.cameraservice.common@2.0",
86 "android.frameworks.cameraservice.service@2.0",
87 "android.frameworks.cameraservice.device@2.0",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070088 "android.hardware.camera.common@1.0",
89 "android.hardware.camera.provider@2.4",
90 "android.hardware.camera.device@1.0",
91 "android.hardware.camera.device@3.2",
92 "android.hardware.camera.device@3.3",
93 "android.hardware.camera.device@3.4",
Shuzhen Wangf9d2c022018-08-21 12:07:35 -070094 "android.hardware.camera.device@3.5",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070095 ],
96
97 export_shared_lib_headers: [
98 "libbinder",
99 "libcamera_client",
100 "libfmq",
101 ],
102
103 include_dirs: [
104 "system/media/private/camera/include",
105 "frameworks/native/include/media/openmax",
Jayant Chowdharybe543d42018-08-15 13:16:14 -0700106 "frameworks/av/media/ndk",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -0700107 ],
108
109 export_include_dirs: ["."],
110
111 cflags: [
112 "-Wall",
113 "-Wextra",
114 "-Werror",
115 ],
116
117}