<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" id="modules.apple">apple</h1>

{% dynamic setvar source_file "src/main/java/com/google/devtools/build/lib/starlarkbuildapi/apple/AppleConfigurationApi.java" %}
{% dynamic setvar version "8.2.0" %}
{% dynamic setvar original_path "/rules/lib/fragments/apple" %}
{% include "_buttons.html" %}
<!-- {% raw %} -->

A configuration fragment for Apple platforms.

<h2>Members</h2>
<ul>
    <li>
    <a href="#multi_arch_platform">multi_arch_platform</a>
  </li>
      <li>
    <a href="#single_arch_cpu">single_arch_cpu</a>
  </li>
      <li>
    <a href="#single_arch_platform">single_arch_platform</a>
  </li>
  </ul>

      <h2 id="multi_arch_platform">multi_arch_platform</h2>
        <p><pre class="rule-signature"><a class="anchor" href="../builtins/apple_platform.html">apple_platform</a> apple.multi_arch_platform(platform_type)</pre></p>

    The platform of the current configuration for the given platform type. This should only be invoked in a context where multiple architectures may be supported; consider <a href='#single_arch_platform'>single_arch_platform</a> for other cases.

          <!-- hide-from-toc is a class used by DevSite for the public Bazel site
      (https://developers.google.com/devsite/reference/styles/headings#hide_headings_from_the_toc) -->
      <h3 class="hide-from-toc">Parameters</h3>
      <table class="table table-bordered table-condensed table-params">
        <colgroup>
          <col class="col-param">
          <col class="param-description">
        </colgroup>
        <thead>
          <tr>
            <th>Parameter</th>
            <th>Description</th>
          </tr>
        </thead>
        <tbody>
                  <tr>
            <td id="multi_arch_platform.platform_type">
              <code>platform_type</code>
            </td>
            <td>
                          <a class="anchor" href="../core/string.html">string</a>;
                                     required<br/>
                          The apple platform type.
            </td>
          </tr>
                </tbody>
      </table>

        <h2 id="single_arch_cpu">single_arch_cpu</h2>
        <p><pre class="rule-signature"><a class="anchor" href="../core/string.html">string</a> apple.single_arch_cpu</pre></p>

    The single "effective" architecture for this configuration (e.g., <code>i386</code> or <code>arm64</code>) in the context of rule logic that is only concerned with a single architecture (such as <code>objc_library</code>, which registers single-architecture compile actions).


        <h2 id="single_arch_platform">single_arch_platform</h2>
        <p><pre class="rule-signature"><a class="anchor" href="../builtins/apple_platform.html">apple_platform</a> apple.single_arch_platform</pre></p>

    The platform of the current configuration. This should only be invoked in a context where only a single architecture may be supported; consider <a href='#multi_arch_platform'>multi_arch_platform</a> for other cases.



</body>
</html>

<!-- {% endraw %} -->
