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 \
39fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libdl \
40fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libcrypto \
41fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libssl \
42fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libdrmframework
43fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
44fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_STATIC_LIBRARIES := \
45fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libdrmutility \
46fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libdrmframeworkcommon \
47fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libfwdlock-common \
48fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libfwdlock-converter \
49fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    libfwdlock-decoder
50fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
519691a73139bb36c5bf294ed13eedcb04d7f05320Iliyan Malchev
52fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
53fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_C_INCLUDES += \
54fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/include/drm \
55fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/drm/libdrmframework/plugins/common/include \
56fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/drm/libdrmframework/plugins/common/util/include \
57fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/common \
58fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/converter \
59fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/decoder \
60fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    $(LOCAL_PATH)/include \
61fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera    external/openssl/include
62fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
630a32d7981b98fdfca48a1e35ca746f1cc11849d3Gloria WangLOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/drm
64fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
65fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat DalbeheraLOCAL_MODULE_TAGS := optional
66fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbehera
67fdd65a0fc7df2c878cc601e4c0f4021cb264f051Pravat Dalbeherainclude $(BUILD_SHARED_LIBRARY)
68