[roll] Roll fuchsia [bazel][idk] Support Fuchsia-specific source files

Add support for Fuchsia-specific and non-Fuchsia headers and sources to
`idk_cc_source_library()`. Specifically, add the following attributes:
  * fuchsia_hdrs
  * fuchsia_hdrs_for_internal_use
  * non_fuchsia_hdrs_for_internal_use
  * fuchsia_srcs
  * non_fuchsia_srcs

`non_fuchsia_hdrs` is not added because there is not currently a use
case for it.

These attributes will be used when migrating //sdk/lib/fidl/cpp/wire.

`select()` cannot be used for the header and source attributes because
they are non-configurable due to the macro iterating over them to
generate metadata used to populate `additional_prebuild_info`.

Add `platform_dependent_source_library` to test the new attributes.

NO_IFTTT=Fuchsia- and non-Fuchsia-specific files are already handled in GN via conditional statements.

Original-Bug: 417305295
Test: fx bazel build --config=fuchsia --copt="-ffuchsia-api-level=4293918720" //build/bazel/bazel_idk/tests:build_only_tests
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1482822
Original-Revision: bd1e9d02a720d789f7583249568b1ddce9aff8b3
GitOrigin-RevId: a3ce71a65f25fd5137480fd294a0fa7836f831c1
Change-Id: I2d1c0c051ad1362e9f57a58ff22fd0ca221794a4
1 file changed
tree: f8df758a514ca4c530aa6dea1e5ebab8ce627c4c
  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.