Yin-Chia Yeh | 0dea57f | 2015-12-09 16:46:07 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2015 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | LOCAL_PATH:= $(call my-dir) |
| 18 | |
| 19 | ifneq ($(TARGET_BUILD_PDK), true) |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | |
Yin-Chia Yeh | ead9146 | 2016-01-06 16:45:08 -0800 | [diff] [blame] | 23 | LOCAL_SRC_FILES:= \ |
| 24 | NdkCameraManager.cpp \ |
| 25 | NdkCameraMetadata.cpp \ |
| 26 | NdkCameraDevice.cpp \ |
| 27 | NdkCaptureRequest.cpp \ |
| 28 | NdkCameraCaptureSession.cpp \ |
| 29 | impl/ACameraManager.cpp \ |
| 30 | impl/ACameraMetadata.cpp \ |
| 31 | impl/ACameraDevice.cpp \ |
| 32 | impl/ACameraCaptureSession.cpp |
Yin-Chia Yeh | 0dea57f | 2015-12-09 16:46:07 -0800 | [diff] [blame] | 33 | |
| 34 | LOCAL_MODULE:= libcamera2ndk |
| 35 | |
Colin Cross | 7e8d4ba | 2017-05-04 16:17:42 -0700 | [diff] [blame^] | 36 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 37 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Yin-Chia Yeh | 0dea57f | 2015-12-09 16:46:07 -0800 | [diff] [blame] | 38 | |
| 39 | LOCAL_CFLAGS += -fvisibility=hidden -D EXPORT='__attribute__ ((visibility ("default")))' |
Eino-Ville Talvala | 02bf032 | 2016-02-18 12:41:10 -0800 | [diff] [blame] | 40 | LOCAL_CFLAGS += -Wall -Wextra -Werror |
Yin-Chia Yeh | 0dea57f | 2015-12-09 16:46:07 -0800 | [diff] [blame] | 41 | |
| 42 | LOCAL_SHARED_LIBRARIES := \ |
| 43 | libbinder \ |
| 44 | liblog \ |
Yin-Chia Yeh | ead9146 | 2016-01-06 16:45:08 -0800 | [diff] [blame] | 45 | libgui \ |
Yin-Chia Yeh | 0dea57f | 2015-12-09 16:46:07 -0800 | [diff] [blame] | 46 | libutils \ |
| 47 | libandroid_runtime \ |
| 48 | libcamera_client \ |
| 49 | libstagefright_foundation \ |
| 50 | libcutils \ |
Colin Cross | 7e8d4ba | 2017-05-04 16:17:42 -0700 | [diff] [blame^] | 51 | libcamera_metadata \ |
| 52 | libmediandk |
Yin-Chia Yeh | 0dea57f | 2015-12-09 16:46:07 -0800 | [diff] [blame] | 53 | |
Yin-Chia Yeh | 0dea57f | 2015-12-09 16:46:07 -0800 | [diff] [blame] | 54 | include $(BUILD_SHARED_LIBRARY) |
| 55 | |
| 56 | endif |