wfd: Add QMAA Controlled compilation logic

Disable compilation when target has QMAA enabled

Change-Id: Ib6a57e00536e31c44882b93ee32b424ba237a1af
diff --git a/Android.mk b/Android.mk
index 5d03591..7cd7d6b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,4 +1,12 @@
 LOCAL_PATH := $(call my-dir)
+
+QMAA_DISABLES_WFD := false
+ifeq ($(TARGET_USES_QMAA),true)
+ifneq ($(TARGET_USES_QMAA_OVERRIDE_WFD),true)
+QMAA_DISABLES_WFD := true
+endif #TARGET_USES_QMAA_OVERRIDE_WFD
+endif #TARGET_USES_QMAA
+
 WFD_DISABLE_PLATFORM_LIST := neo anorak
 
 #Disable WFD for selected 32-bit targets
@@ -10,6 +18,8 @@
 
 ifneq ($(call is-board-platform-in-list,$(WFD_DISABLE_PLATFORM_LIST)),true)
 ifneq ($(TARGET_HAS_LOW_RAM), true)
+ifneq ($(QMAA_DISABLES_WFD),true)
 include $(call all-makefiles-under, $(LOCAL_PATH))
-endif
-endif
+endif #QMAA_DISABLES_WFD
+endif #TARGET_HAS_LOW_RAM
+endif #WFD_DISABLE_PLATFORM_LIST