blob: d66f377b5be618ec3bea21821df98d4c027e002b [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)
Peter Kalauskas724a9fc2018-11-14 09:38:32 -080022
23include $(LOCAL_PATH)/common_default_service.mk
Jeff Tinkerd59d3622016-12-16 01:34:52 -080024LOCAL_MODULE := android.hardware.drm@1.0-service
25LOCAL_INIT_RC := android.hardware.drm@1.0-service.rc
Peter Kalauskas724a9fc2018-11-14 09:38:32 -080026LOCAL_SRC_FILES := service.cpp
Jeff Tinkerd59d3622016-12-16 01:34:52 -080027
Peter Kalauskas724a9fc2018-11-14 09:38:32 -080028include $(BUILD_EXECUTABLE)
Jeff Tinkerd59d3622016-12-16 01:34:52 -080029
Peter Kalauskas724a9fc2018-11-14 09:38:32 -080030############# Build legacy drm lazy service ############
Jiyong Park07770c72017-06-19 22:06:41 +090031
Peter Kalauskas724a9fc2018-11-14 09:38:32 -080032include $(CLEAR_VARS)
Jeff Tinkerd59d3622016-12-16 01:34:52 -080033
Peter Kalauskas724a9fc2018-11-14 09:38:32 -080034include $(LOCAL_PATH)/common_default_service.mk
35LOCAL_MODULE := android.hardware.drm@1.0-service-lazy
36LOCAL_OVERRIDES_MODULES := android.hardware.drm@1.0-service
37LOCAL_INIT_RC := android.hardware.drm@1.0-service-lazy.rc
38LOCAL_SRC_FILES := serviceLazy.cpp
Jeff Tinkerd59d3622016-12-16 01:34:52 -080039
40include $(BUILD_EXECUTABLE)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080041
42############# Build legacy drm impl library ############
43
44include $(CLEAR_VARS)
45LOCAL_MODULE := android.hardware.drm@1.0-impl
Steven Morelanda0da1a12017-02-13 09:59:06 -080046LOCAL_PROPRIETARY_MODULE := true
Jeff Tinkerda002fe2017-01-19 14:41:11 -080047LOCAL_MODULE_RELATIVE_PATH := hw
48LOCAL_SRC_FILES := \
49 DrmFactory.cpp \
50 DrmPlugin.cpp \
51 CryptoFactory.cpp \
52 CryptoPlugin.cpp \
John W. Brucefcde9ff2017-03-23 22:40:17 -070053 LegacyPluginPath.cpp \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080054 TypeConvert.cpp \
55
56LOCAL_SHARED_LIBRARIES := \
57 android.hardware.drm@1.0 \
58 android.hidl.memory@1.0 \
John W. Brucefcde9ff2017-03-23 22:40:17 -070059 libcutils \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080060 libhidlbase \
61 libhidlmemory \
62 libhidltransport \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080063 liblog \
Steven Morelandc0197872017-06-22 17:11:09 -070064 libstagefright_foundation \
Jeff Tinkerda002fe2017-01-19 14:41:11 -080065 libutils \
66
Jiyong Park07770c72017-06-19 22:06:41 +090067LOCAL_STATIC_LIBRARIES := \
68 android.hardware.drm@1.0-helper \
69
Jeff Tinkerda002fe2017-01-19 14:41:11 -080070LOCAL_C_INCLUDES := \
71 frameworks/native/include \
72 frameworks/av/include
73
John W. Brucefcde9ff2017-03-23 22:40:17 -070074# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to
75# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit,
John W. Bruce467c0db2017-04-27 12:06:29 -070076# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this impl as
77# 64-bit.
78ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
Jeff Tinkerda002fe2017-01-19 14:41:11 -080079LOCAL_32_BIT_ONLY := true
John W. Brucefcde9ff2017-03-23 22:40:17 -070080endif
Jeff Tinkerda002fe2017-01-19 14:41:11 -080081
82include $(BUILD_SHARED_LIBRARY)