2
0
Fork 0
mirror of https://github.com/bazelbuild/rules_cc synced 2024-11-27 20:43:26 +00:00
rules_cc/examples/test_cc_shared_library3/BUILD.oss
Googler c460f83acb Include more information about configurations in cquery proto formatted outout
1. Add a repeated Configuration field to CqueryResult, and fill in the
checksum, platform, and mnemonic fields.

2. Add a configuration_id field to ConfiguredTarget, and deprecate the existing
configuration field in ConfiguredTarget. The configuration_id field is an index
that points to the Configuration message stored in CqueryResult, following the
same pattern as ActionGraphContainer. This avoids duplicating the same
Configuration message for each ConfiguredTarget.

RELNOTES: Include more information about configurations in cquery proto
formatted output. This deprecates the configuration field of
AnalysisProtosV2.ConfiguredTarget, and adds a new field, configuration_id, to
be used instead.
PiperOrigin-RevId: 429129916
Change-Id: Id048229a6872e6462b67cfe3041cdc907967d7bf
2022-03-17 04:50:09 -07:00

18 lines
449 B
Plaintext

load("@rules_cc//cc:defs.bzl", "cc_library")
load("//examples:experimental_cc_shared_library.bzl", "cc_shared_library_permissions")
cc_library(
name = "bar",
srcs = ["bar.cc"],
hdrs = ["bar.h"],
visibility = ["//visibility:public"],
)
cc_shared_library_permissions(
name = "permissions",
targets = [
"//examples/test_cc_shared_library3:bar",
],
visibility = ["//examples/test_cc_shared_library:__pkg__"],
)