Android.mk revision 8d0bc4a8ea2a5d0d6aba036f15b185d60e18778f
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_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/mediadrm
44
45LOCAL_SHARED_LIBRARIES := \
46    libcrypto \
47    liblog \
48    libstagefright_foundation \
49    libutils \
50
51LOCAL_STATIC_LIBRARIES := \
52    libjsmn \
53
54LOCAL_MODULE_TAGS := optional
55
56include $(BUILD_SHARED_LIBRARY)
57
58#########################################################################
59# Build unit tests
60
61include $(LOCAL_PATH)/tests/Android.mk
62