blob: 6e069c824a343fef53936179e1872d4579d332c7 [file] [log] [blame]
Andreas Hubere46b7be2009-07-14 16:56:47 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
Andreas Hubera4f391c2010-10-15 13:31:29 -07004ifneq ($(BUILD_WITHOUT_PV),true)
Andreas Hubere46b7be2009-07-14 16:56:47 -07005# Set up the OpenCore variables.
6include external/opencore/Config.mk
7LOCAL_C_INCLUDES := $(PV_INCLUDES)
8LOCAL_CFLAGS := $(PV_CFLAGS_MINUS_VISIBILITY)
Andreas Hubera4f391c2010-10-15 13:31:29 -07009endif
Andreas Hubere46b7be2009-07-14 16:56:47 -070010
Andreas Huber9f9afef2009-09-15 12:49:11 -070011LOCAL_C_INCLUDES += $(JNI_H_INCLUDE)
Andreas Huber446f44f2009-08-25 17:23:44 -070012
Andreas Huberb0caf942009-12-03 11:39:54 -080013LOCAL_SRC_FILES:= \
Andreas Huberb0caf942009-12-03 11:39:54 -080014 OMX.cpp \
15 OMXComponentBase.cpp \
16 OMXNodeInstance.cpp \
Andreas Huberc7e91ee2009-12-15 15:22:08 -080017 OMXMaster.cpp
Andreas Hubere46b7be2009-07-14 16:56:47 -070018
Andreas Huberb0caf942009-12-03 11:39:54 -080019ifneq ($(BUILD_WITHOUT_PV),true)
20LOCAL_SRC_FILES += \
21 OMXPVCodecsPlugin.cpp
22else
23LOCAL_CFLAGS += -DNO_OPENCORE
24endif
25
Andreas Hubera4f391c2010-10-15 13:31:29 -070026LOCAL_C_INCLUDES += $(TOP)/frameworks/base/include/media/stagefright/openmax
27
Andreas Huber1de13162009-07-31 11:52:50 -070028LOCAL_SHARED_LIBRARIES := \
29 libbinder \
30 libmedia \
Feng Qian1fd769c2009-08-18 11:00:30 -070031 libutils \
Andreas Huber1de13162009-07-31 11:52:50 -070032 libui \
Andreas Huber1314e732009-12-14 14:18:22 -080033 libcutils \
Andreas Huberb0caf942009-12-03 11:39:54 -080034
35ifneq ($(BUILD_WITHOUT_PV),true)
36LOCAL_SHARED_LIBRARIES += \
Andreas Hubere46b7be2009-07-14 16:56:47 -070037 libopencore_common
Andreas Huberb0caf942009-12-03 11:39:54 -080038endif
39
Feng Qian1fd769c2009-08-18 11:00:30 -070040ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
Andreas Huberc8d7c142009-11-11 16:33:17 -080041 LOCAL_LDLIBS += -lpthread -ldl
42endif
43
44ifneq ($(TARGET_SIMULATOR),true)
45LOCAL_SHARED_LIBRARIES += libdl
Feng Qian1fd769c2009-08-18 11:00:30 -070046endif
47
Andreas Hubere46b7be2009-07-14 16:56:47 -070048LOCAL_MODULE:= libstagefright_omx
49
50include $(BUILD_SHARED_LIBRARY)
Andreas Huber2ea14e22009-12-16 09:30:55 -080051
52include $(call all-makefiles-under,$(LOCAL_PATH))
53