blob: a1163ed646e09af8d61632f696910b0985071469 [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 Chowdhary5033aa12018-07-24 11:56:19 -070056 "utils/CameraTraces.cpp",
57 "utils/AutoConditionLock.cpp",
58 "utils/TagMonitor.cpp",
59 "utils/LatencyHistogram.cpp",
60 ],
61
62 shared_libs: [
63 "libui",
64 "liblog",
65 "libutilscallstack",
66 "libutils",
67 "libbinder",
68 "libcutils",
69 "libmedia",
70 "libmediautils",
71 "libcamera_client",
72 "libcamera_metadata",
73 "libfmq",
74 "libgui",
75 "libhardware",
Jayant Chowdhary12361932018-08-27 14:46:13 -070076 "libhwbinder",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070077 "libhidlbase",
78 "libhidltransport",
79 "libjpeg",
80 "libmemunreachable",
81 "android.hardware.camera.common@1.0",
82 "android.hardware.camera.provider@2.4",
83 "android.hardware.camera.device@1.0",
84 "android.hardware.camera.device@3.2",
85 "android.hardware.camera.device@3.3",
86 "android.hardware.camera.device@3.4",
Shuzhen Wangf9d2c022018-08-21 12:07:35 -070087 "android.hardware.camera.device@3.5",
Jayant Chowdhary5033aa12018-07-24 11:56:19 -070088 ],
89
90 export_shared_lib_headers: [
91 "libbinder",
92 "libcamera_client",
93 "libfmq",
94 ],
95
96 include_dirs: [
97 "system/media/private/camera/include",
98 "frameworks/native/include/media/openmax",
99 ],
100
101 export_include_dirs: ["."],
102
103 cflags: [
104 "-Wall",
105 "-Wextra",
106 "-Werror",
107 ],
108
109}