Android.mk revision 0a32d7981b98fdfca48a1e35ca746f1cc11849d3
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
20base := frameworks/base
21
22# Determine whether the DRM framework uses 64-bit data types for file offsets and do the same.
23ifneq ($(shell grep -c 'off64_t offset' $(base)/drm/libdrmframework/plugins/common/include/IDrmEngine.h), 0)
24LOCAL_CFLAGS += -DUSE_64BIT_DRM_API
25endif
26
27LOCAL_SRC_FILES:= \
28    src/FwdLockEngine.cpp
29
30LOCAL_MODULE := libfwdlockengine
31
32LOCAL_SHARED_LIBRARIES := \
33    libicui18n \
34    libicuuc \
35    libutils \
36    libdl \
37    libandroid_runtime \
38    libnativehelper \
39    libcrypto \
40    libssl \
41    libdrmframework
42
43LOCAL_STATIC_LIBRARIES := \
44    libdrmutility \
45    libdrmframeworkcommon \
46    libfwdlock-common \
47    libfwdlock-converter \
48    libfwdlock-decoder
49
50LOCAL_PRELINK_MODULE := false
51
52LOCAL_C_INCLUDES += \
53    $(JNI_H_INCLUDE) \
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