Android.mk revision c019787ce9fb9f251c96cdb5a5d3a9ef21842d9b
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 19LOCAL_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 24LOCAL_PROPRIETARY_MODULE := true 25LOCAL_MODULE_RELATIVE_PATH := hw 26LOCAL_SRC_FILES := \ 27 service.cpp \ 28 29LOCAL_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 39LOCAL_STATIC_LIBRARIES := \ 40 android.hardware.drm@1.0-helper \ 41 42LOCAL_C_INCLUDES := \ 43 hardware/interfaces/drm 44 45# TODO(b/18948909) Some legacy DRM plugins only support 32-bit. They need to be 46# migrated to 64-bit. Once all of a device's legacy DRM plugins support 64-bit, 47# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as 48# 64-bit. 49ifneq ($(TARGET_ENABLE_MEDIADRM_64), true) 50LOCAL_32_BIT_ONLY := true 51endif 52 53include $(BUILD_EXECUTABLE) 54 55############# Build legacy drm impl library ############ 56 57include $(CLEAR_VARS) 58LOCAL_MODULE := android.hardware.drm@1.0-impl 59LOCAL_PROPRIETARY_MODULE := true 60LOCAL_MODULE_RELATIVE_PATH := hw 61LOCAL_SRC_FILES := \ 62 DrmFactory.cpp \ 63 DrmPlugin.cpp \ 64 CryptoFactory.cpp \ 65 CryptoPlugin.cpp \ 66 LegacyPluginPath.cpp \ 67 TypeConvert.cpp \ 68 69LOCAL_SHARED_LIBRARIES := \ 70 android.hardware.drm@1.0 \ 71 android.hidl.memory@1.0 \ 72 libcutils \ 73 libhidlbase \ 74 libhidlmemory \ 75 libhidltransport \ 76 liblog \ 77 libstagefright_foundation \ 78 libutils \ 79 80LOCAL_STATIC_LIBRARIES := \ 81 android.hardware.drm@1.0-helper \ 82 83LOCAL_C_INCLUDES := \ 84 frameworks/native/include \ 85 frameworks/av/include 86 87# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to 88# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit, 89# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this impl as 90# 64-bit. 91ifneq ($(TARGET_ENABLE_MEDIADRM_64), true) 92LOCAL_32_BIT_ONLY := true 93endif 94 95include $(BUILD_SHARED_LIBRARY) 96