1 # 2 # Copyright (C) 2010 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 LOCAL_PATH := $(call my-dir) 17 18 include $(CLEAR_VARS) 19 20 # The flag below turns on local debug printouts 21 #LOCAL_CFLAGS += -DDRM_OMA_FL_ENGINE_DEBUG 22 23 base := frameworks/av 24 25 # Determine whether the DRM framework uses 64-bit data types for file offsets and do the same. 26 ifneq ($(shell grep -c 'off64_t offset' $(base)/drm/libdrmframework/plugins/common/include/IDrmEngine.h), 0) 27 LOCAL_CFLAGS += -DUSE_64BIT_DRM_API 28 endif 29 30 LOCAL_SRC_FILES:= \ 31 src/FwdLockEngine.cpp 32 33 LOCAL_MODULE := libfwdlockengine 34 35 LOCAL_SHARED_LIBRARIES := \ 36 libicui18n \ 37 libicuuc \ 38 libutils \ 39 liblog \ 40 libdl \ 41 libcrypto \ 42 libssl \ 43 libdrmframework 44 45 LOCAL_STATIC_LIBRARIES := \ 46 libdrmutility \ 47 libdrmframeworkcommon \ 48 libfwdlock-common \ 49 libfwdlock-converter \ 50 libfwdlock-decoder 51 52 53 54 LOCAL_C_INCLUDES += \ 55 $(base)/include/drm \ 56 $(base)/drm/libdrmframework/plugins/common/include \ 57 $(base)/drm/libdrmframework/plugins/common/util/include \ 58 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/common \ 59 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/converter \ 60 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/decoder \ 61 $(LOCAL_PATH)/include \ 62 external/openssl/include 63 64 LOCAL_MODULE_RELATIVE_PATH := drm 65 66 LOCAL_MODULE_TAGS := optional 67 68 include $(BUILD_SHARED_LIBRARY) 69