summaryrefslogtreecommitdiffstats
path: root/liblight/Android.mk
diff options
context:
space:
mode:
authorAraemo <araemo@gmail.com>2013-02-13 21:32:49 -0500
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-07-12 06:15:25 -0700
commit889f4e58cb47a94671aa162a6fe252f9ee44b24a (patch)
tree889d218035a1ab7b8acfc9ba3959c84f629908da /liblight/Android.mk
parent82593a44157ded87f7f31c20d82abb9eb682598f (diff)
downloaddevice_samsung_aries-common-889f4e58cb47a94671aa162a6fe252f9ee44b24a.zip
device_samsung_aries-common-889f4e58cb47a94671aa162a6fe252f9ee44b24a.tar.gz
device_samsung_aries-common-889f4e58cb47a94671aa162a6fe252f9ee44b24a.tar.bz2
Enhance liblights to support touchkey backlight
Adds the necessary function to control capacitive key backlight from userspace Set BOARD_BUTTON_LIGHTS_PATH in BoardConfig to the relevant device node path to enable this Used by Infuse4g at least - May be applicable to other devices? (epicmtd has a similar function in their liblights) Change-Id: I2bebd6a8b2dc7624c42c78e9862246f10725a000
Diffstat (limited to 'liblight/Android.mk')
-rw-r--r--liblight/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/liblight/Android.mk b/liblight/Android.mk
index 9933c34..8c4ae27 100644
--- a/liblight/Android.mk
+++ b/liblight/Android.mk
@@ -28,5 +28,9 @@ LOCAL_MODULE := lights.aries
LOCAL_MODULE_TAGS := optional
+ifdef BOARD_BUTTON_LIGHTS_PATH
+ LOCAL_CFLAGS += -DBUTTONS_FILE=\"$(BOARD_BUTTON_LIGHTS_PATH)\"
+endif
+
include $(BUILD_SHARED_LIBRARY)