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 15 LOCAL_PATH:= $(call my-dir) 16 17 # 18 # libcameraservice 19 # 20 21 include $(CLEAR_VARS) 22 23 # Camera service source 24 25 LOCAL_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 gui/RingBufferConsumer.cpp \ 55 utils/CameraTraces.cpp \ 56 utils/AutoConditionLock.cpp \ 57 utils/TagMonitor.cpp \ 58 utils/LatencyHistogram.cpp 59 60 LOCAL_SHARED_LIBRARIES:= \ 61 libui \ 62 liblog \ 63 libutils \ 64 libbinder \ 65 libcutils \ 66 libmedia \ 67 libmediautils \ 68 libcamera_client \ 69 libcamera_metadata \ 70 libfmq \ 71 libgui \ 72 libhardware \ 73 libhidlbase \ 74 libhidltransport \ 75 libjpeg \ 76 libmemunreachable \ 77 android.hardware.camera.common (a] 1.0 \ 78 android.hardware.camera.provider (a] 2.4 \ 79 android.hardware.camera.device (a] 1.0 \ 80 android.hardware.camera.device (a] 3.2 \ 81 android.hidl.manager (a] 1.0 82 83 LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := libbinder libcamera_client libfmq 84 85 LOCAL_C_INCLUDES += \ 86 system/media/private/camera/include \ 87 frameworks/native/include/media/openmax 88 89 LOCAL_EXPORT_C_INCLUDE_DIRS := \ 90 frameworks/av/services/camera/libcameraservice 91 92 LOCAL_CFLAGS += -Wall -Wextra -Werror 93 94 LOCAL_MODULE:= libcameraservice 95 96 include $(BUILD_SHARED_LIBRARY) 97