diff options
| author | 2023-09-28 19:30:51 +0000 | |
|---|---|---|
| committer | 2023-10-02 17:35:55 +0000 | |
| commit | a7da3f0e0b8199fdf8019f29a5d472adb7574887 (patch) | |
| tree | c443edcc4171434b98ccd95ef00c9192997bd4f8 /java/java_test.go | |
| parent | dc7d7f755707f063de7bc789bface069bbc1fa56 (diff) | |
Create bp2build converter for versioned_ndk_headers
This module type is used by a single soong module - `common_libc` in
bionic/libc
Implementation details
- Convert this module type to ndk_headers rule. Bazel's ndk_headers rule
will have a boolean attribute `run_versioner` to determine if
verioner should be run on the headers
- Add this module type to the alwaysConvert bp2build list
- Add the converted target for `common_libc` to the deps of
`ndk_sysroot`. This ensures that unbundled apps link against the
versioned NDK headers of libc
Test: go test ./bp2build
Test: b build //bionic/libc:common_libc --config=android
Test: for f in $(find bazel-bin/bionic/libc/common_libc.versioned -type f); do cmp $f ${f/bazel-bin\/bionic\/libc\/common_libc.versioned/out\/soong\/ndk\/sysroot\/usr\/include}; done # no diff
Bug: 301169067
Change-Id: I55be202f0589db9bdc743c8be41c9c5afd74c352
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions