Home | History | Annotate | Download | only in FwdLockEngine
      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 #
     16 LOCAL_PATH := $(call my-dir)
     17 
     18 include $(CLEAR_VARS)
     19 
     20 # The flag below turns on local debug printouts
     21 #LOCAL_CFLAGS += -DDRM_OMA_FL_ENGINE_DEBUG
     22 
     23 base := frameworks/base
     24 
     25 # Determine whether the DRM framework uses 64-bit data types for file offsets and do the same.
     26 ifneq ($(shell grep -c 'off64_t offset' $(base)/drm/libdrmframework/plugins/common/include/IDrmEngine.h), 0)
     27 LOCAL_CFLAGS += -DUSE_64BIT_DRM_API
     28 endif
     29 
     30 LOCAL_SRC_FILES:= \
     31     src/FwdLockEngine.cpp
     32 
     33 LOCAL_MODULE := libfwdlockengine
     34 
     35 LOCAL_SHARED_LIBRARIES := \
     36     libicui18n \
     37     libicuuc \
     38     libutils \
     39     libdl \
     40     libandroid_runtime \
     41     libnativehelper \
     42     libcrypto \
     43     libssl \
     44     libdrmframework
     45 
     46 LOCAL_STATIC_LIBRARIES := \
     47     libdrmutility \
     48     libdrmframeworkcommon \
     49     libfwdlock-common \
     50     libfwdlock-converter \
     51     libfwdlock-decoder
     52 
     53 
     54 
     55 LOCAL_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 
     66 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/drm
     67 
     68 LOCAL_MODULE_TAGS := optional
     69 
     70 include $(BUILD_SHARED_LIBRARY)
     71