kythe.io@v0.0.68-0.20240422202219-7225dbc01741/tools/build_rules/external_tools/external_tools_toolchain.bzl (about)

     1  """Build rules used to define toolchains for external tools."""
     2  
     3  def _external_tools_toolchain_impl(ctx):
     4      return [
     5          platform_common.ToolchainInfo(
     6              asciidoc = ctx.attr.asciidoc,
     7              path = ctx.attr.path,
     8          ),
     9      ]
    10  
    11  external_tools_toolchain = rule(
    12      implementation = _external_tools_toolchain_impl,
    13      attrs = {
    14          "asciidoc": attr.string(),
    15          "path": attr.string(),
    16      },
    17  )