Skip to content

Commit

Permalink
Add support for mce-plugin-libhybris
Browse files Browse the repository at this point in the history
The mce-hybris module provides interface that can use Android
libhardware functionality via libhybris if mce-plugin-libhybris
package is installed on the device.

[mce] Added support for mce-plugin-libhybris
  • Loading branch information
spiiroin committed Apr 30, 2013
1 parent 17cfc37 commit 42ec99b
Show file tree
Hide file tree
Showing 4 changed files with 804 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .depend
Expand Up @@ -162,6 +162,20 @@ mce-hal.pic.o:\
mce-lib.h\
mce-log.h\

mce-hybris.o:\
mce-hybris.c\
mce-conf.h\
mce-hybris.h\
mce-log.h\
mce-modules.h\

mce-hybris.pic.o:\
mce-hybris.c\
mce-conf.h\
mce-hybris.h\
mce-log.h\
mce-modules.h\

mce-io.o:\
mce-io.c\
datapipe.h\
Expand Down
14 changes: 13 additions & 1 deletion Makefile
Expand Up @@ -69,6 +69,9 @@ endif
endif
PKG_CONFIG ?= pkg-config

# Whether to enable support for libhybris plugin
ENABLE_HYBRIS ?= y

# Whether to enable wakelock compatibility code
ENABLE_WAKELOCKS ?= y

Expand Down Expand Up @@ -199,6 +202,10 @@ ifeq ($(strip $(ENABLE_BUILTIN_GCONF)),y)
CPPFLAGS += -DENABLE_BUILTIN_GCONF
endif

ifeq ($(ENABLE_HYBRIS),y)
CPPFLAGS += -DENABLE_HYBRIS
endif

# C Compiler
CFLAGS += -std=c99

Expand Down Expand Up @@ -280,7 +287,9 @@ MCE_CORE += mce-lib.c
MCE_CORE += median_filter.c
MCE_CORE += evdev.c
MCE_CORE += filewatcher.c

ifeq ($(ENABLE_HYBRIS),y)
MCE_CORE += mce-hybris.c
endif
# HACK: do not link against libgconf-2
ifeq ($(strip $(ENABLE_BUILTIN_GCONF)),y)
MCE_CORE += builtin-gconf.c
Expand All @@ -293,6 +302,9 @@ endif

mce : CFLAGS += $(MCE_CFLAGS)
mce : LDLIBS += $(MCE_LDLIBS)
ifeq ($(ENABLE_HYBRIS),y)
mce : LDLIBS += -ldl
endif
mce : mce.o $(patsubst %.c,%.o,$(MCE_CORE))

# ----------------------------------------------------------------------------
Expand Down

0 comments on commit 42ec99b

Please sign in to comment.