Parse mode tags in version scripts
header-abi-linker filters symbols tagged with llndk, apex, or systemapi
in version scripts. The filtering logic is copied from
build/soong/cc/symbolfile.
Usage:
- By default, header-abi-linker includes every symbol in the version
script.
- `-api 34 -include-symbol-tag llndk=202404` includes LLNDK 202404 and
NDK 34.
- `-api 35 -include-symbol-tag none` includes NDK 35, but excludes
LLNDK and APEX.
Test: LD_LIBRARY_PATH=out/soong/dist/lib64 \
out/soong/host/linux-x86/nativetest64/header-checker-unittests/header-checker-unittests
Bug: 314010764
Change-Id: I362995068af0ea6dff317078b8624be46e3b404a
4 files changed