blob: f2334a0838b704b1c3fbbe774f18d96551ad3a7e [file] [log] [blame]
Jeff Tinkerd59d3622016-12-16 01:34:52 -08001#
2# Copyright (C) 2016 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
Jeff Tinkerda002fe2017-01-19 14:41:11 -080017############# Build legacy drm service ############
18
Jeff Tinkerd59d3622016-12-16 01:34:52 -080019LOCAL_PATH := $(call my-dir)
20
21include $(CLEAR_VARS)
22LOCAL_MODULE := android.hardware.drm@1.0-service
23LOCAL_INIT_RC := android.hardware.drm@1.0-service.rc
Steven Morelanda0da1a12017-02-13 09:59:06 -080024LOCAL_PROPRIETARY_MODULE := true
Jeff Tinkerd59d3622016-12-16 01:34:52 -080025LOCAL_MODULE_RELATIVE_PATH := hw
26LOCAL_SRC_FILES := \
27 service.cpp \
28
29LOCAL_SHARED_LIBRARIES := \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080030 android.hardware.drm@1.0 \
31 android.hidl.memory@1.0 \
Jeff Tinkerd59d3622016-12-16 01:34:52 -080032 libhidlbase \
33 libhidltransport \
Jeff Tinkerd59d3622016-12-16 01:34:52 -080034 libhardware \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080035 liblog \
36 libutils \
Jeff Tinkerd59d3622016-12-16 01:34:52 -080037
38LOCAL_C_INCLUDES := \
39 hardware/interfaces/drm
40
41# TODO: The legacy DRM plugins only support 32-bit. They need
42# to be migrated to 64-bit (b/18948909)
43LOCAL_32_BIT_ONLY := true
44
45include $(BUILD_EXECUTABLE)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080046
47############# Build legacy drm impl library ############
48
49include $(CLEAR_VARS)
50LOCAL_MODULE := android.hardware.drm@1.0-impl
Steven Morelanda0da1a12017-02-13 09:59:06 -080051LOCAL_PROPRIETARY_MODULE := true
Jeff Tinkerda002fe2017-01-19 14:41:11 -080052LOCAL_MODULE_RELATIVE_PATH := hw
53LOCAL_SRC_FILES := \
54 DrmFactory.cpp \
55 DrmPlugin.cpp \
56 CryptoFactory.cpp \
57 CryptoPlugin.cpp \
58 TypeConvert.cpp \
59
60LOCAL_SHARED_LIBRARIES := \
61 android.hardware.drm@1.0 \
62 android.hidl.memory@1.0 \
63 libhidlbase \
64 libhidlmemory \
65 libhidltransport \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080066 liblog \
67 libmediadrm \
68 libstagefright_foundation \
69 libutils \
70
71LOCAL_C_INCLUDES := \
72 frameworks/native/include \
73 frameworks/av/include
74
75# TODO: The legacy DRM plugins only support 32-bit. They need
76# to be migrated to 64-bit (b/18948909)
77LOCAL_32_BIT_ONLY := true
78
79include $(BUILD_SHARED_LIBRARY)