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# 16LOCAL_PATH:= $(call my-dir) 17include $(CLEAR_VARS) 18 19LOCAL_SRC_FILES := \ 20 AesCtrDecryptor.cpp \ 21 ClearKeyUUID.cpp \ 22 CreatePluginFactories.cpp \ 23 CryptoFactory.cpp \ 24 CryptoPlugin.cpp \ 25 DrmFactory.cpp \ 26 DrmPlugin.cpp \ 27 InitDataParser.cpp \ 28 JsonWebKey.cpp \ 29 Session.cpp \ 30 SessionLibrary.cpp \ 31 Utils.cpp \ 32 33LOCAL_C_INCLUDES := \ 34 bionic \ 35 external/jsmn \ 36 external/openssl/include \ 37 frameworks/av/drm/mediadrm/plugins/clearkey \ 38 frameworks/av/include \ 39 frameworks/native/include \ 40 41LOCAL_MODULE := libdrmclearkeyplugin 42 43LOCAL_PROPRIETARY_MODULE := true 44LOCAL_MODULE_RELATIVE_PATH := mediadrm 45 46LOCAL_SHARED_LIBRARIES := \ 47 libcrypto \ 48 liblog \ 49 libstagefright_foundation \ 50 libutils \ 51 52LOCAL_STATIC_LIBRARIES := \ 53 libjsmn \ 54 55LOCAL_MODULE_TAGS := optional 56 57include $(BUILD_SHARED_LIBRARY) 58 59######################################################################### 60# Build unit tests 61 62include $(LOCAL_PATH)/tests/Android.mk 63