platform_build_soong/dexpreopt
Martin Stjernholm cae43e1c16 Don't fail if the target module is disabled in dex2oat tool
dependencies.

dexpreopt.RegisterToolDeps runs late after prebuilt dependencies have
been resolved, and there's special code in dex2oatPathFromDep to
resolve the prebuilt from the source module. However, if the source
module is disabled then the dependencies check in validateAndroidModule
will complain, so we need to disable that check in this particular
situation.

Also add a comment to explain why dexpreopt.RegisterToolDeps needs to
run so late.

Cherry-picked from https://r.android.com/1711292.

Test: m nothing
Bug: 145934348
Bug: 172480615
Change-Id: Ibc673303d0336768fa23261a2068e91a08f46a30
Merged-In: Ibc673303d0336768fa23261a2068e91a08f46a30
2021-05-20 17:36:02 +01:00
..
dexpreopt_gen Add usesTargetFiles option in dexpreopt_gen 2021-05-18 12:09:28 +09:00
Android.bp Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
OWNERS Add an owners file for dexpreopt files. 2018-12-18 20:28:06 +00:00
class_loader_context.go Fix toJsonClassLoaderContextRec size bug 2021-04-22 11:58:43 +00:00
class_loader_context_test.go Fix toJsonClassLoaderContextRec size bug 2021-04-22 11:58:43 +00:00
config.go Don't fail if the target module is disabled in dex2oat tool 2021-05-20 17:36:02 +01:00
dexpreopt.go Add usesTargetFiles option in dexpreopt_gen 2021-05-18 12:09:28 +09:00
dexpreopt_test.go Rename fields in dexpreopt config 2021-05-07 21:40:23 +09:00
testing.go Merge "Allow using updatable boot jars in dexpreopt (but don't use them yet)." 2021-03-25 10:13:45 +00:00