blob: 99773be38584df3531ec4f83606d4453d73af1b6 [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
Jiyong Park07770c72017-06-19 22:06:41 +090039LOCAL_STATIC_LIBRARIES := \
40 android.hardware.drm@1.0-helper \
41
Jeff Tinkerd59d3622016-12-16 01:34:52 -080042LOCAL_C_INCLUDES := \
43 hardware/interfaces/drm
44
Jiyong Park323d1722017-06-29 14:31:59 +090045LOCAL_HEADER_LIBRARIES := \
46 media_plugin_headers
47
John W. Brucefcde9ff2017-03-23 22:40:17 -070048# TODO(b/18948909) Some legacy DRM plugins only support 32-bit. They need to be
49# migrated to 64-bit. Once all of a device's legacy DRM plugins support 64-bit,
John W. Bruce467c0db2017-04-27 12:06:29 -070050# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as
51# 64-bit.
52ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
Jeff Tinkerd59d3622016-12-16 01:34:52 -080053LOCAL_32_BIT_ONLY := true
John W. Brucefcde9ff2017-03-23 22:40:17 -070054endif
Jeff Tinkerd59d3622016-12-16 01:34:52 -080055
56include $(BUILD_EXECUTABLE)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080057
58############# Build legacy drm impl library ############
59
60include $(CLEAR_VARS)
61LOCAL_MODULE := android.hardware.drm@1.0-impl
Steven Morelanda0da1a12017-02-13 09:59:06 -080062LOCAL_PROPRIETARY_MODULE := true
Jeff Tinkerda002fe2017-01-19 14:41:11 -080063LOCAL_MODULE_RELATIVE_PATH := hw
64LOCAL_SRC_FILES := \
65 DrmFactory.cpp \
66 DrmPlugin.cpp \
67 CryptoFactory.cpp \
68 CryptoPlugin.cpp \
John W. Brucefcde9ff2017-03-23 22:40:17 -070069 LegacyPluginPath.cpp \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080070 TypeConvert.cpp \
71
72LOCAL_SHARED_LIBRARIES := \
73 android.hardware.drm@1.0 \
74 android.hidl.memory@1.0 \
John W. Brucefcde9ff2017-03-23 22:40:17 -070075 libcutils \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080076 libhidlbase \
77 libhidlmemory \
78 libhidltransport \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080079 liblog \
Steven Morelandc0197872017-06-22 17:11:09 -070080 libstagefright_foundation \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080081 libutils \
82
Jiyong Park07770c72017-06-19 22:06:41 +090083LOCAL_STATIC_LIBRARIES := \
84 android.hardware.drm@1.0-helper \
85
Jeff Tinkerda002fe2017-01-19 14:41:11 -080086LOCAL_C_INCLUDES := \
87 frameworks/native/include \
88 frameworks/av/include
89
John W. Brucefcde9ff2017-03-23 22:40:17 -070090# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to
91# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit,
John W. Bruce467c0db2017-04-27 12:06:29 -070092# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this impl as
93# 64-bit.
94ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080095LOCAL_32_BIT_ONLY := true
John W. Brucefcde9ff2017-03-23 22:40:17 -070096endif
Jeff Tinkerda002fe2017-01-19 14:41:11 -080097
98include $(BUILD_SHARED_LIBRARY)