1 # 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 17 ############# Build legacy drm service ############ 18 19 LOCAL_PATH := $(call my-dir) 20 21 include $(CLEAR_VARS) 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 26 LOCAL_SRC_FILES := \ 27 service.cpp \ 28 29 LOCAL_SHARED_LIBRARIES := \ 30 android.hardware.drm@1.0 \ 31 android.hidl.memory@1.0 \ 32 libhidlbase \ 33 libhidltransport \ 34 libhardware \ 35 liblog \ 36 libutils \ 37 libbinder \ 38 39 LOCAL_STATIC_LIBRARIES := \ 40 android.hardware.drm@1.0-helper \ 41 42 LOCAL_C_INCLUDES := \ 43 hardware/interfaces/drm 44 45 LOCAL_HEADER_LIBRARIES := \ 46 media_plugin_headers 47 48 # 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, 50 # that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as 51 # 64-bit. 52 ifneq ($(TARGET_ENABLE_MEDIADRM_64), true) 53 LOCAL_32_BIT_ONLY := true 54 endif 55 56 include $(BUILD_EXECUTABLE) 57 58 ############# Build legacy drm impl library ############ 59 60 include $(CLEAR_VARS) 61 LOCAL_MODULE := android.hardware.drm@1.0-impl 62 LOCAL_PROPRIETARY_MODULE := true 63 LOCAL_MODULE_RELATIVE_PATH := hw 64 LOCAL_SRC_FILES := \ 65 DrmFactory.cpp \ 66 DrmPlugin.cpp \ 67 CryptoFactory.cpp \ 68 CryptoPlugin.cpp \ 69 LegacyPluginPath.cpp \ 70 TypeConvert.cpp \ 71 72 LOCAL_SHARED_LIBRARIES := \ 73 android.hardware.drm@1.0 \ 74 android.hidl.memory@1.0 \ 75 libcutils \ 76 libhidlbase \ 77 libhidlmemory \ 78 libhidltransport \ 79 liblog \ 80 libstagefright_foundation \ 81 libutils \ 82 83 LOCAL_STATIC_LIBRARIES := \ 84 android.hardware.drm@1.0-helper \ 85 86 LOCAL_C_INCLUDES := \ 87 frameworks/native/include \ 88 frameworks/av/include 89 90 # 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, 92 # that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this impl as 93 # 64-bit. 94 ifneq ($(TARGET_ENABLE_MEDIADRM_64), true) 95 LOCAL_32_BIT_ONLY := true 96 endif 97 98 include $(BUILD_SHARED_LIBRARY) 99