Android.mk revision bd66383fdde32f57d51f03ff711ed2de2c890e92
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
16LOCAL_CLANG := true
17LOCAL_SANITIZE := signed-integer-overflow
18
19LOCAL_SHARED_LIBRARIES  := libstagefright
20LOCAL_SHARED_LIBRARIES  += libstagefright_omx
21LOCAL_SHARED_LIBRARIES  += libstagefright_foundation
22LOCAL_SHARED_LIBRARIES  += libutils
23LOCAL_SHARED_LIBRARIES  += liblog
24
25# We need this because the current asm generates the following link error:
26# requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC
27# Bug: 16853291
28LOCAL_LDFLAGS := -Wl,-Bsymbolic
29
30include $(BUILD_SHARED_LIBRARY)
31
32endif
33