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 15 LOCAL_PATH:= $(call my-dir) 16 17 include $(CLEAR_VARS) 18 19 LOCAL_SRC_FILES:= \ 20 MediaDrmService.cpp \ 21 main_mediadrmserver.cpp 22 23 LOCAL_SHARED_LIBRARIES:= \ 24 libbinder \ 25 liblog \ 26 libmediadrm \ 27 libutils \ 28 libhidlbase \ 29 libhidlmemory \ 30 libhidltransport \ 31 android.hardware.drm (a] 1.0 32 33 LOCAL_CFLAGS += -Wall -Wextra -Werror 34 35 LOCAL_MODULE:= mediadrmserver 36 37 # TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to 38 # 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit, 39 # that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as 40 # 64-bit. 41 ifneq ($(TARGET_ENABLE_MEDIADRM_64), true) 42 LOCAL_32_BIT_ONLY := true 43 endif 44 45 LOCAL_INIT_RC := mediadrmserver.rc 46 47 include $(BUILD_EXECUTABLE) 48