blob: 7b86180bce58bdbc4358cdfc614c3d490f6995d1 [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
Mathias Agopian65ab4712010-07-14 17:59:35 -070015LOCAL_PATH:= $(call my-dir)
16
Mathias Agopian65ab4712010-07-14 17:59:35 -070017#
18# libcameraservice
19#
20
21include $(CLEAR_VARS)
22
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080023# Camera service source
24
25LOCAL_SRC_FILES := \
Eino-Ville Talvala5e08d602012-05-16 14:59:25 -070026 CameraService.cpp \
Chien-Yu Chen3068d732015-02-09 13:29:57 -080027 CameraFlashlight.cpp \
Eino-Ville Talvala7b82efe2013-07-25 17:12:35 -070028 common/Camera2ClientBase.cpp \
29 common/CameraDeviceBase.cpp \
Eino-Ville Talvala2f09bac2016-12-13 11:29:54 -080030 common/CameraProviderManager.cpp \
Eino-Ville Talvala7b82efe2013-07-25 17:12:35 -070031 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 \
Eino-Ville Talvala7b82efe2013-07-25 17:12:35 -070039 api1/client2/JpegCompressor.cpp \
40 api1/client2/CaptureSequencer.cpp \
Eino-Ville Talvalad309fb92015-11-25 12:12:45 -080041 api1/client2/ZslProcessor.cpp \
Eino-Ville Talvala7b82efe2013-07-25 17:12:35 -070042 api2/CameraDeviceClient.cpp \
Yin-Chia Yeh4717c472017-02-13 10:56:40 -080043 device1/CameraHardwareInterface.cpp \
Eino-Ville Talvala7b82efe2013-07-25 17:12:35 -070044 device3/Camera3Device.cpp \
45 device3/Camera3Stream.cpp \
46 device3/Camera3IOStreamBase.cpp \
47 device3/Camera3InputStream.cpp \
48 device3/Camera3OutputStream.cpp \
Eino-Ville Talvala16a2ada2014-08-27 14:41:33 -070049 device3/Camera3DummyStream.cpp \
Shuzhen Wang0129d522016-10-30 22:43:41 -070050 device3/Camera3SharedOutputStream.cpp \
Eino-Ville Talvalaf1e98d82013-09-06 09:32:43 -070051 device3/StatusTracker.cpp \
Zhijun He125684a2015-12-26 15:07:30 -080052 device3/Camera3BufferManager.cpp \
Shuzhen Wang0129d522016-10-30 22:43:41 -070053 device3/Camera3StreamSplitter.cpp \
Igor Murashkin40602742013-04-29 10:31:06 -070054 gui/RingBufferConsumer.cpp \
Igor Murashkinff3e31d2013-10-23 16:40:06 -070055 utils/CameraTraces.cpp \
Eino-Ville Talvala4d453832016-07-15 11:56:53 -070056 utils/AutoConditionLock.cpp \
Shuzhen Wang686f6442017-06-20 16:16:04 -070057 utils/TagMonitor.cpp \
58 utils/LatencyHistogram.cpp
Mathias Agopian65ab4712010-07-14 17:59:35 -070059
60LOCAL_SHARED_LIBRARIES:= \
61 libui \
Ying Wangda0dc0a2013-04-09 21:53:49 -070062 liblog \
David Sehr87b88e62018-01-17 17:09:22 -080063 libutilscallstack \
Mathias Agopian65ab4712010-07-14 17:59:35 -070064 libutils \
65 libbinder \
66 libcutils \
67 libmedia \
Ruben Brunk99e69712015-05-26 17:25:07 -070068 libmediautils \
Mathias Agopian65ab4712010-07-14 17:59:35 -070069 libcamera_client \
Eino-Ville Talvala2f09bac2016-12-13 11:29:54 -080070 libcamera_metadata \
Yifan Hongf79b5542017-04-11 14:44:25 -070071 libfmq \
Iliyan Malchev8951a972011-04-14 16:55:59 -070072 libgui \
Eino-Ville Talvalaf69c70d2012-05-20 15:59:14 -070073 libhardware \
Eino-Ville Talvala2f09bac2016-12-13 11:29:54 -080074 libhidlbase \
75 libhidltransport \
Eino-Ville Talvalad89821e2016-04-20 11:23:50 -070076 libjpeg \
Eino-Ville Talvalaf51fca22016-12-13 11:25:55 -080077 libmemunreachable \
Eino-Ville Talvala2f09bac2016-12-13 11:29:54 -080078 android.hardware.camera.common@1.0 \
79 android.hardware.camera.provider@2.4 \
80 android.hardware.camera.device@1.0 \
Eino-Ville Talvala91cd3f82017-08-21 16:12:50 -070081 android.hardware.camera.device@3.2 \
Emilian Peev5fbe0ba2017-10-20 15:45:45 +010082 android.hardware.camera.device@3.3 \
83 android.hardware.camera.device@3.4
Mathias Agopian65ab4712010-07-14 17:59:35 -070084
Yifan Hongf79b5542017-04-11 14:44:25 -070085LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := libbinder libcamera_client libfmq
Christopher Wileye0c31792016-04-14 10:29:30 -070086
Eino-Ville Talvala61ab9f92012-05-17 10:30:54 -070087LOCAL_C_INCLUDES += \
Ruben Brunkd1176ef2014-02-21 10:51:38 -080088 system/media/private/camera/include \
Eino-Ville Talvala2f09bac2016-12-13 11:29:54 -080089 frameworks/native/include/media/openmax
Eino-Ville Talvala61ab9f92012-05-17 10:30:54 -070090
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080091LOCAL_EXPORT_C_INCLUDE_DIRS := \
92 frameworks/av/services/camera/libcameraservice
Igor Murashkinddf3c502012-10-12 16:56:11 -070093
Eino-Ville Talvala02bf0322016-02-18 12:41:10 -080094LOCAL_CFLAGS += -Wall -Wextra -Werror
Igor Murashkinddf3c502012-10-12 16:56:11 -070095
Mathias Agopian65ab4712010-07-14 17:59:35 -070096LOCAL_MODULE:= libcameraservice
97
Mathias Agopian65ab4712010-07-14 17:59:35 -070098include $(BUILD_SHARED_LIBRARY)