platform_build_soong/dexpreopt
Ulya Trafimovich a54d33be77 Fail the build if dexpreopt cannot find path to a <uses-library>.
This doesn't apply to compatibility libraries (those added to
conditional class loader context base on the targetSdkVersion in the
manifest), because Soong doesn't know if they are needed or not (the
build rule that parses the manifest runs at Ninja stage).

In the future we may need to relax this and instead of failing the build
to disable dexpreopt in such cases. But currently there are no use cases
that fail.

Also, this patch replaces hardcoded install path with a constant.

Test: lunch aosp_cf_x86_phone-userdebug && m
Bug: 132357300
Change-Id: Ic894bc17e8ffd8ff173111ea09366252001ef3e9
2020-10-06 14:04:49 +01:00
..
dexpreopt_gen Fix bpfmt issues and add bpfmt to preupload checks 2020-06-29 09:14:08 +02:00
Android.bp Reland: Get the dex2oat host tool path from module dependency on the 2020-02-13 17:46:48 +00:00
OWNERS Add an owners file for dexpreopt files. 2018-12-18 20:28:06 +00:00
config.go Treat "org.apache.http.legacy" as optional <uses-library> by default. 2020-09-11 13:52:23 +01:00
dexpreopt.go Fail the build if dexpreopt cannot find path to a <uses-library>. 2020-10-06 14:04:49 +01:00
dexpreopt_test.go Revert "Re-land "Move odexes of non-system apps into system_other"" 2020-09-15 09:29:11 +00:00
testing.go Reland: Get the dex2oat host tool path from module dependency on the 2020-02-13 17:46:48 +00:00