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 frameworks/base/core/jni \ 38 frameworks/av/include/ndk \ 39 system/media/camera/include 40 41LOCAL_CFLAGS += -fvisibility=hidden -D EXPORT='__attribute__ ((visibility ("default")))' 42 43LOCAL_CFLAGS += -Werror 44 45LOCAL_SHARED_LIBRARIES := \ 46 libbinder \ 47 libmedia \ 48 libmediadrm \ 49 libstagefright \ 50 libstagefright_foundation \ 51 liblog \ 52 libutils \ 53 libcutils \ 54 libandroid_runtime \ 55 libbinder \ 56 libgui \ 57 libui \ 58 59include $(BUILD_SHARED_LIBRARY) 60 61endif 62