hwc: add qdcm service to be loaded in HWC and perform service
1. Add one binder command to display.qservice to serve the
binder requests received from SDK.
2. Each subcommand will be corresponding to one command
handler. Command handler will pass the requests to
qdcm library.
3. Dynamically load qdcm library, where all apis are
implemented.
4. apply default mode function will be invoked once
bootanimation event is detected
Change-Id: I28fdf5f2561fcaffbfd3b7a1e9b136a4c372300e
diff --git a/libhwcomposer/Android.mk b/libhwcomposer/Android.mk
index c344045..348fbd3 100644
--- a/libhwcomposer/Android.mk
+++ b/libhwcomposer/Android.mk
@@ -8,6 +8,11 @@
LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) \
$(TOP)/external/skia/include/core \
$(TOP)/external/skia/include/images
+
+LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/qdcm/inc \
+ $(TARGET_OUT_HEADERS)/common/inc \
+ $(TARGET_OUT_HEADERS)/pp/inc
+
LOCAL_SHARED_LIBRARIES := $(common_libs) libEGL liboverlay \
libhdmi libqdutils libhardware_legacy \
libdl libmemalloc libqservice libsync \
@@ -38,4 +43,14 @@
hwc_dump_layers.cpp \
hwc_ad.cpp \
hwc_virtual.cpp
+
+TARGET_MIGRATE_QDCM_LIST := msm8909
+TARGET_MIGRATE_QDCM := $(call is-board-platform-in-list,$(TARGET_MIGRATE_QDCM_LIST))
+
+ifeq ($(TARGET_MIGRATE_QDCM), true)
+LOCAL_SRC_FILES += hwc_qdcm.cpp
+else
+LOCAL_SRC_FILES += hwc_qdcm_legacy.cpp
+endif
+
include $(BUILD_SHARED_LIBRARY)