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 23 include $(LOCAL_PATH)/common_default_service.mk 24 LOCAL_MODULE := android.hardware.drm@1.0-service 25 LOCAL_INIT_RC := android.hardware.drm@1.0-service.rc 26 LOCAL_SRC_FILES := service.cpp 27 28 include $(BUILD_EXECUTABLE) 29 30 ############# Build legacy drm lazy service ############ 31 32 include $(CLEAR_VARS) 33 34 include $(LOCAL_PATH)/common_default_service.mk 35 LOCAL_MODULE := android.hardware.drm@1.0-service-lazy 36 LOCAL_OVERRIDES_MODULES := android.hardware.drm@1.0-service 37 LOCAL_INIT_RC := android.hardware.drm@1.0-service-lazy.rc 38 LOCAL_SRC_FILES := serviceLazy.cpp 39 40 include $(BUILD_EXECUTABLE) 41 42 ############# Build legacy drm impl library ############ 43 44 include $(CLEAR_VARS) 45 LOCAL_MODULE := android.hardware.drm@1.0-impl 46 LOCAL_PROPRIETARY_MODULE := true 47 LOCAL_MODULE_RELATIVE_PATH := hw 48 LOCAL_SRC_FILES := \ 49 DrmFactory.cpp \ 50 DrmPlugin.cpp \ 51 CryptoFactory.cpp \ 52 CryptoPlugin.cpp \ 53 LegacyPluginPath.cpp \ 54 TypeConvert.cpp \ 55 56 LOCAL_SHARED_LIBRARIES := \ 57 android.hardware.drm@1.0 \ 58 android.hidl.memory@1.0 \ 59 libcutils \ 60 libhidlbase \ 61 libhidlmemory \ 62 libhidltransport \ 63 liblog \ 64 libstagefright_foundation \ 65 libutils \ 66 67 LOCAL_STATIC_LIBRARIES := \ 68 android.hardware.drm@1.0-helper \ 69 70 LOCAL_C_INCLUDES := \ 71 frameworks/native/include \ 72 frameworks/av/include 73 74 # 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, 76 # that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this impl as 77 # 64-bit. 78 ifneq ($(TARGET_ENABLE_MEDIADRM_64), true) 79 LOCAL_32_BIT_ONLY := true 80 endif 81 82 include $(BUILD_SHARED_LIBRARY) 83