2 # Copyright (C) 2016 The Android Open Source Project
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 ############# Build legacy drm service ############
19 LOCAL_PATH := $(call my-dir)
22 LOCAL_MODULE := android.hardware.drm@1.0-service
23 LOCAL_INIT_RC := android.hardware.drm@1.0-service.rc
24 LOCAL_PROPRIETARY_MODULE := true
25 LOCAL_MODULE_RELATIVE_PATH := hw
29 LOCAL_SHARED_LIBRARIES := \
30 android.hardware.drm@1.0 \
31 android.hidl.memory@1.0 \
40 hardware/interfaces/drm
42 # 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 TARGET_ENABLE_MEDIADRM_64 to build this service as
46 ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
47 LOCAL_32_BIT_ONLY := true
50 include $(BUILD_EXECUTABLE)
52 ############# Build legacy drm impl library ############
55 LOCAL_MODULE := android.hardware.drm@1.0-impl
56 LOCAL_PROPRIETARY_MODULE := true
57 LOCAL_MODULE_RELATIVE_PATH := hw
63 LegacyPluginPath.cpp \
66 LOCAL_SHARED_LIBRARIES := \
67 android.hardware.drm@1.0 \
68 android.hidl.memory@1.0 \
75 libstagefright_foundation \
79 frameworks/native/include \
82 # 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,
84 # that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this impl as
86 ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
87 LOCAL_32_BIT_ONLY := true
90 include $(BUILD_SHARED_LIBRARY)