diff options
| author | 2023-06-14 21:30:38 +0000 | |
|---|---|---|
| committer | 2023-07-11 22:03:26 +0000 | |
| commit | ea2abba3a90d9459761bb7021995c2c54e34c0b0 (patch) | |
| tree | b3e004664f287bad9f8bac023cb396920fe03f97 /java/java_test.go | |
| parent | ff96fe1589c4a25f28f49291a1543d26f809b52a (diff) | |
Partial bp2build conversion of bootstratp_go_package
This module type does not implement android.Module, and therefore we
cannot write a conventional bp2build converter for this module type.
Instead this has been special-cased inside bp2build/build_conversion.go.
Because of the above, we also do not have access to useful functions
available in the ctx object of ConvertWithBp2build. This includes
1. Finding the package (directory) of a dep. This requires getting a
handle of the underlying module from its name (string). To solve, we
do a pre-visit to collect this information. This did not increase the
wall time. On my machine, `m bp2build --skip-soong-tests` takes ~14s
before and after this CL
2. Converting srcs to labels. This requires glob and package boundary
resolution. This CL introduces a partial implementation for this
function. (glob patterns are not used in go tools)
For (1), I considered creating a `ModuleFromName` on
`blueprint.Context` instead of a pre-run, but this increased the time to ~27s.
Test: unit tests
Test: TH
Bug: 284483729
Change-Id: Ifeb029103d14947352556dba295591dd7038b090
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions