1#
2# Copyright (C) 2014 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                  NdkMediaCodec.cpp                     \
25                  NdkMediaCrypto.cpp                    \
26                  NdkMediaExtractor.cpp                 \
27                  NdkMediaFormat.cpp                    \
28                  NdkMediaMuxer.cpp                     \
29                  NdkMediaDrm.cpp                       \
30                  NdkImage.cpp                          \
31                  NdkImageReader.cpp                    \
32
33LOCAL_MODULE:= libmediandk
34
35LOCAL_C_INCLUDES := \
36    bionic/libc/private \
37    external/piex \
38    frameworks/base/core/jni \
39    frameworks/base/media/jni \
40    frameworks/av/include/ndk \
41    frameworks/native/include \
42    frameworks/native/include/media/openmax \
43    system/media/camera/include \
44    $(call include-path-for, libhardware)/hardware \
45
46LOCAL_CFLAGS += -fvisibility=hidden -D EXPORT='__attribute__ ((visibility ("default")))'
47
48LOCAL_CFLAGS += -Werror -Wall
49
50LOCAL_STATIC_LIBRARIES := \
51    libgrallocusage \
52
53LOCAL_SHARED_LIBRARIES := \
54    libbinder \
55    libmedia \
56    libmedia_jni \
57    libmediadrm \
58    libskia \
59    libstagefright \
60    libstagefright_foundation \
61    liblog \
62    libutils \
63    libcutils \
64    libandroid \
65    libandroid_runtime \
66    libbinder \
67    libgui \
68    libui \
69    libandroid \
70
71include $(BUILD_SHARED_LIBRARY)
72
73endif
74