Android.mk revision ecba7488c5cceaacef95836b1b476433451e7761
1b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# 2b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# Copyright (C) 2010 The Android Open Source Project 3b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# 4b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# Licensed under the Apache License, Version 2.0 (the "License"); 558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)# you may not use this file except in compliance with the License. 6b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# You may obtain a copy of the License at 7b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# 8b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# http://www.apache.org/licenses/LICENSE-2.0 9b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# 10b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# Unless required by applicable law or agreed to in writing, software 11b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# distributed under the License is distributed on an "AS IS" BASIS, 12b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# See the License for the specific language governing permissions and 14b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# limitations under the License. 15b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# 16b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)LOCAL_PATH := $(call my-dir) 17b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 18b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)include $(CLEAR_VARS) 19b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 20b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)# The flag below turns on local debug printouts 2158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#LOCAL_CFLAGS += -DDRM_OMA_FL_ENGINE_DEBUG 2258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles) 235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)base := frameworks/av 2458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles) 2558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)# Determine whether the DRM framework uses 64-bit data types for file offsets and do the same. 2658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)ifneq ($(shell grep -c 'off64_t offset' $(base)/drm/libdrmframework/plugins/common/include/IDrmEngine.h), 0) 275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_CFLAGS += -DUSE_64BIT_DRM_API 2858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)endif 2958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles) 3058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)LOCAL_SRC_FILES:= \ 3158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles) src/FwdLockEngine.cpp 3258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles) 3358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)LOCAL_MODULE := libfwdlockengine 34b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 35LOCAL_SHARED_LIBRARIES := \ 36 libicui18n \ 37 libicuuc \ 38 libutils \ 39 liblog \ 40 libdl \ 41 libcrypto \ 42 libssl \ 43 libdrmframework 44 45LOCAL_STATIC_LIBRARIES := \ 46 libdrmutility \ 47 libdrmframeworkcommon \ 48 libfwdlock-common \ 49 libfwdlock-converter \ 50 libfwdlock-decoder 51 52 53 54LOCAL_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 64LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/drm 65 66LOCAL_MODULE_TAGS := optional 67 68include $(BUILD_SHARED_LIBRARY) 69