• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2017 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    ClearKeyCasPlugin.cpp \
21    ClearKeyFetcher.cpp \
22    ClearKeyLicenseFetcher.cpp \
23    ClearKeySessionLibrary.cpp \
24    ecm.cpp \
25    ecm_generator.cpp \
26    JsonAssetLoader.cpp \
27    protos/license_protos.proto \
28
29LOCAL_MODULE := libclearkeycasplugin
30
31LOCAL_PROPRIETARY_MODULE := true
32LOCAL_MODULE_RELATIVE_PATH := mediacas
33
34LOCAL_SHARED_LIBRARIES := \
35    libutils \
36    liblog \
37    libcrypto \
38    libstagefright_foundation \
39    libprotobuf-cpp-lite \
40
41LOCAL_HEADER_LIBRARIES := \
42    media_plugin_headers
43
44LOCAL_STATIC_LIBRARIES := \
45    libjsmn \
46
47LOCAL_MODULE_CLASS := SHARED_LIBRARIES
48
49LOCAL_PROTOC_OPTIMIZE_TYPE := full
50
51define proto_includes
52$(call local-generated-sources-dir)/proto/$(LOCAL_PATH)
53endef
54
55LOCAL_C_INCLUDES += \
56    external/jsmn \
57    frameworks/av/include \
58    frameworks/native/include/media \
59    $(call proto_includes)
60
61LOCAL_EXPORT_C_INCLUDE_DIRS := \
62    $(call proto_includes)
63
64LOCAL_MODULE_TAGS := optional
65
66include $(BUILD_SHARED_LIBRARY)
67
68#########################################################################
69# Build unit tests
70
71include $(LOCAL_PATH)/tests/Android.mk
72