From bd6b076f8062432ff955614fda7d2c9222025b36 Mon Sep 17 00:00:00 2001 From: Ulya Trafimovich Date: Fri, 12 Mar 2021 12:12:12 +0000 Subject: Allow modules that don't run verify_uses_libraries to have nonempty CLC. There are modules that would have passed verify_uses_library check, but don't run it for some reason (the check gets enabled either with an explicit setting, or if the module has nonempty lists in the build properties). Previously all such modules were assumed to have empty CLC, which is not always true. In particular, compatibility libraries are ignored, which affected e.g. Calendar and messaging apps. This CL gives such apps a chance to have correct CLC. The goal for the future is to enforce verify_library_check by default. Bug: 132357300 Test: lunch aosp_cf_x86_64_phone-userdebug && m Change-Id: Iea3be0fc9d7775c52950848b5a3fd3b7fcd36c53 --- scripts/construct_context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/construct_context.py') diff --git a/scripts/construct_context.py b/scripts/construct_context.py index 6f9edc429..f0658baa2 100755 --- a/scripts/construct_context.py +++ b/scripts/construct_context.py @@ -66,9 +66,9 @@ def main(): if not args.sdk: raise SystemExit('target sdk version is not set') if not args.host_contexts: - raise SystemExit('host context is not set') + args.host_contexts = [] if not args.target_contexts: - raise SystemExit('target context is not set') + args.target_contexts = [] print(construct_contexts(args)) -- cgit v1.2.3-59-g8ed1b