LOCAL_CFLAGS := $(PV_CFLAGS)
-ifeq ($(TARGET_DEVICE),dream)
-LOCAL_CFLAGS += -DHARDWARE_OMX=1
-endif
+# board-specific configuration
+LOCAL_CFLAGS += $(BOARD_OPENCORE_FLAGS)
LOCAL_ARM_MODE := arm
LOCAL_CFLAGS := $(PV_CFLAGS)
-ifeq ($(TARGET_DEVICE),dream)
-LOCAL_CFLAGS += -DHARDWARE_OMX=1
-endif
+# board-specific configuration
+LOCAL_CFLAGS += $(BOARD_OPENCORE_FLAGS)
LOCAL_ARM_MODE := arm
LOCAL_SHARED_LIBRARIES += libdl
endif
-# Include Qualcomm codec
-ifeq ($(TARGET_DEVICE),dream)
-LOCAL_SHARED_LIBRARIES += libOmxCore
-endif
-
+# Include board-specific extensions
+LOCAL_SHARED_LIBRARIES += $(BOARD_OPENCORE_LIBRARIES)
LOCAL_MODULE := libopencoreauthor
LOCAL_SHARED_LIBRARIES += libdl
endif
-# Include Qualcomm codec
-ifeq ($(TARGET_DEVICE),dream)
-LOCAL_SHARED_LIBRARIES += libOmxCore
-endif
+# Include board-specific extensions
+LOCAL_SHARED_LIBRARIES += $(BOARD_OPENCORE_LIBRARIES)
LOCAL_MODULE := libopencorecommon
LOCAL_SHARED_LIBRARIES += libdl
endif
-# Include Qualcomm codec
-ifeq ($(TARGET_DEVICE),dream)
-LOCAL_SHARED_LIBRARIES += libOmxCore
-endif
+# Include board-specific extensions
+LOCAL_SHARED_LIBRARIES += $(BOARD_OPENCORE_LIBRARIES)
LOCAL_MODULE := libopencoreplayer