Andreas Huber | e46b7be | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
Andreas Huber | a4f391c | 2010-10-15 13:31:29 -0700 | [diff] [blame] | 4 | ifneq ($(BUILD_WITHOUT_PV),true) |
Andreas Huber | e46b7be | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 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) |
Andreas Huber | a4f391c | 2010-10-15 13:31:29 -0700 | [diff] [blame] | 9 | endif |
Andreas Huber | e46b7be | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 10 | |
Andreas Huber | 9f9afef | 2009-09-15 12:49:11 -0700 | [diff] [blame] | 11 | LOCAL_C_INCLUDES += $(JNI_H_INCLUDE) |
Andreas Huber | 446f44f | 2009-08-25 17:23:44 -0700 | [diff] [blame] | 12 | |
Andreas Huber | b0caf94 | 2009-12-03 11:39:54 -0800 | [diff] [blame] | 13 | LOCAL_SRC_FILES:= \ |
Andreas Huber | b0caf94 | 2009-12-03 11:39:54 -0800 | [diff] [blame] | 14 | OMX.cpp \ |
| 15 | OMXComponentBase.cpp \ |
| 16 | OMXNodeInstance.cpp \ |
Andreas Huber | c7e91ee | 2009-12-15 15:22:08 -0800 | [diff] [blame] | 17 | OMXMaster.cpp |
Andreas Huber | e46b7be | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 18 | |
Andreas Huber | b0caf94 | 2009-12-03 11:39:54 -0800 | [diff] [blame] | 19 | ifneq ($(BUILD_WITHOUT_PV),true) |
| 20 | LOCAL_SRC_FILES += \ |
| 21 | OMXPVCodecsPlugin.cpp |
| 22 | else |
| 23 | LOCAL_CFLAGS += -DNO_OPENCORE |
| 24 | endif |
| 25 | |
Andreas Huber | a4f391c | 2010-10-15 13:31:29 -0700 | [diff] [blame] | 26 | LOCAL_C_INCLUDES += $(TOP)/frameworks/base/include/media/stagefright/openmax |
| 27 | |
Andreas Huber | 1de1316 | 2009-07-31 11:52:50 -0700 | [diff] [blame] | 28 | LOCAL_SHARED_LIBRARIES := \ |
| 29 | libbinder \ |
| 30 | libmedia \ |
Feng Qian | 1fd769c | 2009-08-18 11:00:30 -0700 | [diff] [blame] | 31 | libutils \ |
Andreas Huber | 1de1316 | 2009-07-31 11:52:50 -0700 | [diff] [blame] | 32 | libui \ |
Andreas Huber | 1314e73 | 2009-12-14 14:18:22 -0800 | [diff] [blame] | 33 | libcutils \ |
Andreas Huber | b0caf94 | 2009-12-03 11:39:54 -0800 | [diff] [blame] | 34 | |
| 35 | ifneq ($(BUILD_WITHOUT_PV),true) |
| 36 | LOCAL_SHARED_LIBRARIES += \ |
Andreas Huber | e46b7be | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 37 | libopencore_common |
Andreas Huber | b0caf94 | 2009-12-03 11:39:54 -0800 | [diff] [blame] | 38 | endif |
| 39 | |
Feng Qian | 1fd769c | 2009-08-18 11:00:30 -0700 | [diff] [blame] | 40 | ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true) |
Andreas Huber | c8d7c14 | 2009-11-11 16:33:17 -0800 | [diff] [blame] | 41 | LOCAL_LDLIBS += -lpthread -ldl |
| 42 | endif |
| 43 | |
| 44 | ifneq ($(TARGET_SIMULATOR),true) |
| 45 | LOCAL_SHARED_LIBRARIES += libdl |
Feng Qian | 1fd769c | 2009-08-18 11:00:30 -0700 | [diff] [blame] | 46 | endif |
| 47 | |
Andreas Huber | e46b7be | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 48 | LOCAL_MODULE:= libstagefright_omx |
| 49 | |
| 50 | include $(BUILD_SHARED_LIBRARY) |
Andreas Huber | 2ea14e2 | 2009-12-16 09:30:55 -0800 | [diff] [blame] | 51 | |
| 52 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
| 53 | |