diff options
| author | 2020-12-10 14:02:21 +0000 | |
|---|---|---|
| committer | 2020-12-14 15:03:40 +0000 | |
| commit | 37eb6c94484fe6aa30c0aaa514d9068cb67e9223 (patch) | |
| tree | cc6b51097fc3ce06f2f012d136dbdb6a1d6e6ac7 /java/java.go | |
| parent | 57fab96e0123f8de2faea7088a7c624e66d14099 (diff) | |
Add MissingUsesLibraries to Soong vars for scripts that use --skip-make.
In platform builds missing libraries are defined with make variable
INTERNAL_PLATFORM_MISSING_USES_LIBRARIES via soong_config.mk. When Soong
is invoked with "--skip-make" parameter,
INTERNAL_PLATFORM_MISSING_USES_LIBRARIES is not picked up. As a result
the build fails because of missing dependencies.
This CL uses get_build_var to get the value of
INTERNAL_PLATFORM_MISSING_USES_LIBRARIES, then converts it to JSON list.
In the future would be better to migrate both scripts to use --skip-kati
introduced in https://r.android.com/1512613.
Bug: 175286760
Bug: 132357300
Test: forrest build for target "ndk" branch "aosp-master".
Test: Patch build-aml-prebuilts.sh and build-ndk-prebuilts.sh to dump
  their soong.variables config, observe that MissingUsesLibraries is
  coherent with INTERNAL_PLATFORM_MISSING_USES_LIBRARIES. Start running
  each script and observe that they don't fail early due to missing
  dependencies.
Change-Id: I5dbc1d3ea7a64de1e8be6332003acc940c2e6a76
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions