blob: 0073348d95024c619f0a7e6be8785a10e9e68936 [file] [log] [blame]
<html devsite>
<head>
<meta name="project_path" value="/_project.yaml">
<meta name="book_path" value="/versions/8.2.0/_book.yaml">
</head>
<body>
<h1 class="page-title">Configuration Fragments</h1>
{% dynamic setvar source_file "NONE" %}
{% dynamic setvar version "8.2.0" %}
{% dynamic setvar original_path "/rules/lib/fragments" %}
{% include "_buttons.html" %}
Configuration fragments give rules access to language-specific parts of <a href="builtins/configuration.html">configuration</a>. <p>Rule implementations can get them using <code><a href="builtins/ctx.html#fragments">ctx.fragments</a>.<i>[fragment name]</i></code>
<ul>
<li><a href="/versions/8.2.0/rules/lib/fragments/apple">apple</a></li>
<li><a href="/versions/8.2.0/rules/lib/fragments/bazel_android">bazel_android</a></li>
<li><a href="/versions/8.2.0/rules/lib/fragments/bazel_py">bazel_py</a></li>
<li><a href="/versions/8.2.0/rules/lib/fragments/coverage">coverage</a></li>
<li><a href="/versions/8.2.0/rules/lib/fragments/cpp">cpp</a></li>
<li><a href="/versions/8.2.0/rules/lib/fragments/j2objc">j2objc</a></li>
<li><a href="/versions/8.2.0/rules/lib/fragments/java">java</a></li>
<li><a href="/versions/8.2.0/rules/lib/fragments/objc">objc</a></li>
<li><a href="/versions/8.2.0/rules/lib/fragments/platform">platform</a></li>
<li><a href="/versions/8.2.0/rules/lib/fragments/proto">proto</a></li>
<li><a href="/versions/8.2.0/rules/lib/fragments/py">py</a></li>
</ul>
</body>
</html>