folly/shim/folly/io/async/test/certs/defs.bzl

# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("@fbcode_macros//build_defs:native_rules.bzl", "alias")

def alias_pem(pems: list[str]):
    for pem in pems:
        alias(
            name = pem,
            actual = "//folly/io/async/test/certs:{pem}".format(pem = pem),
        )

def alias_pem_for_xplat(pems: list[str]):
    # in xplat these pem files are exported in //xplat/folly/io/async/test
    for pem in pems:
        alias(
            name = pem,
            actual = "//xplat/folly/io/async/test:certs/{pem}".format(pem = pem),
        )