Android.mk revision 90855078eb989944bca1824058d7231cd68e5021
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/base 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 libandroid_runtime \ 41 libnativehelper \ 42 libcrypto \ 43 libssl \ 44 libdrmframework 45 46LOCAL_STATIC_LIBRARIES := \ 47 libdrmutility \ 48 libdrmframeworkcommon \ 49 libfwdlock-common \ 50 libfwdlock-converter \ 51 libfwdlock-decoder 52 53LOCAL_PRELINK_MODULE := false 54 55LOCAL_C_INCLUDES += \ 56 $(JNI_H_INCLUDE) \ 57 $(base)/include/drm \ 58 $(base)/drm/libdrmframework/plugins/common/include \ 59 $(base)/drm/libdrmframework/plugins/common/util/include \ 60 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/common \ 61 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/converter \ 62 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/decoder \ 63 $(LOCAL_PATH)/include \ 64 external/openssl/include 65 66LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/drm/plugins/native 67 68LOCAL_MODULE_TAGS := optional 69 70include $(BUILD_SHARED_LIBRARY) 71