1fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera#
2fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera# Copyright (C) 2010 The Android Open Source Project
3fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera#
4fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera# Licensed under the Apache License, Version 2.0 (the "License");
5fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera# you may not use this file except in compliance with the License.
6fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera# You may obtain a copy of the License at
7fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera#
8fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera#      http://www.apache.org/licenses/LICENSE-2.0
9fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera#
10fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera# Unless required by applicable law or agreed to in writing, software
11fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera# distributed under the License is distributed on an "AS IS" BASIS,
12fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera# See the License for the specific language governing permissions and
14fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera# limitations under the License.
15fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera#
16fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_PATH := $(call my-dir)
17fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
18fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbeherainclude $(CLEAR_VARS)
19fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
2090855078eb989944bca1824058d7231cd68e5021Henrik B Andersson# The flag below turns on local debug printouts
2190855078eb989944bca1824058d7231cd68e5021Henrik B Andersson#LOCAL_CFLAGS += -DDRM_OMA_FL_ENGINE_DEBUG
2290855078eb989944bca1824058d7231cd68e5021Henrik B Andersson
23559bf2836f5da25b75bfb229fec0d20d540ee426James Dongbase := frameworks/av
24fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
25fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera# Determine whether the DRM framework uses 64-bit data types for file offsets and do the same.
26fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbeheraifneq ($(shell grep -c 'off64_t offset' $(base)/drm/libdrmframework/plugins/common/include/IDrmEngine.h), 0)
27fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_CFLAGS += -DUSE_64BIT_DRM_API
28fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbeheraendif
29fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
30fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_SRC_FILES:= \
31fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    src/FwdLockEngine.cpp
32fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
33fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_MODULE := libfwdlockengine
34fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
35fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_SHARED_LIBRARIES := \
36fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libicui18n \
37fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libicuuc \
38fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libutils \
39ecba7488c5cceaacef95836b1b476433451e7761Ying Wang    liblog \
40fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libdl \
41fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libcrypto \
42fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libssl \
43fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libdrmframework
44fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
45fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_STATIC_LIBRARIES := \
46fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libdrmutility \
47fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libdrmframeworkcommon \
48fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libfwdlock-common \
49fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libfwdlock-converter \
50fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libfwdlock-decoder
51fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
529691a73139bb36c5bf294ed13eedcb04d7f05320Iliyan Malchev
53fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
54fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_C_INCLUDES += \
55fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/include/drm \
56fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/drm/libdrmframework/plugins/common/include \
57fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/drm/libdrmframework/plugins/common/util/include \
58fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/common \
59fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/converter \
60fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/decoder \
61683202e1d42d2642f7471272b4a3b5d64525a7bfAdam Langley    $(LOCAL_PATH)/include
62fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
637d6fc5ebc8718ebb5bf505d9bda83ab63741a545Colin CrossLOCAL_MODULE_RELATIVE_PATH := drm
64fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
65fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_MODULE_TAGS := optional
66fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
67fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbeherainclude $(BUILD_SHARED_LIBRARY)
68