platform_build_soong/apex
Paul Duffin 44b481b81b Fix check-boot-jars when a boot jar is provided by prebuilt
Previously, when a boot jar was provided by a java_sdk_library_import
module the check-boot-jars check failed because the file it depended on
was not available. In an incremental build the build failed due to the
file in the out directory not having a rule to generate it.

That was because the module was named prebuilt_<module>.<apex> instead
of <module>.<apex>. This was fixed by simply removing prebuilt_ prefix
from the name if it was present.

After fixing that the check-boot-jars still did not work properly
because it was expecting a jar file containing .class files but instead
was given a jar file containing .dex files which meant the check did
not work properly.

This was fixed by defining a new ApexDependency interface for use by
the apex/apex.go code to use instead of java.Dependency for generating
the androidmk entries. The *SdkLibraryImport type then implemented
those, by delegating to the implementation library.

Bug: 158304459
Bug: 159112414
Test: m check-boot-jars
      m checkbuild
	  manual inspection of the .jar file used by check-boot-jars to
	  ensure it contained .class files and not .dex files.
Change-Id: I545c5c9072dd472337d2f9b4dfdf08f53c981662
2020-06-17 16:59:43 +01:00
..
Android.bp Soong package structure refactoring 2020-06-01 13:44:48 -07:00
OWNERS Expand Jiyong's apex OWNERship 2019-01-31 18:57:00 +00:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09:00
androidmk.go Fix check-boot-jars when a boot jar is provided by prebuilt 2020-06-17 16:59:43 +01:00
apex.go Fix check-boot-jars when a boot jar is provided by prebuilt 2020-06-17 16:59:43 +01:00
apex_singleton.go Generate combined deps-info for all updatable modules. 2020-05-15 19:10:19 +01:00
apex_test.go Let APEX build against preferred java_sdk_library_import 2020-06-15 16:57:09 +01:00
builder.go Use inclusive language in Android.bp files 2020-06-16 23:36:51 +00:00
key.go apex_sets is added to apexkeys.txt 2020-06-13 01:24:51 +09:00
prebuilt.go apex_sets is added to apexkeys.txt 2020-06-13 01:24:51 +09:00
vndk.go Fix dex2oat symlink now that we generate dex2oat32/dex2oat64. 2020-05-01 11:04:59 +01:00
vndk_test.go Add gcov coverage support to Rust modules. 2020-05-05 10:30:15 -04:00