• Wez's avatar
    [Fuchsia] Generate more complete GN target names for FIDL packages. · 0ed2b6ca
    Wez authored
    FIDL package names consist of multiple dot-delimited segments, to allow
    scoping of packages to avoid clashes. Our GN generator script was using
    only the final segment of each package's name, resulting in clashes,
    e.g. between fuchsia.auth and fuchsia.modular.auth, if both were
    present in the SDK.
    
    We continue to generate targets under the //third_party/fuchsia-sdk/sdk
    namespace, but use the full name rather than only the final segment,
    e.g. custom.modular.auth would become custom_modular_auth.
    
    We also special-case the top-level "fuchsia" namespace to be ignored,
    e.g. fuchsia.modular_auth becomes just modular_auth.
    
    Bug: 910670
    Change-Id: I675d894c72b5d43b6d8b20fb026075573a5a3380
    Reviewed-on: https://chromium-review.googlesource.com/c/1372892
    Commit-Queue: Wez <wez@chromium.org>
    Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#615763}
    0ed2b6ca
gen_build_defs.py 6.91 KB