1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 ifneq ($(BUILD_WITHOUT_PV),true) 5 # Set up the OpenCore variables. 6 include external/opencore/Config.mk 7 LOCAL_C_INCLUDES := $(PV_INCLUDES) 8 LOCAL_CFLAGS := $(PV_CFLAGS_MINUS_VISIBILITY) 9 endif 10 11 LOCAL_C_INCLUDES += $(JNI_H_INCLUDE) 12 13 LOCAL_SRC_FILES:= \ 14 OMX.cpp \ 15 OMXComponentBase.cpp \ 16 OMXNodeInstance.cpp \ 17 OMXMaster.cpp 18 19 ifneq ($(BUILD_WITHOUT_PV),true) 20 LOCAL_SRC_FILES += \ 21 OMXPVCodecsPlugin.cpp 22 else 23 LOCAL_CFLAGS += -DNO_OPENCORE 24 endif 25 26 LOCAL_C_INCLUDES += $(TOP)/frameworks/base/include/media/stagefright/openmax 27 28 LOCAL_SHARED_LIBRARIES := \ 29 libbinder \ 30 libmedia \ 31 libutils \ 32 libui \ 33 libcutils \ 34 libstagefright_color_conversion 35 36 ifneq ($(BUILD_WITHOUT_PV),true) 37 LOCAL_SHARED_LIBRARIES += \ 38 libopencore_common 39 endif 40 41 ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true) 42 LOCAL_LDLIBS += -lpthread -ldl 43 endif 44 45 ifneq ($(TARGET_SIMULATOR),true) 46 LOCAL_SHARED_LIBRARIES += libdl 47 endif 48 49 LOCAL_MODULE:= libstagefright_omx 50 51 include $(BUILD_SHARED_LIBRARY) 52 53 include $(call all-makefiles-under,$(LOCAL_PATH)) 54 55