Force MODULE_BUILD_FROM_SOURCE if com.google.android.xxx modules aren't am: 523de300dd

Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/15347314

Change-Id: Ic4d361ddf72a787f355429764f2ae63bc430a58c
This commit is contained in:
Martin Stjernholm
2021-07-28 14:10:08 +00:00
committed by Automerger Merge Worker

View File

@@ -29,6 +29,14 @@ $(call add_soong_config_namespace,ANDROID)
$(call add_soong_config_var,ANDROID,TARGET_ENABLE_MEDIADRM_64)
$(call add_soong_config_var,ANDROID,BOARD_USES_ODMIMAGE)
ifeq (,$(filter com.google.android.conscrypt,$(PRODUCT_PACKAGES)))
# Prebuilt module SDKs require prebuilt modules to work, and currently
# prebuilt modules are only provided for com.google.android.xxx. If we can't
# find one of them in PRODUCT_PACKAGES then assume com.android.xxx are in use,
# and disable prebuilt SDKs. In particular this applies to AOSP builds.
MODULE_BUILD_FROM_SOURCE := true
endif
# TODO(b/172480615): Remove when platform uses ART Module prebuilts by default.
ifeq (,$(filter art_module,$(SOONG_CONFIG_NAMESPACES)))
$(call add_soong_config_namespace,art_module)