platform_build_soong/dexpreopt
Ulya Trafimovich 29e95d94bf Move copy rule for system server jars from dexpreopt_gen to makefiles.
This is necessary in order to expose the copy rule to Ninja. Otherwise
Ninja has a build rule that depends on the copied jar (namely, dexpreopt
commands for all subsequent system server jars that have the current one
in class loader context), but no rule that creates it, so Ninja fails
with a "no rule to make ..." error.

The change only affects system server ed in Android.mk

Previously the problem existed, but was hidden by the fact that the only
system server jar defined in Android.mk was the last one on the list, so
no other jar depended on it. Now that updatable apex jars are also
dexpreopted (https://r.android.com/1828115) the problem was uncovered.

Bug: 200297762
Test: lunch bertha_x86_64-userdebug && m
Change-Id: Idbf2eacdf7ae89847aa9d755ef688eda3720ce89
2021-09-21 14:08:32 +01:00
..
dexpreopt_gen Make OutDir() and SoongOutDir() be consistent. 2021-09-02 13:35:49 +02:00
Android.bp Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
class_loader_context.go Don't add uses_libs/optional_uses_libs to the manifest_fixer. 2021-08-20 15:54:42 +01:00
class_loader_context_test.go Don't add uses_libs/optional_uses_libs to the manifest_fixer. 2021-08-20 15:54:42 +01:00
config.go Rename BuildDir and NinjaBuildDir. 2021-08-27 10:08:49 +02:00
dexpreopt.go Move copy rule for system server jars from dexpreopt_gen to makefiles. 2021-09-21 14:08:32 +01:00
dexpreopt_test.go Revert^2 "Preopt APEX system server jars." 2021-09-16 06:25:26 +00:00
OWNERS Update dex_preopt related OWNERS 2021-06-17 17:05:39 +01:00
testing.go Fix tests to use correct fixtures for configuring (Apex)BootJars. 2021-08-10 15:35:52 +01:00