This document outlines the criteria and standards for validating changes that migrate FIDL libraries from GN to Bazel.
BUILD.bazel files must use the current year, or the previous year if the file was originally uploaded then.BUILD.bazel file must exactly match the legacy target name in BUILD.gn.Full parity must be observed between the GN and Bazel configurations:
BUILD.gn, except for api = "{api_name}" (where {api_name} equals to the target name plus .api suffix), must be mapped to attributes in BUILD.bazel.BUILD.gn and BUILD.bazel must have the same values. For added visibility, they must be equivalent but not identical.visibility, should not be added to BUILD.bazel that are not present in BUILD.gn.TODO trackers must be cleanly carried over to the corresponding line in BUILD.bazel.BUILD.bazel, the standard fidl_library rule should be loaded from //build/bazel/rules/fidl:fidl_library.bzl:load("//build/bazel/rules/fidl:fidl_library.bzl", "fidl_library")
//sdk/fidl/bazel2gn_verification_targets.gni): Newly migrated library targets must be added to the fidl_bazel2gn_verification_targets list inside //sdk/fidl/bazel2gn_verification_targets.gni.//sdk/fidl/category_lists.bzl): The corresponding IDK atom target ({target_name}_idk) must be added to the correct target list in //sdk/fidl/category_lists.bzl, based strictly on its assigned category and stable properties.BUILD.gn and BUILD.bazel files must pass buildifier lint checks (fx format-code).[bazel_migration].Bug: <issue-id> in the footer.