1# Copyright 2014 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH:= $(call my-dir) 16 17include $(CLEAR_VARS) 18 19LOCAL_SRC_FILES:= \ 20 MediaDrmService.cpp \ 21 main_mediadrmserver.cpp 22 23LOCAL_SHARED_LIBRARIES:= \ 24 libbinder \ 25 liblog \ 26 libmediadrm \ 27 libutils \ 28 libhidlbase \ 29 libhidlmemory \ 30 libhidltransport \ 31 android.hardware.drm@1.0 \ 32 android.hardware.drm@1.1 33 34LOCAL_CFLAGS += -Wall -Wextra -Werror 35 36LOCAL_MODULE:= mediadrmserver 37 38# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to 39# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit, 40# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as 41# 64-bit. 42ifneq ($(TARGET_ENABLE_MEDIADRM_64), true) 43LOCAL_32_BIT_ONLY := true 44endif 45 46LOCAL_INIT_RC := mediadrmserver.rc 47 48include $(BUILD_EXECUTABLE) 49