[roll] Roll fuchsia [build] Import Bazel-built libasync-default.so into GN

libasync-default.so (//sdk/lib/async-default) is built by both GN and
Bazel, and both copies end up in the platform AIBs: in a fuchsia.x64
build, the GN copy ships in 138 packages, while 15 Bazel-built packages
(e.g. activity, audio_listener) ship their own Bazel copy. As was done
for libfdio and libcrypto, make GN use the Bazel-built library in the
toolchain that matches Bazel's build configuration, so that there is a
single copy.

The Bazel IDK shared library macros already define the
`async-default_gn_outputs` target used to import the library. Add a
`@bazel2gn:raw_attribute:bazel_target` annotation in BUILD.bazel, as is
done for libfdio, and regenerate BUILD.gn with bazel2gn.

In other toolchains (e.g. non-instrumented or per-target variant
toolchains) and in sub-builds, GN still builds the library from source.
Like the GN-built library, the Bazel-built one only depends on
libzircon.so and libc.so at runtime, so no other runtime libraries need
to be packaged with it.

The new :async-default.build_id target uses build_id_entry(), so add it
to the //build:non_hermetic_deps allowlist.

Original-Original-Bug: 581870763
Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1987000
Risk: Fuchsia CL Risk (Advisory) <groupagent-fuchsia-risk@google.com>
Agent-Code-Review: Fuchsia CL Risk (Advisory) <groupagent-fuchsia-risk@google.com>
Original-Original-Revision: bb61141906657416cf45c3704b30516f06ca3101
GitOrigin-RevId: fb7ad397a84b2a9f9aee86c3b841e2a24dacd4b9
Change-Id: Ia5da0377892062c6cd3ae97aa5596a60a98f0c25
Reviewed-on: https://fuchsia-review.googlesource.com/c/integration/+/1993048
Cr-Commit-Position: refs/heads/main@{#215185}
1 file changed
tree: 71e7b4d86129b852dfb0d1c5748b32f53fd7106f
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.