From: Dan Willemsen Date: Wed, 16 Mar 2016 18:12:41 +0000 (-0700) Subject: Add SOONG_ALLOW_MISSING_DEPENDENCIES X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=721f9bd316b376d66ccd8fa821c5705648818474;p=android-x86%2Fbuild.git Add SOONG_ALLOW_MISSING_DEPENDENCIES Split out Soong's missing dependency option from Unbundled_build. There are builds other than unbundled builds that don't have a full platform tree (AOSP llvm branch is one example). When this is set to true, Soong will defer the error for missing dependencies until a module is attempted to be built, instead of when it is reading and generating the build rules. So for platform builds it will still fail early if something is missing. Change-Id: I56cb881ff55f5928b77cddc0d67086c3d37e43d7 --- diff --git a/core/soong.mk b/core/soong.mk index e070d6bdf..13f85d367 100644 --- a/core/soong.mk +++ b/core/soong.mk @@ -36,6 +36,7 @@ $(SOONG_VARIABLES): FORCE echo ' "Unbundled_build": $(if $(TARGET_BUILD_APPS),true,false),'; \ echo ' "Brillo": $(if $(BRILLO),true,false),'; \ echo ' "Malloc_not_svelte": $(if $(filter true,$(MALLOC_SVELTE)),false,true),'; \ + echo ' "Allow_missing_dependencies": $(if $(TARGET_BUILD_APPS)$(filter true,$(SOONG_ALLOW_MISSING_DEPENDENCIES)),true,false),'; \ echo ''; \ echo ' "DeviceName": "$(TARGET_DEVICE)",'; \ echo ' "DeviceArch": "$(TARGET_ARCH)",'; \