blob: 76023998426ff01467251b0091b3caca7e8f2519 [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,
44# that device can turn on ENABLE_MEDIADRM_64 to build this service as 64-bit.
45ifneq ($(ENABLE_MEDIADRM_64), true)
Jeff Tinkerd59d3622016-12-16 01:34:52 -080046LOCAL_32_BIT_ONLY := true
John W. Brucefcde9ff2017-03-23 22:40:17 -070047endif
Jeff Tinkerd59d3622016-12-16 01:34:52 -080048
49include $(BUILD_EXECUTABLE)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080050
51############# Build legacy drm impl library ############
52
53include $(CLEAR_VARS)
54LOCAL_MODULE := android.hardware.drm@1.0-impl
Steven Morelanda0da1a12017-02-13 09:59:06 -080055LOCAL_PROPRIETARY_MODULE := true
Jeff Tinkerda002fe2017-01-19 14:41:11 -080056LOCAL_MODULE_RELATIVE_PATH := hw
57LOCAL_SRC_FILES := \
58 DrmFactory.cpp \
59 DrmPlugin.cpp \
60 CryptoFactory.cpp \
61 CryptoPlugin.cpp \
John W. Brucefcde9ff2017-03-23 22:40:17 -070062 LegacyPluginPath.cpp \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080063 TypeConvert.cpp \
64
65LOCAL_SHARED_LIBRARIES := \
66 android.hardware.drm@1.0 \
67 android.hidl.memory@1.0 \
John W. Brucefcde9ff2017-03-23 22:40:17 -070068 libcutils \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080069 libhidlbase \
70 libhidlmemory \
71 libhidltransport \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080072 liblog \
73 libmediadrm \
74 libstagefright_foundation \
75 libutils \
76
77LOCAL_C_INCLUDES := \
78 frameworks/native/include \
79 frameworks/av/include
80
John W. Brucefcde9ff2017-03-23 22:40:17 -070081# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to
82# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit,
83# that device can turn on ENABLE_MEDIADRM_64 to build this impl as 64-bit.
84ifneq ($(ENABLE_MEDIADRM_64), true)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080085LOCAL_32_BIT_ONLY := true
John W. Brucefcde9ff2017-03-23 22:40:17 -070086endif
Jeff Tinkerda002fe2017-01-19 14:41:11 -080087
88include $(BUILD_SHARED_LIBRARY)