<buttonid="sidebar-toggle"class="icon-button"type="button"title="Toggle Table of Contents"aria-label="Toggle Table of Contents"aria-controls="sidebar">
<inputtype="search"id="searchbar"name="searchbar"placeholder="Search this book ..."aria-controls="searchresults-outer"aria-describedby="searchresults-header">
<p>Rules ForeignCc is designed to help users build projects that are not built by Bazel and also
not fully under their control (ie: large and mature open source software). These rules provide
a mechanism to build these external projects within Bazel's sandbox environment using a variety
of C/C++ build systems to be later consumed by other rules as though they were normal <ahref="https://docs.bazel.build/versions/master/be/c-cpp.html">cc</a>
<li>Build libraries/binaries with CMake from sources using cmake rule</li>
<li>Use cmake targets in <ahref="https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library">cc_library</a>, <ahref="https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary">cc_binary</a> targets as dependency</li>
<li>Bazel <ahref="https://docs.bazel.build/versions/master/be/c-cpp.html#cc_toolchain">cc_toolchain</a> parameters are used inside cmake build</li>
<li>See full list of cmake arguments below 'example'</li>
<li>Works on Ubuntu, Mac OS and Windows (<em>see special notes below in Windows section</em>) operating systems</li>
</ul>
<p><strong>Example:</strong>
(Please see full examples in ./examples)</p>
<p>The example for <strong>Windows</strong> is below, in the section 'Usage on Windows'.</p>
<ul>
<li>In <code>WORKSPACE.bazel</code>, we use a <code>http_archive</code> to download tarballs with the libraries we use.</li>
<li>In <code>BUILD.bazel</code>, we instantiate a <code>cmake</code> rule which behaves similarly to a <ahref="https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library">cc_library</a>, which can then be used in a C++ rule (<ahref="https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary">cc_binary</a> in this case).</li>
<tr><tdalign="left"><aid="cmake-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="cmake-additional_inputs"></a>additional_inputs</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-additional_tools"></a>additional_tools</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-alwayslink"></a>alwayslink</td><tdalign="left">Optional. if true, link all the object files from the static library, even if they are not used.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="cmake-build_args"></a>build_args</td><tdalign="left">Arguments for the CMake build command</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-build_data"></a>build_data</td><tdalign="left">Files needed by this rule only during build/compile time. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-cache_entries"></a>cache_entries</td><tdalign="left">CMake cache entries to initialize (they will be passed with <code>-Dkey=value</code>) Values, defined by the toolchain, will be joined with the values, passed here. (Toolchain values come first)</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="cmake-copts"></a>copts</td><tdalign="left">Optional. Add these options to the compile flags passed to the foreign build system. The flags only take affect for compiling this target, not its dependencies.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-data"></a>data</td><tdalign="left">Files needed by this rule at runtime. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-defines"></a>defines</td><tdalign="left">Optional compilation definitions to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-deps"></a>deps</td><tdalign="left">Optional dependencies to be copied into the directory structure. Typically those directly required for the external building of the library/binaries. (i.e. those that the external build system will be looking for and paths to which are provided by the calling rule)</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-env"></a>env</td><tdalign="left">Environment variables to set during the build. <code>$(execpath)</code> macros may be used to point at files which are listed as <code>data</code>, <code>deps</code>, or <code>build_data</code>, but unlike with other rules, these will be replaced with absolute paths to those files, because the build does not run in the exec root. This attribute is subject to make variable substitution. No other macros are supported.Variables containing <code>PATH</code> (e.g. <code>PATH</code>, <code>LD_LIBRARY_PATH</code>, <code>CPATH</code>) entries will be prepended to the existing variable.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="cmake-generate_args"></a>generate_args</td><tdalign="left">Arguments for CMake's generate command. Arguments should be passed as key/value pairs. eg: <code>["-G Ninja", "--debug-output", "-DFOO=bar"]</code>. Note that unless a generator (<code>-G</code>) argument is provided, the default generators are <ahref="https://cmake.org/cmake/help/latest/generator/Unix%20Makefiles.html">Unix Makefiles</a> for Linux and MacOS and <ahref="https://cmake.org/cmake/help/latest/generator/Ninja.html">Ninja</a> for Windows.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-generate_crosstool_file"></a>generate_crosstool_file</td><tdalign="left">When True, CMake crosstool file will be generated from the toolchain values, provided cache-entries and env_vars (some values will still be passed as <code>-Dkey=value</code> and environment variables). If <code>CMAKE_TOOLCHAIN_FILE</code> cache entry is passed, specified crosstool file will be used When using this option to cross-compile, it is required to specify <code>CMAKE_SYSTEM_NAME</code> in the cache_entries</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">True</td></tr>
<tr><tdalign="left"><aid="cmake-includes"></a>includes</td><tdalign="left">Optional list of include dirs to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-install"></a>install</td><tdalign="left">If True, the <code>cmake --install</code> comand will be performed after a build</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">True</td></tr>
<tr><tdalign="left"><aid="cmake-install_args"></a>install_args</td><tdalign="left">Arguments for the CMake install command</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-lib_name"></a>lib_name</td><tdalign="left">Library name. Defines the name of the install directory and the name of the static library, if no output files parameters are defined (any of static_libraries, shared_libraries, interface_libraries, binaries_names) Optional. If not defined, defaults to the target's name.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="cmake-lib_source"></a>lib_source</td><tdalign="left">Label with source code to build. Typically a filegroup for the source of remote repository. Mandatory.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">Label</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="cmake-linkopts"></a>linkopts</td><tdalign="left">Optional link options to be passed up to the dependencies of this library</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-out_bin_dir"></a>out_bin_dir</td><tdalign="left">Optional name of the output subdirectory with the binary files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="cmake-out_binaries"></a>out_binaries</td><tdalign="left">Optional names of the resulting binaries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-out_data_dirs"></a>out_data_dirs</td><tdalign="left">Optional names of additional directories created by the build that should be declared as bazel action outputs</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-out_dll_dir"></a>out_dll_dir</td><tdalign="left">Optional name of the output subdirectory with the dll files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="cmake-out_headers_only"></a>out_headers_only</td><tdalign="left">Flag variable to indicate that the library produces only headers</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="cmake-out_include_dir"></a>out_include_dir</td><tdalign="left">Optional name of the output subdirectory with the header files, defaults to 'include'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"include"</td></tr>
<tr><tdalign="left"><aid="cmake-out_interface_libs"></a>out_interface_libs</td><tdalign="left">Optional names of the resulting interface libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-out_lib_dir"></a>out_lib_dir</td><tdalign="left">Optional name of the output subdirectory with the library files, defaults to 'lib'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"lib"</td></tr>
<tr><tdalign="left"><aid="cmake-out_shared_libs"></a>out_shared_libs</td><tdalign="left">Optional names of the resulting shared libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-out_static_libs"></a>out_static_libs</td><tdalign="left">Optional names of the resulting static libraries. Note that if <code>out_headers_only</code>, <code>out_static_libs</code>, <code>out_shared_libs</code>, and <code>out_binaries</code> are not set, default <code>lib_name.a</code>/<code>lib_name.lib</code> static library is assumed</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-postfix_script"></a>postfix_script</td><tdalign="left">Optional part of the shell script to be added after the make commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="cmake-targets"></a>targets</td><tdalign="left">A list of targets with in the foreign build system to produce. An empty string (<code>""</code>) will result in a call to the underlying build system with no explicit target set</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-tool_prefix"></a>tool_prefix</td><tdalign="left">A prefix for build commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="cmake-tools_deps"></a>tools_deps</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-working_directory"></a>working_directory</td><tdalign="left">Working directory, with the main CMakeLists.txt (otherwise, the top directory of the lib_source label files is used.)</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="cmake_variant-toolchain"></a>toolchain</td><tdalign="left">The desired make variant toolchain to use, e.g. @rules_foreign_cc//toolchains:preinstalled_nmake_toolchain</td><tdalign="left">none</td></tr>
<p>Rule for building external libraries with configure-make pattern. Some 'configure' script is invoked with --prefix=install (by default), and other parameters for compilation and linking, taken from Bazel C/C++ toolchain and passed dependencies. After configuration, GNU Make is called.</p>
<tr><tdalign="left"><aid="configure_make-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="configure_make-additional_inputs"></a>additional_inputs</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-additional_tools"></a>additional_tools</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-alwayslink"></a>alwayslink</td><tdalign="left">Optional. if true, link all the object files from the static library, even if they are not used.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-args"></a>args</td><tdalign="left">A list of arguments to pass to the call to <code>make</code></td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-autoconf"></a>autoconf</td><tdalign="left">Set to True if 'autoconf' should be invoked before 'configure', currently requires <code>configure_in_place</code> to be True.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-autoconf_options"></a>autoconf_options</td><tdalign="left">Any options to be put in the 'autoconf.sh' command line.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-autogen"></a>autogen</td><tdalign="left">Set to True if 'autogen.sh' should be invoked before 'configure', currently requires <code>configure_in_place</code> to be True.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-autogen_command"></a>autogen_command</td><tdalign="left">The name of the autogen script file, default: autogen.sh. Many projects use autogen.sh however the Autotools FAQ recommends bootstrap so we provide this option to support that.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"autogen.sh"</td></tr>
<tr><tdalign="left"><aid="configure_make-autogen_options"></a>autogen_options</td><tdalign="left">Any options to be put in the 'autogen.sh' command line.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-autoreconf"></a>autoreconf</td><tdalign="left">Set to True if 'autoreconf' should be invoked before 'configure.', currently requires <code>configure_in_place</code> to be True.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-autoreconf_options"></a>autoreconf_options</td><tdalign="left">Any options to be put in the 'autoreconf.sh' command line.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-build_data"></a>build_data</td><tdalign="left">Files needed by this rule only during build/compile time. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-configure_command"></a>configure_command</td><tdalign="left">The name of the configuration script file, default: configure. The file must be in the root of the source directory.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"configure"</td></tr>
<tr><tdalign="left"><aid="configure_make-configure_in_place"></a>configure_in_place</td><tdalign="left">Set to True if 'configure' should be invoked in place, i.e. from its enclosing directory.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-configure_options"></a>configure_options</td><tdalign="left">Any options to be put on the 'configure' command line.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-configure_prefix"></a>configure_prefix</td><tdalign="left">A prefix for the call to the <code>configure_command</code>.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="configure_make-copts"></a>copts</td><tdalign="left">Optional. Add these options to the compile flags passed to the foreign build system. The flags only take affect for compiling this target, not its dependencies.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-data"></a>data</td><tdalign="left">Files needed by this rule at runtime. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-defines"></a>defines</td><tdalign="left">Optional compilation definitions to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-deps"></a>deps</td><tdalign="left">Optional dependencies to be copied into the directory structure. Typically those directly required for the external building of the library/binaries. (i.e. those that the external build system will be looking for and paths to which are provided by the calling rule)</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-env"></a>env</td><tdalign="left">Environment variables to set during the build. <code>$(execpath)</code> macros may be used to point at files which are listed as <code>data</code>, <code>deps</code>, or <code>build_data</code>, but unlike with other rules, these will be replaced with absolute paths to those files, because the build does not run in the exec root. This attribute is subject to make variable substitution. No other macros are supported.Variables containing <code>PATH</code> (e.g. <code>PATH</code>, <code>LD_LIBRARY_PATH</code>, <code>CPATH</code>) entries will be prepended to the existing variable.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="configure_make-includes"></a>includes</td><tdalign="left">Optional list of include dirs to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-install_prefix"></a>install_prefix</td><tdalign="left">Install prefix, i.e. relative path to where to install the result of the build. Passed to the 'configure' script with the flag specified by prefix_flag.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="configure_make-lib_name"></a>lib_name</td><tdalign="left">Library name. Defines the name of the install directory and the name of the static library, if no output files parameters are defined (any of static_libraries, shared_libraries, interface_libraries, binaries_names) Optional. If not defined, defaults to the target's name.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="configure_make-lib_source"></a>lib_source</td><tdalign="left">Label with source code to build. Typically a filegroup for the source of remote repository. Mandatory.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">Label</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="configure_make-linkopts"></a>linkopts</td><tdalign="left">Optional link options to be passed up to the dependencies of this library</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-out_bin_dir"></a>out_bin_dir</td><tdalign="left">Optional name of the output subdirectory with the binary files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="configure_make-out_binaries"></a>out_binaries</td><tdalign="left">Optional names of the resulting binaries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-out_data_dirs"></a>out_data_dirs</td><tdalign="left">Optional names of additional directories created by the build that should be declared as bazel action outputs</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-out_dll_dir"></a>out_dll_dir</td><tdalign="left">Optional name of the output subdirectory with the dll files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="configure_make-out_headers_only"></a>out_headers_only</td><tdalign="left">Flag variable to indicate that the library produces only headers</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-out_include_dir"></a>out_include_dir</td><tdalign="left">Optional name of the output subdirectory with the header files, defaults to 'include'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"include"</td></tr>
<tr><tdalign="left"><aid="configure_make-out_interface_libs"></a>out_interface_libs</td><tdalign="left">Optional names of the resulting interface libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-out_lib_dir"></a>out_lib_dir</td><tdalign="left">Optional name of the output subdirectory with the library files, defaults to 'lib'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"lib"</td></tr>
<tr><tdalign="left"><aid="configure_make-out_shared_libs"></a>out_shared_libs</td><tdalign="left">Optional names of the resulting shared libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-out_static_libs"></a>out_static_libs</td><tdalign="left">Optional names of the resulting static libraries. Note that if <code>out_headers_only</code>, <code>out_static_libs</code>, <code>out_shared_libs</code>, and <code>out_binaries</code> are not set, default <code>lib_name.a</code>/<code>lib_name.lib</code> static library is assumed</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-postfix_script"></a>postfix_script</td><tdalign="left">Optional part of the shell script to be added after the make commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="configure_make-prefix_flag"></a>prefix_flag</td><tdalign="left">The flag to specify the install directory prefix with.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"--prefix="</td></tr>
<tr><tdalign="left"><aid="configure_make-targets"></a>targets</td><tdalign="left">A list of targets within the foreign build system to produce. An empty string (<code>""</code>) will result in a call to the underlying build system with no explicit target set</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">["", "install"]</td></tr>
<tr><tdalign="left"><aid="configure_make-tool_prefix"></a>tool_prefix</td><tdalign="left">A prefix for build commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="configure_make-tools_deps"></a>tools_deps</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make_variant-toolchain"></a>toolchain</td><tdalign="left">The desired make variant toolchain to use, e.g. @rules_foreign_cc//toolchains:preinstalled_nmake_toolchain</td><tdalign="left">none</td></tr>
<p>Rule for building external libraries with GNU Make. GNU Make commands (make and make install by default) are invoked with PREFIX="install" (by default), and other environment variables for compilation and linking, taken from Bazel C/C++ toolchain and passed dependencies.</p>
<tr><tdalign="left"><aid="make-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="make-additional_inputs"></a>additional_inputs</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-additional_tools"></a>additional_tools</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-alwayslink"></a>alwayslink</td><tdalign="left">Optional. if true, link all the object files from the static library, even if they are not used.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="make-args"></a>args</td><tdalign="left">A list of arguments to pass to the call to <code>make</code></td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-build_data"></a>build_data</td><tdalign="left">Files needed by this rule only during build/compile time. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-copts"></a>copts</td><tdalign="left">Optional. Add these options to the compile flags passed to the foreign build system. The flags only take affect for compiling this target, not its dependencies.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-data"></a>data</td><tdalign="left">Files needed by this rule at runtime. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-defines"></a>defines</td><tdalign="left">Optional compilation definitions to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-deps"></a>deps</td><tdalign="left">Optional dependencies to be copied into the directory structure. Typically those directly required for the external building of the library/binaries. (i.e. those that the external build system will be looking for and paths to which are provided by the calling rule)</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-env"></a>env</td><tdalign="left">Environment variables to set during the build. <code>$(execpath)</code> macros may be used to point at files which are listed as <code>data</code>, <code>deps</code>, or <code>build_data</code>, but unlike with other rules, these will be replaced with absolute paths to those files, because the build does not run in the exec root. This attribute is subject to make variable substitution. No other macros are supported.Variables containing <code>PATH</code> (e.g. <code>PATH</code>, <code>LD_LIBRARY_PATH</code>, <code>CPATH</code>) entries will be prepended to the existing variable.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="make-includes"></a>includes</td><tdalign="left">Optional list of include dirs to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-install_prefix"></a>install_prefix</td><tdalign="left">Install prefix, i.e. relative path to where to install the result of the build. Passed as an arg to "make" as PREFIX=<install_prefix>.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"$$INSTALLDIR$$"</td></tr>
<tr><tdalign="left"><aid="make-lib_name"></a>lib_name</td><tdalign="left">Library name. Defines the name of the install directory and the name of the static library, if no output files parameters are defined (any of static_libraries, shared_libraries, interface_libraries, binaries_names) Optional. If not defined, defaults to the target's name.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="make-lib_source"></a>lib_source</td><tdalign="left">Label with source code to build. Typically a filegroup for the source of remote repository. Mandatory.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">Label</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="make-linkopts"></a>linkopts</td><tdalign="left">Optional link options to be passed up to the dependencies of this library</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-out_bin_dir"></a>out_bin_dir</td><tdalign="left">Optional name of the output subdirectory with the binary files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="make-out_binaries"></a>out_binaries</td><tdalign="left">Optional names of the resulting binaries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-out_data_dirs"></a>out_data_dirs</td><tdalign="left">Optional names of additional directories created by the build that should be declared as bazel action outputs</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-out_dll_dir"></a>out_dll_dir</td><tdalign="left">Optional name of the output subdirectory with the dll files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="make-out_headers_only"></a>out_headers_only</td><tdalign="left">Flag variable to indicate that the library produces only headers</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="make-out_include_dir"></a>out_include_dir</td><tdalign="left">Optional name of the output subdirectory with the header files, defaults to 'include'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"include"</td></tr>
<tr><tdalign="left"><aid="make-out_interface_libs"></a>out_interface_libs</td><tdalign="left">Optional names of the resulting interface libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-out_lib_dir"></a>out_lib_dir</td><tdalign="left">Optional name of the output subdirectory with the library files, defaults to 'lib'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"lib"</td></tr>
<tr><tdalign="left"><aid="make-out_shared_libs"></a>out_shared_libs</td><tdalign="left">Optional names of the resulting shared libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-out_static_libs"></a>out_static_libs</td><tdalign="left">Optional names of the resulting static libraries. Note that if <code>out_headers_only</code>, <code>out_static_libs</code>, <code>out_shared_libs</code>, and <code>out_binaries</code> are not set, default <code>lib_name.a</code>/<code>lib_name.lib</code> static library is assumed</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-postfix_script"></a>postfix_script</td><tdalign="left">Optional part of the shell script to be added after the make commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="make-targets"></a>targets</td><tdalign="left">A list of targets within the foreign build system to produce. An empty string (<code>""</code>) will result in a call to the underlying build system with no explicit target set</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">["", "install"]</td></tr>
<tr><tdalign="left"><aid="make-tool_prefix"></a>tool_prefix</td><tdalign="left">A prefix for build commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="make-tools_deps"></a>tools_deps</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make_variant-toolchain"></a>toolchain</td><tdalign="left">The desired make variant toolchain to use, e.g. @rules_foreign_cc//toolchains:preinstalled_nmake_toolchain</td><tdalign="left">none</td></tr>
<tr><tdalign="left"><aid="ninja-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="ninja-additional_inputs"></a>additional_inputs</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-additional_tools"></a>additional_tools</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-alwayslink"></a>alwayslink</td><tdalign="left">Optional. if true, link all the object files from the static library, even if they are not used.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="ninja-args"></a>args</td><tdalign="left">A list of arguments to pass to the call to <code>ninja</code></td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-build_data"></a>build_data</td><tdalign="left">Files needed by this rule only during build/compile time. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-copts"></a>copts</td><tdalign="left">Optional. Add these options to the compile flags passed to the foreign build system. The flags only take affect for compiling this target, not its dependencies.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-data"></a>data</td><tdalign="left">Files needed by this rule at runtime. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-defines"></a>defines</td><tdalign="left">Optional compilation definitions to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-deps"></a>deps</td><tdalign="left">Optional dependencies to be copied into the directory structure. Typically those directly required for the external building of the library/binaries. (i.e. those that the external build system will be looking for and paths to which are provided by the calling rule)</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-directory"></a>directory</td><tdalign="left">A directory to pass as the <code>-C</code> argument. The rule will always use the root directory of the <code>lib_sources</code> attribute if this attribute is not set</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="ninja-env"></a>env</td><tdalign="left">Environment variables to set during the build. <code>$(execpath)</code> macros may be used to point at files which are listed as <code>data</code>, <code>deps</code>, or <code>build_data</code>, but unlike with other rules, these will be replaced with absolute paths to those files, because the build does not run in the exec root. This attribute is subject to make variable substitution. No other macros are supported.Variables containing <code>PATH</code> (e.g. <code>PATH</code>, <code>LD_LIBRARY_PATH</code>, <code>CPATH</code>) entries will be prepended to the existing variable.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="ninja-includes"></a>includes</td><tdalign="left">Optional list of include dirs to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-lib_name"></a>lib_name</td><tdalign="left">Library name. Defines the name of the install directory and the name of the static library, if no output files parameters are defined (any of static_libraries, shared_libraries, interface_libraries, binaries_names) Optional. If not defined, defaults to the target's name.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="ninja-lib_source"></a>lib_source</td><tdalign="left">Label with source code to build. Typically a filegroup for the source of remote repository. Mandatory.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">Label</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="ninja-linkopts"></a>linkopts</td><tdalign="left">Optional link options to be passed up to the dependencies of this library</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-out_bin_dir"></a>out_bin_dir</td><tdalign="left">Optional name of the output subdirectory with the binary files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="ninja-out_binaries"></a>out_binaries</td><tdalign="left">Optional names of the resulting binaries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-out_data_dirs"></a>out_data_dirs</td><tdalign="left">Optional names of additional directories created by the build that should be declared as bazel action outputs</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-out_dll_dir"></a>out_dll_dir</td><tdalign="left">Optional name of the output subdirectory with the dll files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="ninja-out_headers_only"></a>out_headers_only</td><tdalign="left">Flag variable to indicate that the library produces only headers</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="ninja-out_include_dir"></a>out_include_dir</td><tdalign="left">Optional name of the output subdirectory with the header files, defaults to 'include'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"include"</td></tr>
<tr><tdalign="left"><aid="ninja-out_interface_libs"></a>out_interface_libs</td><tdalign="left">Optional names of the resulting interface libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-out_lib_dir"></a>out_lib_dir</td><tdalign="left">Optional name of the output subdirectory with the library files, defaults to 'lib'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"lib"</td></tr>
<tr><tdalign="left"><aid="ninja-out_shared_libs"></a>out_shared_libs</td><tdalign="left">Optional names of the resulting shared libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-out_static_libs"></a>out_static_libs</td><tdalign="left">Optional names of the resulting static libraries. Note that if <code>out_headers_only</code>, <code>out_static_libs</code>, <code>out_shared_libs</code>, and <code>out_binaries</code> are not set, default <code>lib_name.a</code>/<code>lib_name.lib</code> static library is assumed</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-postfix_script"></a>postfix_script</td><tdalign="left">Optional part of the shell script to be added after the make commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="ninja-targets"></a>targets</td><tdalign="left">A list of targets with in the foreign build system to produce. An empty string (<code>""</code>) will result in a call to the underlying build system with no explicit target set</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-tool_prefix"></a>tool_prefix</td><tdalign="left">A prefix for build commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="ninja-tools_deps"></a>tools_deps</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
</tbody></table>
<divstyle="break-before: page; page-break-before: always;"></div><!-- Generated with Stardoc, Do Not Edit! -->
<tr><tdalign="left"><aid="boost_build-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="boost_build-additional_inputs"></a>additional_inputs</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-additional_tools"></a>additional_tools</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-alwayslink"></a>alwayslink</td><tdalign="left">Optional. if true, link all the object files from the static library, even if they are not used.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="boost_build-bootstrap_options"></a>bootstrap_options</td><tdalign="left">any additional flags to pass to bootstrap.sh</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-build_data"></a>build_data</td><tdalign="left">Files needed by this rule only during build/compile time. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-copts"></a>copts</td><tdalign="left">Optional. Add these options to the compile flags passed to the foreign build system. The flags only take affect for compiling this target, not its dependencies.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-data"></a>data</td><tdalign="left">Files needed by this rule at runtime. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-defines"></a>defines</td><tdalign="left">Optional compilation definitions to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-deps"></a>deps</td><tdalign="left">Optional dependencies to be copied into the directory structure. Typically those directly required for the external building of the library/binaries. (i.e. those that the external build system will be looking for and paths to which are provided by the calling rule)</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-env"></a>env</td><tdalign="left">Environment variables to set during the build. <code>$(execpath)</code> macros may be used to point at files which are listed as <code>data</code>, <code>deps</code>, or <code>build_data</code>, but unlike with other rules, these will be replaced with absolute paths to those files, because the build does not run in the exec root. This attribute is subject to make variable substitution. No other macros are supported.Variables containing <code>PATH</code> (e.g. <code>PATH</code>, <code>LD_LIBRARY_PATH</code>, <code>CPATH</code>) entries will be prepended to the existing variable.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="boost_build-includes"></a>includes</td><tdalign="left">Optional list of include dirs to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-lib_name"></a>lib_name</td><tdalign="left">Library name. Defines the name of the install directory and the name of the static library, if no output files parameters are defined (any of static_libraries, shared_libraries, interface_libraries, binaries_names) Optional. If not defined, defaults to the target's name.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="boost_build-lib_source"></a>lib_source</td><tdalign="left">Label with source code to build. Typically a filegroup for the source of remote repository. Mandatory.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">Label</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="boost_build-linkopts"></a>linkopts</td><tdalign="left">Optional link options to be passed up to the dependencies of this library</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-out_bin_dir"></a>out_bin_dir</td><tdalign="left">Optional name of the output subdirectory with the binary files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="boost_build-out_binaries"></a>out_binaries</td><tdalign="left">Optional names of the resulting binaries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-out_data_dirs"></a>out_data_dirs</td><tdalign="left">Optional names of additional directories created by the build that should be declared as bazel action outputs</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-out_dll_dir"></a>out_dll_dir</td><tdalign="left">Optional name of the output subdirectory with the dll files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="boost_build-out_headers_only"></a>out_headers_only</td><tdalign="left">Flag variable to indicate that the library produces only headers</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="boost_build-out_include_dir"></a>out_include_dir</td><tdalign="left">Optional name of the output subdirectory with the header files, defaults to 'include'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"include"</td></tr>
<tr><tdalign="left"><aid="boost_build-out_interface_libs"></a>out_interface_libs</td><tdalign="left">Optional names of the resulting interface libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-out_lib_dir"></a>out_lib_dir</td><tdalign="left">Optional name of the output subdirectory with the library files, defaults to 'lib'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"lib"</td></tr>
<tr><tdalign="left"><aid="boost_build-out_shared_libs"></a>out_shared_libs</td><tdalign="left">Optional names of the resulting shared libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-out_static_libs"></a>out_static_libs</td><tdalign="left">Optional names of the resulting static libraries. Note that if <code>out_headers_only</code>, <code>out_static_libs</code>, <code>out_shared_libs</code>, and <code>out_binaries</code> are not set, default <code>lib_name.a</code>/<code>lib_name.lib</code> static library is assumed</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-postfix_script"></a>postfix_script</td><tdalign="left">Optional part of the shell script to be added after the make commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="boost_build-tool_prefix"></a>tool_prefix</td><tdalign="left">A prefix for build commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="boost_build-tools_deps"></a>tools_deps</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="boost_build-user_options"></a>user_options</td><tdalign="left">any additional flags to pass to b2</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="cmake-additional_inputs"></a>additional_inputs</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-additional_tools"></a>additional_tools</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-alwayslink"></a>alwayslink</td><tdalign="left">Optional. if true, link all the object files from the static library, even if they are not used.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="cmake-build_args"></a>build_args</td><tdalign="left">Arguments for the CMake build command</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-build_data"></a>build_data</td><tdalign="left">Files needed by this rule only during build/compile time. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-cache_entries"></a>cache_entries</td><tdalign="left">CMake cache entries to initialize (they will be passed with <code>-Dkey=value</code>) Values, defined by the toolchain, will be joined with the values, passed here. (Toolchain values come first)</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="cmake-copts"></a>copts</td><tdalign="left">Optional. Add these options to the compile flags passed to the foreign build system. The flags only take affect for compiling this target, not its dependencies.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-data"></a>data</td><tdalign="left">Files needed by this rule at runtime. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-defines"></a>defines</td><tdalign="left">Optional compilation definitions to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-deps"></a>deps</td><tdalign="left">Optional dependencies to be copied into the directory structure. Typically those directly required for the external building of the library/binaries. (i.e. those that the external build system will be looking for and paths to which are provided by the calling rule)</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-env"></a>env</td><tdalign="left">Environment variables to set during the build. <code>$(execpath)</code> macros may be used to point at files which are listed as <code>data</code>, <code>deps</code>, or <code>build_data</code>, but unlike with other rules, these will be replaced with absolute paths to those files, because the build does not run in the exec root. This attribute is subject to make variable substitution. No other macros are supported.Variables containing <code>PATH</code> (e.g. <code>PATH</code>, <code>LD_LIBRARY_PATH</code>, <code>CPATH</code>) entries will be prepended to the existing variable.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="cmake-generate_args"></a>generate_args</td><tdalign="left">Arguments for CMake's generate command. Arguments should be passed as key/value pairs. eg: <code>["-G Ninja", "--debug-output", "-DFOO=bar"]</code>. Note that unless a generator (<code>-G</code>) argument is provided, the default generators are <ahref="https://cmake.org/cmake/help/latest/generator/Unix%20Makefiles.html">Unix Makefiles</a> for Linux and MacOS and <ahref="https://cmake.org/cmake/help/latest/generator/Ninja.html">Ninja</a> for Windows.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-generate_crosstool_file"></a>generate_crosstool_file</td><tdalign="left">When True, CMake crosstool file will be generated from the toolchain values, provided cache-entries and env_vars (some values will still be passed as <code>-Dkey=value</code> and environment variables). If <code>CMAKE_TOOLCHAIN_FILE</code> cache entry is passed, specified crosstool file will be used When using this option to cross-compile, it is required to specify <code>CMAKE_SYSTEM_NAME</code> in the cache_entries</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">True</td></tr>
<tr><tdalign="left"><aid="cmake-includes"></a>includes</td><tdalign="left">Optional list of include dirs to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-install"></a>install</td><tdalign="left">If True, the <code>cmake --install</code> comand will be performed after a build</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">True</td></tr>
<tr><tdalign="left"><aid="cmake-install_args"></a>install_args</td><tdalign="left">Arguments for the CMake install command</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-lib_name"></a>lib_name</td><tdalign="left">Library name. Defines the name of the install directory and the name of the static library, if no output files parameters are defined (any of static_libraries, shared_libraries, interface_libraries, binaries_names) Optional. If not defined, defaults to the target's name.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="cmake-lib_source"></a>lib_source</td><tdalign="left">Label with source code to build. Typically a filegroup for the source of remote repository. Mandatory.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">Label</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="cmake-linkopts"></a>linkopts</td><tdalign="left">Optional link options to be passed up to the dependencies of this library</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-out_bin_dir"></a>out_bin_dir</td><tdalign="left">Optional name of the output subdirectory with the binary files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="cmake-out_binaries"></a>out_binaries</td><tdalign="left">Optional names of the resulting binaries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-out_data_dirs"></a>out_data_dirs</td><tdalign="left">Optional names of additional directories created by the build that should be declared as bazel action outputs</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-out_dll_dir"></a>out_dll_dir</td><tdalign="left">Optional name of the output subdirectory with the dll files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="cmake-out_headers_only"></a>out_headers_only</td><tdalign="left">Flag variable to indicate that the library produces only headers</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="cmake-out_include_dir"></a>out_include_dir</td><tdalign="left">Optional name of the output subdirectory with the header files, defaults to 'include'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"include"</td></tr>
<tr><tdalign="left"><aid="cmake-out_interface_libs"></a>out_interface_libs</td><tdalign="left">Optional names of the resulting interface libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-out_lib_dir"></a>out_lib_dir</td><tdalign="left">Optional name of the output subdirectory with the library files, defaults to 'lib'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"lib"</td></tr>
<tr><tdalign="left"><aid="cmake-out_shared_libs"></a>out_shared_libs</td><tdalign="left">Optional names of the resulting shared libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-out_static_libs"></a>out_static_libs</td><tdalign="left">Optional names of the resulting static libraries. Note that if <code>out_headers_only</code>, <code>out_static_libs</code>, <code>out_shared_libs</code>, and <code>out_binaries</code> are not set, default <code>lib_name.a</code>/<code>lib_name.lib</code> static library is assumed</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-postfix_script"></a>postfix_script</td><tdalign="left">Optional part of the shell script to be added after the make commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="cmake-targets"></a>targets</td><tdalign="left">A list of targets with in the foreign build system to produce. An empty string (<code>""</code>) will result in a call to the underlying build system with no explicit target set</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-tool_prefix"></a>tool_prefix</td><tdalign="left">A prefix for build commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="cmake-tools_deps"></a>tools_deps</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="cmake-working_directory"></a>working_directory</td><tdalign="left">Working directory, with the main CMakeLists.txt (otherwise, the top directory of the lib_source label files is used.)</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<p>Rule for building external libraries with configure-make pattern. Some 'configure' script is invoked with --prefix=install (by default), and other parameters for compilation and linking, taken from Bazel C/C++ toolchain and passed dependencies. After configuration, GNU Make is called.</p>
<tr><tdalign="left"><aid="configure_make-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="configure_make-additional_inputs"></a>additional_inputs</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-additional_tools"></a>additional_tools</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-alwayslink"></a>alwayslink</td><tdalign="left">Optional. if true, link all the object files from the static library, even if they are not used.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-args"></a>args</td><tdalign="left">A list of arguments to pass to the call to <code>make</code></td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-autoconf"></a>autoconf</td><tdalign="left">Set to True if 'autoconf' should be invoked before 'configure', currently requires <code>configure_in_place</code> to be True.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-autoconf_options"></a>autoconf_options</td><tdalign="left">Any options to be put in the 'autoconf.sh' command line.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-autogen"></a>autogen</td><tdalign="left">Set to True if 'autogen.sh' should be invoked before 'configure', currently requires <code>configure_in_place</code> to be True.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-autogen_command"></a>autogen_command</td><tdalign="left">The name of the autogen script file, default: autogen.sh. Many projects use autogen.sh however the Autotools FAQ recommends bootstrap so we provide this option to support that.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"autogen.sh"</td></tr>
<tr><tdalign="left"><aid="configure_make-autogen_options"></a>autogen_options</td><tdalign="left">Any options to be put in the 'autogen.sh' command line.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-autoreconf"></a>autoreconf</td><tdalign="left">Set to True if 'autoreconf' should be invoked before 'configure.', currently requires <code>configure_in_place</code> to be True.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-autoreconf_options"></a>autoreconf_options</td><tdalign="left">Any options to be put in the 'autoreconf.sh' command line.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-build_data"></a>build_data</td><tdalign="left">Files needed by this rule only during build/compile time. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-configure_command"></a>configure_command</td><tdalign="left">The name of the configuration script file, default: configure. The file must be in the root of the source directory.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"configure"</td></tr>
<tr><tdalign="left"><aid="configure_make-configure_in_place"></a>configure_in_place</td><tdalign="left">Set to True if 'configure' should be invoked in place, i.e. from its enclosing directory.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-configure_options"></a>configure_options</td><tdalign="left">Any options to be put on the 'configure' command line.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-configure_prefix"></a>configure_prefix</td><tdalign="left">A prefix for the call to the <code>configure_command</code>.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="configure_make-copts"></a>copts</td><tdalign="left">Optional. Add these options to the compile flags passed to the foreign build system. The flags only take affect for compiling this target, not its dependencies.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-data"></a>data</td><tdalign="left">Files needed by this rule at runtime. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-defines"></a>defines</td><tdalign="left">Optional compilation definitions to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-deps"></a>deps</td><tdalign="left">Optional dependencies to be copied into the directory structure. Typically those directly required for the external building of the library/binaries. (i.e. those that the external build system will be looking for and paths to which are provided by the calling rule)</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-env"></a>env</td><tdalign="left">Environment variables to set during the build. <code>$(execpath)</code> macros may be used to point at files which are listed as <code>data</code>, <code>deps</code>, or <code>build_data</code>, but unlike with other rules, these will be replaced with absolute paths to those files, because the build does not run in the exec root. This attribute is subject to make variable substitution. No other macros are supported.Variables containing <code>PATH</code> (e.g. <code>PATH</code>, <code>LD_LIBRARY_PATH</code>, <code>CPATH</code>) entries will be prepended to the existing variable.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="configure_make-includes"></a>includes</td><tdalign="left">Optional list of include dirs to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-install_prefix"></a>install_prefix</td><tdalign="left">Install prefix, i.e. relative path to where to install the result of the build. Passed to the 'configure' script with the flag specified by prefix_flag.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="configure_make-lib_name"></a>lib_name</td><tdalign="left">Library name. Defines the name of the install directory and the name of the static library, if no output files parameters are defined (any of static_libraries, shared_libraries, interface_libraries, binaries_names) Optional. If not defined, defaults to the target's name.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="configure_make-lib_source"></a>lib_source</td><tdalign="left">Label with source code to build. Typically a filegroup for the source of remote repository. Mandatory.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">Label</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="configure_make-linkopts"></a>linkopts</td><tdalign="left">Optional link options to be passed up to the dependencies of this library</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-out_bin_dir"></a>out_bin_dir</td><tdalign="left">Optional name of the output subdirectory with the binary files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="configure_make-out_binaries"></a>out_binaries</td><tdalign="left">Optional names of the resulting binaries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-out_data_dirs"></a>out_data_dirs</td><tdalign="left">Optional names of additional directories created by the build that should be declared as bazel action outputs</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-out_dll_dir"></a>out_dll_dir</td><tdalign="left">Optional name of the output subdirectory with the dll files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="configure_make-out_headers_only"></a>out_headers_only</td><tdalign="left">Flag variable to indicate that the library produces only headers</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="configure_make-out_include_dir"></a>out_include_dir</td><tdalign="left">Optional name of the output subdirectory with the header files, defaults to 'include'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"include"</td></tr>
<tr><tdalign="left"><aid="configure_make-out_interface_libs"></a>out_interface_libs</td><tdalign="left">Optional names of the resulting interface libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-out_lib_dir"></a>out_lib_dir</td><tdalign="left">Optional name of the output subdirectory with the library files, defaults to 'lib'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"lib"</td></tr>
<tr><tdalign="left"><aid="configure_make-out_shared_libs"></a>out_shared_libs</td><tdalign="left">Optional names of the resulting shared libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-out_static_libs"></a>out_static_libs</td><tdalign="left">Optional names of the resulting static libraries. Note that if <code>out_headers_only</code>, <code>out_static_libs</code>, <code>out_shared_libs</code>, and <code>out_binaries</code> are not set, default <code>lib_name.a</code>/<code>lib_name.lib</code> static library is assumed</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="configure_make-postfix_script"></a>postfix_script</td><tdalign="left">Optional part of the shell script to be added after the make commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="configure_make-prefix_flag"></a>prefix_flag</td><tdalign="left">The flag to specify the install directory prefix with.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"--prefix="</td></tr>
<tr><tdalign="left"><aid="configure_make-targets"></a>targets</td><tdalign="left">A list of targets within the foreign build system to produce. An empty string (<code>""</code>) will result in a call to the underlying build system with no explicit target set</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">["", "install"]</td></tr>
<tr><tdalign="left"><aid="configure_make-tool_prefix"></a>tool_prefix</td><tdalign="left">A prefix for build commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="configure_make-tools_deps"></a>tools_deps</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<p>Rule for building external libraries with GNU Make. GNU Make commands (make and make install by default) are invoked with PREFIX="install" (by default), and other environment variables for compilation and linking, taken from Bazel C/C++ toolchain and passed dependencies.</p>
<tr><tdalign="left"><aid="make-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="make-additional_inputs"></a>additional_inputs</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-additional_tools"></a>additional_tools</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-alwayslink"></a>alwayslink</td><tdalign="left">Optional. if true, link all the object files from the static library, even if they are not used.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="make-args"></a>args</td><tdalign="left">A list of arguments to pass to the call to <code>make</code></td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-build_data"></a>build_data</td><tdalign="left">Files needed by this rule only during build/compile time. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-copts"></a>copts</td><tdalign="left">Optional. Add these options to the compile flags passed to the foreign build system. The flags only take affect for compiling this target, not its dependencies.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-data"></a>data</td><tdalign="left">Files needed by this rule at runtime. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-defines"></a>defines</td><tdalign="left">Optional compilation definitions to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-deps"></a>deps</td><tdalign="left">Optional dependencies to be copied into the directory structure. Typically those directly required for the external building of the library/binaries. (i.e. those that the external build system will be looking for and paths to which are provided by the calling rule)</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-env"></a>env</td><tdalign="left">Environment variables to set during the build. <code>$(execpath)</code> macros may be used to point at files which are listed as <code>data</code>, <code>deps</code>, or <code>build_data</code>, but unlike with other rules, these will be replaced with absolute paths to those files, because the build does not run in the exec root. This attribute is subject to make variable substitution. No other macros are supported.Variables containing <code>PATH</code> (e.g. <code>PATH</code>, <code>LD_LIBRARY_PATH</code>, <code>CPATH</code>) entries will be prepended to the existing variable.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="make-includes"></a>includes</td><tdalign="left">Optional list of include dirs to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-install_prefix"></a>install_prefix</td><tdalign="left">Install prefix, i.e. relative path to where to install the result of the build. Passed as an arg to "make" as PREFIX=<install_prefix>.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"$$INSTALLDIR$$"</td></tr>
<tr><tdalign="left"><aid="make-lib_name"></a>lib_name</td><tdalign="left">Library name. Defines the name of the install directory and the name of the static library, if no output files parameters are defined (any of static_libraries, shared_libraries, interface_libraries, binaries_names) Optional. If not defined, defaults to the target's name.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="make-lib_source"></a>lib_source</td><tdalign="left">Label with source code to build. Typically a filegroup for the source of remote repository. Mandatory.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">Label</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="make-linkopts"></a>linkopts</td><tdalign="left">Optional link options to be passed up to the dependencies of this library</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-out_bin_dir"></a>out_bin_dir</td><tdalign="left">Optional name of the output subdirectory with the binary files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="make-out_binaries"></a>out_binaries</td><tdalign="left">Optional names of the resulting binaries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-out_data_dirs"></a>out_data_dirs</td><tdalign="left">Optional names of additional directories created by the build that should be declared as bazel action outputs</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-out_dll_dir"></a>out_dll_dir</td><tdalign="left">Optional name of the output subdirectory with the dll files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="make-out_headers_only"></a>out_headers_only</td><tdalign="left">Flag variable to indicate that the library produces only headers</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="make-out_include_dir"></a>out_include_dir</td><tdalign="left">Optional name of the output subdirectory with the header files, defaults to 'include'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"include"</td></tr>
<tr><tdalign="left"><aid="make-out_interface_libs"></a>out_interface_libs</td><tdalign="left">Optional names of the resulting interface libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-out_lib_dir"></a>out_lib_dir</td><tdalign="left">Optional name of the output subdirectory with the library files, defaults to 'lib'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"lib"</td></tr>
<tr><tdalign="left"><aid="make-out_shared_libs"></a>out_shared_libs</td><tdalign="left">Optional names of the resulting shared libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-out_static_libs"></a>out_static_libs</td><tdalign="left">Optional names of the resulting static libraries. Note that if <code>out_headers_only</code>, <code>out_static_libs</code>, <code>out_shared_libs</code>, and <code>out_binaries</code> are not set, default <code>lib_name.a</code>/<code>lib_name.lib</code> static library is assumed</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make-postfix_script"></a>postfix_script</td><tdalign="left">Optional part of the shell script to be added after the make commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="make-targets"></a>targets</td><tdalign="left">A list of targets within the foreign build system to produce. An empty string (<code>""</code>) will result in a call to the underlying build system with no explicit target set</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">["", "install"]</td></tr>
<tr><tdalign="left"><aid="make-tool_prefix"></a>tool_prefix</td><tdalign="left">A prefix for build commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="make-tools_deps"></a>tools_deps</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="make_tool-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="make_tool-env"></a>env</td><tdalign="left">Environment variables to set during the build. This attribute is subject to make variable substitution.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<p>Rule for defining the toolchain data of the native tools (cmake, ninja), to be used by rules_foreign_cc with toolchain types <code>@rules_foreign_cc//toolchains:cmake_toolchain</code> and <code>@rules_foreign_cc//toolchains:ninja_toolchain</code>.</p>
<tr><tdalign="left"><aid="native_tool_toolchain-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="native_tool_toolchain-env"></a>env</td><tdalign="left">Environment variables to be set when using this tool e.g. M4</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="native_tool_toolchain-path"></a>path</td><tdalign="left">Absolute path to the tool in case the tool is preinstalled on the machine. Relative path to the tool in case the tool is built as part of a build; the path should be relative to the bazel-genfiles, i.e. it should start with the name of the top directory of the built tree artifact. (Please see the example <code>//examples:built_cmake_toolchain</code>)</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="native_tool_toolchain-target"></a>target</td><tdalign="left">If the tool is preinstalled, must be None. If the tool is built as part of the build, the corresponding build target, which should produce the tree artifact with the binary to call.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">Label</a></td><tdalign="left">optional</td><tdalign="left">None</td></tr>
<tr><tdalign="left"><aid="ninja-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="ninja-additional_inputs"></a>additional_inputs</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-additional_tools"></a>additional_tools</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-alwayslink"></a>alwayslink</td><tdalign="left">Optional. if true, link all the object files from the static library, even if they are not used.</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="ninja-args"></a>args</td><tdalign="left">A list of arguments to pass to the call to <code>ninja</code></td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-build_data"></a>build_data</td><tdalign="left">Files needed by this rule only during build/compile time. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-copts"></a>copts</td><tdalign="left">Optional. Add these options to the compile flags passed to the foreign build system. The flags only take affect for compiling this target, not its dependencies.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-data"></a>data</td><tdalign="left">Files needed by this rule at runtime. May list file or rule targets. Generally allows any target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-defines"></a>defines</td><tdalign="left">Optional compilation definitions to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-deps"></a>deps</td><tdalign="left">Optional dependencies to be copied into the directory structure. Typically those directly required for the external building of the library/binaries. (i.e. those that the external build system will be looking for and paths to which are provided by the calling rule)</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-directory"></a>directory</td><tdalign="left">A directory to pass as the <code>-C</code> argument. The rule will always use the root directory of the <code>lib_sources</code> attribute if this attribute is not set</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="ninja-env"></a>env</td><tdalign="left">Environment variables to set during the build. <code>$(execpath)</code> macros may be used to point at files which are listed as <code>data</code>, <code>deps</code>, or <code>build_data</code>, but unlike with other rules, these will be replaced with absolute paths to those files, because the build does not run in the exec root. This attribute is subject to make variable substitution. No other macros are supported.Variables containing <code>PATH</code> (e.g. <code>PATH</code>, <code>LD_LIBRARY_PATH</code>, <code>CPATH</code>) entries will be prepended to the existing variable.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<tr><tdalign="left"><aid="ninja-includes"></a>includes</td><tdalign="left">Optional list of include dirs to be passed to the dependencies of this library. They are NOT passed to the compiler, you should duplicate them in the configuration options.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-lib_name"></a>lib_name</td><tdalign="left">Library name. Defines the name of the install directory and the name of the static library, if no output files parameters are defined (any of static_libraries, shared_libraries, interface_libraries, binaries_names) Optional. If not defined, defaults to the target's name.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="ninja-lib_source"></a>lib_source</td><tdalign="left">Label with source code to build. Typically a filegroup for the source of remote repository. Mandatory.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">Label</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="ninja-linkopts"></a>linkopts</td><tdalign="left">Optional link options to be passed up to the dependencies of this library</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-out_bin_dir"></a>out_bin_dir</td><tdalign="left">Optional name of the output subdirectory with the binary files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="ninja-out_binaries"></a>out_binaries</td><tdalign="left">Optional names of the resulting binaries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-out_data_dirs"></a>out_data_dirs</td><tdalign="left">Optional names of additional directories created by the build that should be declared as bazel action outputs</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-out_dll_dir"></a>out_dll_dir</td><tdalign="left">Optional name of the output subdirectory with the dll files, defaults to 'bin'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"bin"</td></tr>
<tr><tdalign="left"><aid="ninja-out_headers_only"></a>out_headers_only</td><tdalign="left">Flag variable to indicate that the library produces only headers</td><tdalign="left">Boolean</td><tdalign="left">optional</td><tdalign="left">False</td></tr>
<tr><tdalign="left"><aid="ninja-out_include_dir"></a>out_include_dir</td><tdalign="left">Optional name of the output subdirectory with the header files, defaults to 'include'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"include"</td></tr>
<tr><tdalign="left"><aid="ninja-out_interface_libs"></a>out_interface_libs</td><tdalign="left">Optional names of the resulting interface libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-out_lib_dir"></a>out_lib_dir</td><tdalign="left">Optional name of the output subdirectory with the library files, defaults to 'lib'.</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">"lib"</td></tr>
<tr><tdalign="left"><aid="ninja-out_shared_libs"></a>out_shared_libs</td><tdalign="left">Optional names of the resulting shared libraries.</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-out_static_libs"></a>out_static_libs</td><tdalign="left">Optional names of the resulting static libraries. Note that if <code>out_headers_only</code>, <code>out_static_libs</code>, <code>out_shared_libs</code>, and <code>out_binaries</code> are not set, default <code>lib_name.a</code>/<code>lib_name.lib</code> static library is assumed</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-postfix_script"></a>postfix_script</td><tdalign="left">Optional part of the shell script to be added after the make commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="ninja-targets"></a>targets</td><tdalign="left">A list of targets with in the foreign build system to produce. An empty string (<code>""</code>) will result in a call to the underlying build system with no explicit target set</td><tdalign="left">List of strings</td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja-tool_prefix"></a>tool_prefix</td><tdalign="left">A prefix for build commands</td><tdalign="left">String</td><tdalign="left">optional</td><tdalign="left">""</td></tr>
<tr><tdalign="left"><aid="ninja-tools_deps"></a>tools_deps</td><tdalign="left"><strong>deprecated</strong>: Please use the <code>build_data</code> attribute.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a></td><tdalign="left">optional</td><tdalign="left">[]</td></tr>
<tr><tdalign="left"><aid="ninja_tool-name"></a>name</td><tdalign="left">A unique name for this target.</td><tdalign="left"><ahref="https://bazel.build/docs/build-ref.html#name">Name</a></td><tdalign="left">required</td><tdalign="left"></td></tr>
<tr><tdalign="left"><aid="ninja_tool-env"></a>env</td><tdalign="left">Environment variables to set during the build. This attribute is subject to make variable substitution.</td><tdalign="left"><ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a></td><tdalign="left">optional</td><tdalign="left">{}</td></tr>
<p>Groups information about the external library install directory,
and relative bin, include and lib directories.</p>
<p>Serves to pass transitive information about externally built artifacts up the dependency chain.</p>
<p>Can not be used as a top-level provider.
Instances of ForeignCcArtifactInfo are encapsulated in a depset <ahref="flatten.html#ForeignCcDepsInfo-artifacts">ForeignCcDepsInfo::artifacts</a>.</p>
<tr><tdalign="left"><aid="ToolInfo-path"></a>path</td><tdalign="left">Absolute path to the tool in case the tool is preinstalled on the machine. Relative path to the tool in case the tool is built as part of a build; the path should be relative to the bazel-genfiles, i.e. it should start with the name of the top directory of the built tree artifact. (Please see the example <code>//examples:built_cmake_toolchain</code>)</td></tr>
<tr><tdalign="left"><aid="ToolInfo-target"></a>target</td><tdalign="left">If the tool is preinstalled, must be None. If the tool is built as part of the build, the corresponding build target, which should produce the tree artifact with the binary to call.</td></tr>
<tr><tdalign="left"><aid="cmake_variant-toolchain"></a>toolchain</td><tdalign="left">The desired make variant toolchain to use, e.g. @rules_foreign_cc//toolchains:preinstalled_nmake_toolchain</td><tdalign="left">none</td></tr>
<tr><tdalign="left"><aid="configure_make_variant-toolchain"></a>toolchain</td><tdalign="left">The desired make variant toolchain to use, e.g. @rules_foreign_cc//toolchains:preinstalled_nmake_toolchain</td><tdalign="left">none</td></tr>
<tr><tdalign="left"><aid="make_variant-toolchain"></a>toolchain</td><tdalign="left">The desired make variant toolchain to use, e.g. @rules_foreign_cc//toolchains:preinstalled_nmake_toolchain</td><tdalign="left">none</td></tr>
<p>Call this function from the WORKSPACE file to initialize rules_foreign_cc dependencies and let neccesary code generation happen (Code generation is needed to support different variants of the C++ Starlark API.).</p>
<tr><tdalign="left"><aid="rules_foreign_cc_dependencies-native_tools_toolchains"></a>native_tools_toolchains</td><tdalign="left">pass the toolchains for toolchain types '@rules_foreign_cc//toolchains:cmake_toolchain' and '@rules_foreign_cc//toolchains:ninja_toolchain' with the needed platform constraints. If you do not pass anything, registered default toolchains will be selected (see below).</td><tdalign="left"><code>[]</code></td></tr>
<tr><tdalign="left"><aid="rules_foreign_cc_dependencies-register_default_tools"></a>register_default_tools</td><tdalign="left">If True, the cmake and ninja toolchains, calling corresponding preinstalled binaries by name (cmake, ninja) will be registered after 'native_tools_toolchains' without any platform constraints. The default is True.</td><tdalign="left"><code>True</code></td></tr>
<tr><tdalign="left"><aid="rules_foreign_cc_dependencies-cmake_version"></a>cmake_version</td><tdalign="left">The target version of the cmake toolchain if <code>register_default_tools</code> or <code>register_built_tools</code> is set to <code>True</code>.</td><tdalign="left"><code>"3.23.2"</code></td></tr>
<tr><tdalign="left"><aid="rules_foreign_cc_dependencies-make_version"></a>make_version</td><tdalign="left">The target version of the default make toolchain if <code>register_built_tools</code> is set to <code>True</code>.</td><tdalign="left"><code>"4.4"</code></td></tr>
<tr><tdalign="left"><aid="rules_foreign_cc_dependencies-ninja_version"></a>ninja_version</td><tdalign="left">The target version of the ninja toolchain if <code>register_default_tools</code> or <code>register_built_tools</code> is set to <code>True</code>.</td><tdalign="left"><code>"1.11.0"</code></td></tr>
<tr><tdalign="left"><aid="rules_foreign_cc_dependencies-register_preinstalled_tools"></a>register_preinstalled_tools</td><tdalign="left">If true, toolchains will be registered for the native built tools installed on the exec host</td><tdalign="left"><code>True</code></td></tr>
<tr><tdalign="left"><aid="rules_foreign_cc_dependencies-register_built_tools"></a>register_built_tools</td><tdalign="left">If true, toolchains that build the tools from source are registered</td><tdalign="left"><code>True</code></td></tr>
<tr><tdalign="left"><aid="rules_foreign_cc_dependencies-register_toolchains"></a>register_toolchains</td><tdalign="left">If true, registers the toolchains via native.register_toolchains. Used by bzlmod</td><tdalign="left"><code>True</code></td></tr>