Don't build lights module if vendor supplies it
Change-Id: I63589281961e1120e7536798df6d78b8a7af4304
diff --git a/Android.mk b/Android.mk
index e609933..0b7047a 100644
--- a/Android.mk
+++ b/Android.mk
@@ -5,12 +5,16 @@
display-hals := include $(sdm-libs)/utils $(sdm-libs)/core libdebug
ifneq ($(TARGET_IS_HEADLESS), true)
- display-hals += libcopybit liblight libmemtrack hdmi_cec \
+ display-hals += libcopybit libmemtrack hdmi_cec \
$(sdm-libs)/hwc2 gpu_tonemapper libdrmutils
endif
display-hals += gralloc
+ifneq ($(TARGET_PROVIDES_LIBLIGHT),true)
+ display-hals += liblight
+endif
+
ifeq ($(call is-vendor-board-platform,QCOM),true)
include $(call all-named-subdir-makefiles,$(display-hals))
else