blob: 508f9309492b525b9cce04026000f13ed2daf6f4 [file] [log] [blame]
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -08001#
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
Zachary Iqbal961cb892018-10-17 11:02:59 -070017# TODO(b/118434782): Remove this file and change name of the libcamera2
18# module in the existing Android.bp file to libcamera2ndk.
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -080019LOCAL_PATH:= $(call my-dir)
20
21ifneq ($(TARGET_BUILD_PDK), true)
22
23include $(CLEAR_VARS)
24
Yin-Chia Yehead91462016-01-06 16:45:08 -080025LOCAL_SRC_FILES:= \
26 NdkCameraManager.cpp \
27 NdkCameraMetadata.cpp \
28 NdkCameraDevice.cpp \
29 NdkCaptureRequest.cpp \
30 NdkCameraCaptureSession.cpp \
31 impl/ACameraManager.cpp \
32 impl/ACameraMetadata.cpp \
33 impl/ACameraDevice.cpp \
34 impl/ACameraCaptureSession.cpp
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -080035
36LOCAL_MODULE:= libcamera2ndk
37
Colin Cross18618192017-05-04 16:17:42 -070038LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
39LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -080040
41LOCAL_CFLAGS += -fvisibility=hidden -D EXPORT='__attribute__ ((visibility ("default")))'
Eino-Ville Talvala02bf0322016-02-18 12:41:10 -080042LOCAL_CFLAGS += -Wall -Wextra -Werror
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -080043
dimitryf6173eb2018-10-30 10:25:21 +010044LOCAL_LDFLAGS += -Wl,--version-script=$(LOCAL_PATH)/libcamera2ndk.map.txt
45
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -080046LOCAL_SHARED_LIBRARIES := \
47 libbinder \
48 liblog \
Yin-Chia Yehead91462016-01-06 16:45:08 -080049 libgui \
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -080050 libutils \
51 libandroid_runtime \
52 libcamera_client \
53 libstagefright_foundation \
54 libcutils \
Colin Cross18618192017-05-04 16:17:42 -070055 libcamera_metadata \
56 libmediandk
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -080057
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -080058include $(BUILD_SHARED_LIBRARY)
59
60endif