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