liblights: Allow devices to override node paths
* Update the copyrights while we're at it.
Change-Id: Ie1bbf1f5150428a47baf6615f32d703d578efb82
diff --git a/liblights/Android.mk b/liblights/Android.mk
index 08d7e87..3acc7ba 100644
--- a/liblights/Android.mk
+++ b/liblights/Android.mk
@@ -1,4 +1,4 @@
-# Copyright (C) 2015 The CyanogenMod Project
+# Copyright (C) 2015-2016 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -12,16 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-LOCAL_PATH:= $(call my-dir)
-
ifneq ($(TARGET_PROVIDES_LIBLIGHT),true)
+LOCAL_PATH := $(call my-dir)
+
include $(CLEAR_VARS)
+LOCAL_SRC_FILES := lights.c
+
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+
+LOCAL_SHARED_LIBRARIES := liblog
+
LOCAL_MODULE := lights.$(TARGET_BOOTLOADER_BOARD_NAME)
LOCAL_MODULE_RELATIVE_PATH := hw
-LOCAL_SHARED_LIBRARIES := liblog
-LOCAL_SRC_FILES := lights.c
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)