Ruben Brunk | d1176ef | 2014-02-21 10:51:38 -0800 | [diff] [blame] | 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 | |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 17 | # |
| 18 | # libcameraservice |
| 19 | # |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | |
Eino-Ville Talvala | d56db1d | 2015-12-17 16:50:35 -0800 | [diff] [blame] | 23 | # Camera service source |
| 24 | |
| 25 | LOCAL_SRC_FILES := \ |
Eino-Ville Talvala | 5e08d60 | 2012-05-16 14:59:25 -0700 | [diff] [blame] | 26 | CameraService.cpp \ |
Chien-Yu Chen | 3068d73 | 2015-02-09 13:29:57 -0800 | [diff] [blame] | 27 | CameraFlashlight.cpp \ |
Eino-Ville Talvala | 7b82efe | 2013-07-25 17:12:35 -0700 | [diff] [blame] | 28 | common/Camera2ClientBase.cpp \ |
| 29 | common/CameraDeviceBase.cpp \ |
Eino-Ville Talvala | 2f09bac | 2016-12-13 11:29:54 -0800 | [diff] [blame] | 30 | common/CameraProviderManager.cpp \ |
Eino-Ville Talvala | 7b82efe | 2013-07-25 17:12:35 -0700 | [diff] [blame] | 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 \ |
Eino-Ville Talvala | 7b82efe | 2013-07-25 17:12:35 -0700 | [diff] [blame] | 39 | api1/client2/JpegCompressor.cpp \ |
| 40 | api1/client2/CaptureSequencer.cpp \ |
Eino-Ville Talvala | d309fb9 | 2015-11-25 12:12:45 -0800 | [diff] [blame] | 41 | api1/client2/ZslProcessor.cpp \ |
Eino-Ville Talvala | 7b82efe | 2013-07-25 17:12:35 -0700 | [diff] [blame] | 42 | api2/CameraDeviceClient.cpp \ |
Yin-Chia Yeh | 4717c47 | 2017-02-13 10:56:40 -0800 | [diff] [blame] | 43 | device1/CameraHardwareInterface.cpp \ |
Eino-Ville Talvala | 7b82efe | 2013-07-25 17:12:35 -0700 | [diff] [blame] | 44 | device3/Camera3Device.cpp \ |
| 45 | device3/Camera3Stream.cpp \ |
| 46 | device3/Camera3IOStreamBase.cpp \ |
| 47 | device3/Camera3InputStream.cpp \ |
| 48 | device3/Camera3OutputStream.cpp \ |
Eino-Ville Talvala | 16a2ada | 2014-08-27 14:41:33 -0700 | [diff] [blame] | 49 | device3/Camera3DummyStream.cpp \ |
Shuzhen Wang | 0129d52 | 2016-10-30 22:43:41 -0700 | [diff] [blame] | 50 | device3/Camera3SharedOutputStream.cpp \ |
Eino-Ville Talvala | f1e98d8 | 2013-09-06 09:32:43 -0700 | [diff] [blame] | 51 | device3/StatusTracker.cpp \ |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 52 | device3/Camera3BufferManager.cpp \ |
Shuzhen Wang | 0129d52 | 2016-10-30 22:43:41 -0700 | [diff] [blame] | 53 | device3/Camera3StreamSplitter.cpp \ |
Igor Murashkin | 4060274 | 2013-04-29 10:31:06 -0700 | [diff] [blame] | 54 | gui/RingBufferConsumer.cpp \ |
Igor Murashkin | ff3e31d | 2013-10-23 16:40:06 -0700 | [diff] [blame] | 55 | utils/CameraTraces.cpp \ |
Eino-Ville Talvala | 4d45383 | 2016-07-15 11:56:53 -0700 | [diff] [blame] | 56 | utils/AutoConditionLock.cpp \ |
Shuzhen Wang | 686f644 | 2017-06-20 16:16:04 -0700 | [diff] [blame] | 57 | utils/TagMonitor.cpp \ |
| 58 | utils/LatencyHistogram.cpp |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 59 | |
| 60 | LOCAL_SHARED_LIBRARIES:= \ |
| 61 | libui \ |
Ying Wang | da0dc0a | 2013-04-09 21:53:49 -0700 | [diff] [blame] | 62 | liblog \ |
David Sehr | 87b88e6 | 2018-01-17 17:09:22 -0800 | [diff] [blame] | 63 | libutilscallstack \ |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 64 | libutils \ |
| 65 | libbinder \ |
| 66 | libcutils \ |
| 67 | libmedia \ |
Ruben Brunk | 99e6971 | 2015-05-26 17:25:07 -0700 | [diff] [blame] | 68 | libmediautils \ |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 69 | libcamera_client \ |
Eino-Ville Talvala | 2f09bac | 2016-12-13 11:29:54 -0800 | [diff] [blame] | 70 | libcamera_metadata \ |
Yifan Hong | f79b554 | 2017-04-11 14:44:25 -0700 | [diff] [blame] | 71 | libfmq \ |
Iliyan Malchev | 8951a97 | 2011-04-14 16:55:59 -0700 | [diff] [blame] | 72 | libgui \ |
Eino-Ville Talvala | f69c70d | 2012-05-20 15:59:14 -0700 | [diff] [blame] | 73 | libhardware \ |
Eino-Ville Talvala | 2f09bac | 2016-12-13 11:29:54 -0800 | [diff] [blame] | 74 | libhidlbase \ |
| 75 | libhidltransport \ |
Eino-Ville Talvala | d89821e | 2016-04-20 11:23:50 -0700 | [diff] [blame] | 76 | libjpeg \ |
Eino-Ville Talvala | f51fca2 | 2016-12-13 11:25:55 -0800 | [diff] [blame] | 77 | libmemunreachable \ |
Eino-Ville Talvala | 2f09bac | 2016-12-13 11:29:54 -0800 | [diff] [blame] | 78 | android.hardware.camera.common@1.0 \ |
| 79 | android.hardware.camera.provider@2.4 \ |
| 80 | android.hardware.camera.device@1.0 \ |
Eino-Ville Talvala | 91cd3f8 | 2017-08-21 16:12:50 -0700 | [diff] [blame] | 81 | android.hardware.camera.device@3.2 \ |
Emilian Peev | 5fbe0ba | 2017-10-20 15:45:45 +0100 | [diff] [blame] | 82 | android.hardware.camera.device@3.3 \ |
| 83 | android.hardware.camera.device@3.4 |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 84 | |
Yifan Hong | f79b554 | 2017-04-11 14:44:25 -0700 | [diff] [blame] | 85 | LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := libbinder libcamera_client libfmq |
Christopher Wiley | e0c3179 | 2016-04-14 10:29:30 -0700 | [diff] [blame] | 86 | |
Eino-Ville Talvala | 61ab9f9 | 2012-05-17 10:30:54 -0700 | [diff] [blame] | 87 | LOCAL_C_INCLUDES += \ |
Ruben Brunk | d1176ef | 2014-02-21 10:51:38 -0800 | [diff] [blame] | 88 | system/media/private/camera/include \ |
Eino-Ville Talvala | 2f09bac | 2016-12-13 11:29:54 -0800 | [diff] [blame] | 89 | frameworks/native/include/media/openmax |
Eino-Ville Talvala | 61ab9f9 | 2012-05-17 10:30:54 -0700 | [diff] [blame] | 90 | |
Eino-Ville Talvala | d56db1d | 2015-12-17 16:50:35 -0800 | [diff] [blame] | 91 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
| 92 | frameworks/av/services/camera/libcameraservice |
Igor Murashkin | ddf3c50 | 2012-10-12 16:56:11 -0700 | [diff] [blame] | 93 | |
Eino-Ville Talvala | 02bf032 | 2016-02-18 12:41:10 -0800 | [diff] [blame] | 94 | LOCAL_CFLAGS += -Wall -Wextra -Werror |
Igor Murashkin | ddf3c50 | 2012-10-12 16:56:11 -0700 | [diff] [blame] | 95 | |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 96 | LOCAL_MODULE:= libcameraservice |
| 97 | |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 98 | include $(BUILD_SHARED_LIBRARY) |