Android.mk revision 5f5ee1110dd85001b43db7637a97474acfe8d681
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
17LOCAL_PATH:= $(call my-dir)
18
19ifneq ($(TARGET_BUILD_PDK), true)
20
21include $(CLEAR_VARS)
22
23LOCAL_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
33
34LOCAL_MODULE:= libcamera2ndk
35
36LOCAL_C_INCLUDES := \
37    frameworks/av/include/camera/ndk \
38    frameworks/av/include/ndk
39
40LOCAL_CFLAGS += -fvisibility=hidden -D EXPORT='__attribute__ ((visibility ("default")))'
41LOCAL_CFLAGS += -Wall -Wextra -Werror
42
43LOCAL_SHARED_LIBRARIES := \
44    libbinder \
45    liblog \
46    libgui \
47    libutils \
48    libandroid_runtime \
49    libcamera_client \
50    libstagefright_foundation \
51    libcutils \
52    libcamera_metadata
53
54include $(BUILD_SHARED_LIBRARY)
55
56endif
57