blob: 23a45067b6aef97aca1e7e2ec39afc90b671baab [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
John W. Brucefcde9ff2017-03-23 22:40:17 -070041# TODO(b/18948909) Some legacy DRM plugins only support 32-bit. They need to be
42# migrated to 64-bit. Once all of a device's legacy DRM plugins support 64-bit,
43# that device can turn on ENABLE_MEDIADRM_64 to build this service as 64-bit.
44ifneq ($(ENABLE_MEDIADRM_64), true)
Jeff Tinkerd59d3622016-12-16 01:34:52 -080045LOCAL_32_BIT_ONLY := true
John W. Brucefcde9ff2017-03-23 22:40:17 -070046endif
Jeff Tinkerd59d3622016-12-16 01:34:52 -080047
48include $(BUILD_EXECUTABLE)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080049
50############# Build legacy drm impl library ############
51
52include $(CLEAR_VARS)
53LOCAL_MODULE := android.hardware.drm@1.0-impl
Steven Morelanda0da1a12017-02-13 09:59:06 -080054LOCAL_PROPRIETARY_MODULE := true
Jeff Tinkerda002fe2017-01-19 14:41:11 -080055LOCAL_MODULE_RELATIVE_PATH := hw
56LOCAL_SRC_FILES := \
57 DrmFactory.cpp \
58 DrmPlugin.cpp \
59 CryptoFactory.cpp \
60 CryptoPlugin.cpp \
John W. Brucefcde9ff2017-03-23 22:40:17 -070061 LegacyPluginPath.cpp \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080062 TypeConvert.cpp \
63
64LOCAL_SHARED_LIBRARIES := \
65 android.hardware.drm@1.0 \
66 android.hidl.memory@1.0 \
John W. Brucefcde9ff2017-03-23 22:40:17 -070067 libcutils \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080068 libhidlbase \
69 libhidlmemory \
70 libhidltransport \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080071 liblog \
72 libmediadrm \
73 libstagefright_foundation \
74 libutils \
75
76LOCAL_C_INCLUDES := \
77 frameworks/native/include \
78 frameworks/av/include
79
John W. Brucefcde9ff2017-03-23 22:40:17 -070080# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to
81# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit,
82# that device can turn on ENABLE_MEDIADRM_64 to build this impl as 64-bit.
83ifneq ($(ENABLE_MEDIADRM_64), true)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080084LOCAL_32_BIT_ONLY := true
John W. Brucefcde9ff2017-03-23 22:40:17 -070085endif
Jeff Tinkerda002fe2017-01-19 14:41:11 -080086
87include $(BUILD_SHARED_LIBRARY)