OSDN Git Service

Add SOONG_ALLOW_MISSING_DEPENDENCIES
authorDan Willemsen <dwillemsen@google.com>
Wed, 16 Mar 2016 18:12:41 +0000 (11:12 -0700)
committerDan Willemsen <dwillemsen@google.com>
Wed, 16 Mar 2016 19:41:20 +0000 (12:41 -0700)
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

core/soong.mk

index e070d6b..13f85d3 100644 (file)
@@ -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)",'; \