1ifeq ($(if $(wildcard external/libhevc),1,0),1)
2
3LOCAL_PATH := $(call my-dir)
4include $(CLEAR_VARS)
5
6LOCAL_MODULE            := libstagefright_soft_hevcdec
7LOCAL_MODULE_TAGS       := optional
8
9LOCAL_STATIC_LIBRARIES  := libhevcdec
10LOCAL_SRC_FILES         := SoftHEVC.cpp
11
12LOCAL_C_INCLUDES := $(TOP)/external/libhevc/decoder
13LOCAL_C_INCLUDES += $(TOP)/external/libhevc/common
14LOCAL_C_INCLUDES += $(TOP)/frameworks/av/media/libstagefright/include
15LOCAL_C_INCLUDES += $(TOP)/frameworks/native/include/media/openmax
16
17LOCAL_SHARED_LIBRARIES  := libstagefright
18LOCAL_SHARED_LIBRARIES  += libstagefright_omx
19LOCAL_SHARED_LIBRARIES  += libstagefright_foundation
20LOCAL_SHARED_LIBRARIES  += libutils
21LOCAL_SHARED_LIBRARIES  += liblog
22
23# We need this because the current asm generates the following link error:
24# requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC
25# Bug: 16853291
26LOCAL_LDFLAGS := -Wl,-Bsymbolic
27
28include $(BUILD_SHARED_LIBRARY)
29
30endif
31