blob: 1a3382fe104aa07f5f7f214e14b8a1c1d188bc0d [file] [log] [blame]
Ruben Brunkd1176ef2014-02-21 10:51:38 -08001# 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
Igor Murashkin1d880232013-02-20 16:50:13 -080015CAMERA_CLIENT_LOCAL_PATH:= $(call my-dir)
16include $(call all-subdir-makefiles)
Mathias Agopian3cf61352010-02-09 17:46:37 -080017include $(CLEAR_VARS)
18
Igor Murashkin1d880232013-02-20 16:50:13 -080019LOCAL_PATH := $(CAMERA_CLIENT_LOCAL_PATH)
20
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080021LOCAL_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 += \
Mathias Agopian3cf61352010-02-09 17:46:37 -080039 Camera.cpp \
Igor Murashkin7efa5202013-02-13 15:53:56 -080040 CameraMetadata.cpp \
Mathias Agopian3cf61352010-02-09 17:46:37 -080041 CameraParameters.cpp \
Jianing Weicb0652e2014-03-12 18:29:36 -070042 CaptureResult.cpp \
Igor Murashkin0b88a622014-03-18 18:15:23 -070043 CameraParameters2.cpp \
Mathias Agopian3cf61352010-02-09 17:46:37 -080044 ICamera.cpp \
45 ICameraClient.cpp \
Ruben Brunk2823ce02015-05-19 17:25:13 -070046 ICameraServiceProxy.cpp \
Wu-cheng Li4ca2c7c2011-06-01 17:22:24 +080047 ICameraRecordingProxy.cpp \
Igor Murashkin634a5152013-02-20 17:15:11 -080048 ICameraRecordingProxyListener.cpp \
Eino-Ville Talvala7b82efe2013-07-25 17:12:35 -070049 camera2/CaptureRequest.cpp \
Yin-Chia Yehb97babb2015-03-12 13:42:44 -070050 camera2/OutputConfiguration.cpp \
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080051 camera2/SubmitInfo.cpp \
Igor Murashkinc073ba52013-02-26 14:32:34 -080052 CameraBase.cpp \
Ruben Brunk5698d442014-06-18 10:39:40 -070053 CameraUtils.cpp \
Ruben Brunkd1176ef2014-02-21 10:51:38 -080054 VendorTagDescriptor.cpp
Mathias Agopian3cf61352010-02-09 17:46:37 -080055
56LOCAL_SHARED_LIBRARIES := \
57 libcutils \
58 libutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -070059 liblog \
Mathias Agopian3cf61352010-02-09 17:46:37 -080060 libbinder \
61 libhardware \
Jamie Gennisbfa33aa2010-12-20 11:51:31 -080062 libui \
Igor Murashkin7efa5202013-02-13 15:53:56 -080063 libgui \
64 libcamera_metadata \
65
66LOCAL_C_INCLUDES += \
Igor Murashkin1d880232013-02-20 16:50:13 -080067 system/media/camera/include \
Ruben Brunkb2119af2014-05-09 19:57:56 -070068 system/media/private/camera/include \
Praveen Chavan6773d472016-01-13 01:24:30 -080069 frameworks/native/include/media/openmax \
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080070 frameworks/av/include/camera
71
72LOCAL_EXPORT_C_INCLUDE_DIRS := \
73 system/media/camera/include \
74 frameworks/av/include/camera
Mathias Agopian3cf61352010-02-09 17:46:37 -080075
Eino-Ville Talvala02bf0322016-02-18 12:41:10 -080076LOCAL_CFLAGS += -Werror -Wall -Wextra
77
Mathias Agopian3cf61352010-02-09 17:46:37 -080078LOCAL_MODULE:= libcamera_client
79
Mathias Agopian3cf61352010-02-09 17:46:37 -080080include $(BUILD_SHARED_LIBRARY)