blob: 7084d1b91a92efbf4207c4a1138fcf167abf6202 [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 \
Iliyan Malchev136b5e42017-04-14 00:15:09 -070037 libbinder \
Jeff Tinkerd59d3622016-12-16 01:34:52 -080038
39LOCAL_C_INCLUDES := \
40 hardware/interfaces/drm
41
John W. Brucefcde9ff2017-03-23 22:40:17 -070042# TODO(b/18948909) Some legacy DRM plugins only support 32-bit. They need to be
43# migrated to 64-bit. Once all of a device's legacy DRM plugins support 64-bit,
John W. Bruce467c0db2017-04-27 12:06:29 -070044# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as
45# 64-bit.
46ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
Jeff Tinkerd59d3622016-12-16 01:34:52 -080047LOCAL_32_BIT_ONLY := true
John W. Brucefcde9ff2017-03-23 22:40:17 -070048endif
Jeff Tinkerd59d3622016-12-16 01:34:52 -080049
50include $(BUILD_EXECUTABLE)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080051
52############# Build legacy drm impl library ############
53
54include $(CLEAR_VARS)
55LOCAL_MODULE := android.hardware.drm@1.0-impl
Steven Morelanda0da1a12017-02-13 09:59:06 -080056LOCAL_PROPRIETARY_MODULE := true
Jeff Tinkerda002fe2017-01-19 14:41:11 -080057LOCAL_MODULE_RELATIVE_PATH := hw
58LOCAL_SRC_FILES := \
59 DrmFactory.cpp \
60 DrmPlugin.cpp \
61 CryptoFactory.cpp \
62 CryptoPlugin.cpp \
John W. Brucefcde9ff2017-03-23 22:40:17 -070063 LegacyPluginPath.cpp \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080064 TypeConvert.cpp \
65
66LOCAL_SHARED_LIBRARIES := \
67 android.hardware.drm@1.0 \
68 android.hidl.memory@1.0 \
John W. Brucefcde9ff2017-03-23 22:40:17 -070069 libcutils \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080070 libhidlbase \
71 libhidlmemory \
72 libhidltransport \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080073 liblog \
74 libmediadrm \
Jiyong Parkeb845da2017-06-15 11:22:29 +090075 libstagefright_foundation_vendor \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080076 libutils \
77
78LOCAL_C_INCLUDES := \
79 frameworks/native/include \
80 frameworks/av/include
81
John W. Brucefcde9ff2017-03-23 22:40:17 -070082# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to
83# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit,
John W. Bruce467c0db2017-04-27 12:06:29 -070084# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this impl as
85# 64-bit.
86ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080087LOCAL_32_BIT_ONLY := true
John W. Brucefcde9ff2017-03-23 22:40:17 -070088endif
Jeff Tinkerda002fe2017-01-19 14:41:11 -080089
90include $(BUILD_SHARED_LIBRARY)