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 15CAMERA_CLIENT_LOCAL_PATH:= $(call my-dir) 16include $(call all-subdir-makefiles) 17include $(CLEAR_VARS) 18 19LOCAL_PATH := $(CAMERA_CLIENT_LOCAL_PATH) 20 21LOCAL_AIDL_INCLUDES := \ 22 frameworks/av/camera/aidl \ 23 frameworks/base/core/java \ 24 frameworks/native/aidl/gui 25 26# AIDL files for camera interfaces 27# The headers for these interfaces will be available to any modules that 28# include libcamera_client, at the path "aidl/package/path/BnFoo.h" 29 30LOCAL_SRC_FILES := \ 31 aidl/android/hardware/ICameraService.aidl \ 32 aidl/android/hardware/ICameraServiceListener.aidl \ 33 aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl \ 34 aidl/android/hardware/camera2/ICameraDeviceUser.aidl 35 36# Source for camera interface parcelables, and manually-written interfaces 37 38LOCAL_SRC_FILES += \ 39 Camera.cpp \ 40 CameraMetadata.cpp \ 41 CameraParameters.cpp \ 42 CaptureResult.cpp \ 43 CameraParameters2.cpp \ 44 ICamera.cpp \ 45 ICameraClient.cpp \ 46 ICameraServiceProxy.cpp \ 47 ICameraRecordingProxy.cpp \ 48 ICameraRecordingProxyListener.cpp \ 49 camera2/CaptureRequest.cpp \ 50 camera2/OutputConfiguration.cpp \ 51 camera2/SubmitInfo.cpp \ 52 CameraBase.cpp \ 53 CameraUtils.cpp \ 54 VendorTagDescriptor.cpp 55 56LOCAL_SHARED_LIBRARIES := \ 57 libcutils \ 58 libutils \ 59 liblog \ 60 libbinder \ 61 libhardware \ 62 libui \ 63 libgui \ 64 libcamera_metadata \ 65 66LOCAL_C_INCLUDES += \ 67 system/media/camera/include \ 68 system/media/private/camera/include \ 69 frameworks/native/include/media/openmax \ 70 frameworks/av/include/camera 71 72LOCAL_EXPORT_C_INCLUDE_DIRS := \ 73 system/media/camera/include \ 74 frameworks/av/include/camera 75 76LOCAL_CFLAGS += -Werror -Wall -Wextra 77 78LOCAL_MODULE:= libcamera_client 79 80include $(BUILD_SHARED_LIBRARY) 81