Home | History | Annotate | Download | only in camera
      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 CAMERA_CLIENT_LOCAL_PATH:= $(call my-dir)
     16 include $(call all-subdir-makefiles)
     17 include $(CLEAR_VARS)
     18 
     19 LOCAL_PATH := $(CAMERA_CLIENT_LOCAL_PATH)
     20 
     21 LOCAL_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 
     30 LOCAL_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 
     38 LOCAL_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 
     56 LOCAL_SHARED_LIBRARIES := \
     57 	libcutils \
     58 	libutils \
     59 	liblog \
     60 	libbinder \
     61 	libgui \
     62 	libcamera_metadata \
     63 
     64 LOCAL_C_INCLUDES += \
     65 	system/media/camera/include \
     66 	system/media/private/camera/include \
     67 	frameworks/native/include/media/openmax \
     68 	$(LOCAL_PATH)/include/camera
     69 
     70 LOCAL_EXPORT_C_INCLUDE_DIRS := \
     71 	system/media/camera/include \
     72 	$(LOCAL_PATH)/include/camera
     73 
     74 LOCAL_CFLAGS += -Werror -Wall -Wextra
     75 
     76 LOCAL_MODULE:= libcamera_client
     77 
     78 include $(BUILD_SHARED_LIBRARY)
     79