wfd-commonsys: Guard compilation of system libs

-Compile system deliverables only for QSSI & related targets.
 Guard system modules from compilation during vendor compilation
 to meet groups requirement.

Change-Id: Ic8f600cbd3b04f8067630608007d3c6cb6528349
diff --git a/libaac/Android.mk b/libaac/Android.mk
index 4280ec3..751fcf3 100644
--- a/libaac/Android.mk
+++ b/libaac/Android.mk
@@ -1,4 +1,12 @@
 LOCAL_PATH := $(call my-dir)
+
+
+#--------------------------------------------------------------------------------
+# BUILD FOR SYSTEM PARTITION
+#Guard compilation of system modules from vendor-target as these modules would be
+#scanned during vendor compilation. With introduction of groups feature, this would
+#raise compilation issues as certain commonsys deliverables would be missing
+ifeq ($(call is-product-in-list, qssi qssi_32),true)
 include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES := aacEncode.cpp
@@ -21,6 +29,7 @@
 LOCAL_SYSTEM_EXT_MODULE := true
 LOCAL_SANITIZE := integer_overflow
 include $(BUILD_SHARED_LIBRARY)
+endif
 
 include $(CLEAR_VARS)