summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2020-08-12 02:17:48 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2020-08-12 02:17:48 -0700
commitb5caa310cdac8165a1d4147c2135da6829d19e73 (patch)
tree95275f93395e5ebac02641e8a4731d40c94f0555
parent42a00334da9df6a365a3f51bb9be57c5119fb633 (diff)
parent955992157e9ae338b427cd37ef8995288ebe1db9 (diff)
Merge "wfd-commonsys: Guard compilation of system libs"
-rw-r--r--libaac/Android.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/libaac/Android.mk b/libaac/Android.mk
index 79184e9..68a6a5d 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
@@ -22,6 +30,7 @@ LOCAL_CFLAGS += -O0
LOCAL_SYSTEM_EXT_MODULE := true
LOCAL_SANITIZE := integer_overflow
include $(BUILD_SHARED_LIBRARY)
+endif
include $(CLEAR_VARS)