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    external/jsmn \
35    frameworks/av/drm/mediadrm/plugins/clearkey \
36    frameworks/av/include \
37    frameworks/native/include \
38
39LOCAL_MODULE := libdrmclearkeyplugin
40
41LOCAL_PROPRIETARY_MODULE := true
42LOCAL_MODULE_RELATIVE_PATH := mediadrm
43
44LOCAL_SHARED_LIBRARIES := \
45    libcrypto \
46    liblog \
47    libstagefright_foundation \
48    libutils \
49
50LOCAL_STATIC_LIBRARIES := \
51    libjsmn \
52
53LOCAL_MODULE_TAGS := optional
54
55include $(BUILD_SHARED_LIBRARY)
56
57#########################################################################
58# Build unit tests
59
60include $(LOCAL_PATH)/tests/Android.mk
61