Skip to content

Latest commit

 

History

History
executable file
·
46 lines (29 loc) · 2.8 KB

File metadata and controls

executable file
·
46 lines (29 loc) · 2.8 KB

Bazel module extensions for rules_coco.

coco

coco = use_extension("@rules_coco//coco:extensions.bzl", "coco")
coco.cc_runtime_deps(deps, version)
coco.toolchain(auth_token_path, c, cc, license_source, license_token, versions)

TAG CLASSES

cc_runtime_deps

Inject extra cc_library deps into the Coco C++ runtime for a specific Coco/Popili version. Root-module only. See the rules_coco README for when this is needed (typically Boost libraries when building against old libstdc++).

Attributes

Name Description Type Mandatory Default
deps List of cc_library targets to append to the runtime's deps. List of labels required
version Coco/Popili version these deps apply to. May be an explicit version (e.g. '1.5.1') or an alias (e.g. 'stable'). String required

toolchain

Attributes

Name Description Type Mandatory Default
auth_token_path Optional path to auth token file for all toolchains when license_source is 'action_file'. The file must be available in the execution environment. String optional ""
c Whether to include C runtime support Boolean optional False
cc Whether to include C++ runtime support Boolean optional False
license_source Optional default license source mode for all toolchains (e.g., 'local_user', 'local_acquire', 'token', 'action_environment', 'action_file'). Can be overridden via --@rules_coco//:license_source flag. String optional ""
license_token Optional default license token for all toolchains when license_source is 'token'. String optional ""
versions List of Coco/Popili versions to register (e.g., ['1.5.0', '1.4.0']). Use version aliases like 'stable' or explicit versions like '1.5.1'. List of strings optional ["stable"]