• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2010 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
15LOCAL_PATH:= $(call my-dir)
16
17#
18# libcameraservice
19#
20
21include $(CLEAR_VARS)
22
23# Camera service source
24
25LOCAL_SRC_FILES :=  \
26    CameraService.cpp \
27    CameraFlashlight.cpp \
28    common/Camera2ClientBase.cpp \
29    common/CameraDeviceBase.cpp \
30    common/CameraProviderManager.cpp \
31    common/FrameProcessorBase.cpp \
32    api1/CameraClient.cpp \
33    api1/Camera2Client.cpp \
34    api1/client2/Parameters.cpp \
35    api1/client2/FrameProcessor.cpp \
36    api1/client2/StreamingProcessor.cpp \
37    api1/client2/JpegProcessor.cpp \
38    api1/client2/CallbackProcessor.cpp \
39    api1/client2/JpegCompressor.cpp \
40    api1/client2/CaptureSequencer.cpp \
41    api1/client2/ZslProcessor.cpp \
42    api2/CameraDeviceClient.cpp \
43    device1/CameraHardwareInterface.cpp \
44    device3/Camera3Device.cpp \
45    device3/Camera3Stream.cpp \
46    device3/Camera3IOStreamBase.cpp \
47    device3/Camera3InputStream.cpp \
48    device3/Camera3OutputStream.cpp \
49    device3/Camera3DummyStream.cpp \
50    device3/Camera3SharedOutputStream.cpp \
51    device3/StatusTracker.cpp \
52    device3/Camera3BufferManager.cpp \
53    device3/Camera3StreamSplitter.cpp \
54    device3/DistortionMapper.cpp \
55    gui/RingBufferConsumer.cpp \
56    utils/CameraTraces.cpp \
57    utils/AutoConditionLock.cpp \
58    utils/TagMonitor.cpp \
59    utils/LatencyHistogram.cpp
60
61LOCAL_SHARED_LIBRARIES:= \
62    libui \
63    liblog \
64    libutilscallstack \
65    libutils \
66    libbinder \
67    libcutils \
68    libmedia \
69    libmediautils \
70    libcamera_client \
71    libcamera_metadata \
72    libfmq \
73    libgui \
74    libhardware \
75    libhidlbase \
76    libhidltransport \
77    libjpeg \
78    libmemunreachable \
79    android.hardware.camera.common@1.0 \
80    android.hardware.camera.provider@2.4 \
81    android.hardware.camera.device@1.0 \
82    android.hardware.camera.device@3.2 \
83    android.hardware.camera.device@3.3 \
84    android.hardware.camera.device@3.4
85
86LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := libbinder libcamera_client libfmq
87
88LOCAL_C_INCLUDES += \
89    system/media/private/camera/include \
90    frameworks/native/include/media/openmax
91
92LOCAL_EXPORT_C_INCLUDE_DIRS := \
93    frameworks/av/services/camera/libcameraservice
94
95LOCAL_CFLAGS += -Wall -Wextra -Werror
96
97LOCAL_MODULE:= libcameraservice
98
99include $(BUILD_SHARED_LIBRARY)
100
101# Build tests too
102
103include $(LOCAL_PATH)/tests/Android.mk
104
105