Skip to content

Commit 2946a71

Browse files
committed
grpc-native: Address PR comments
1 parent c1e39c3 commit 2946a71

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cinterop-c/tools/collect_headers.bzl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# This files contains Bazel rules to collect headers by Bazel CcInfo targets.
2+
#
3+
# The 'include_dir' rule is used to extract the include headers
4+
# from the dependency, so we can use them for our cinterop bindings.
5+
# The target is called by the extract_include_dir.sh script, which
6+
# is executed by the ./gradlew bundleIncludeDirLibC* task.
7+
#
8+
# The 'cc_header_only` rule returns a CcInfo that only contains the
9+
# header files of the compilation dependency. This allows a
10+
# library to depend on the header files, without compiling
11+
# the whole dependency.
12+
# E.g. it is used to bundle the
13+
# //prebuilt-deps/grpc_fat:grpc_core_prebuilt
14+
# target including the grpc headers.
15+
116
HeaderInfo = provider(fields = ["headers_dir", "headers"])
217

318
# determines if the file is in the given repository

0 commit comments

Comments
 (0)