compat: Guard aidl shims
AOSP supports building the whole bunch of *-ndk_platform.so
libraries if NEED_AIDL_NDK_PLATFORM_BACKEND is set to true,
so guard these shims in case we want to allow building
a single or just a small set of libraries.
Change-Id: I0c1bd777fa4c8ee766cc3c134aed351164ddbc0a
diff --git a/Android.mk b/Android.mk
index edd61e4..0035270 100644
--- a/Android.mk
+++ b/Android.mk
@@ -4,6 +4,8 @@
# SPDX-License-Identifier: Apache-2.0
#
+ifeq ($(NEED_AIDL_NDK_PLATFORM_BACKEND),)
+
include $(CLEAR_VARS)
LOCAL_SHARED_LIBRARIES := android.frameworks.stats-V1-ndk
LOCAL_MODULE := android.frameworks.stats-V1-ndk_platform
@@ -479,3 +481,5 @@
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_VENDOR_MODULE := true
include $(BUILD_SHARED_LIBRARY)
+
+endif