aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-05-26 22:26:23 +0200
committerGravatar László Csomor <laszlocsomor@google.com>2017-05-29 14:07:58 +0200
commitdfef43621c6658ac695164db55c7da205dffc869 (patch)
treee462fabb73dafbf8966b8a2f8dfb5e86b73dd8fb /tools
parent77f12de356958b9beb99fa12d89fd74848a8aa90 (diff)
Keep "srcs", "hdrs" and "textual_hdrs" separate.
Each can has slightly different semantics for the IDE, and it is better to use the information on which files belong to which group from BUILD file rather than use heuristics like file extension to determine it. The contents of "textual_hdrs" are added by the prefetcher. RELNOTES: None. PiperOrigin-RevId: 157256048
Diffstat (limited to 'tools')
-rw-r--r--tools/ide/intellij_info_impl.bzl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/ide/intellij_info_impl.bzl b/tools/ide/intellij_info_impl.bzl
index 472a73be51..3494f4ff09 100644
--- a/tools/ide/intellij_info_impl.bzl
+++ b/tools/ide/intellij_info_impl.bzl
@@ -268,7 +268,8 @@ def build_c_ide_info(target, ctx):
return (None, set())
sources = artifacts_from_target_list_attr(ctx, "srcs")
- sources.extend(artifacts_from_target_list_attr(ctx, "hdrs"))
+ headers = artifacts_from_target_list_attr(ctx, "hdrs")
+ textual_headers = artifacts_from_target_list_attr(ctx, "textual_hdrs")
target_includes = []
if hasattr(ctx.rule.attr, "includes"):
@@ -284,6 +285,8 @@ def build_c_ide_info(target, ctx):
c_ide_info = struct_omit_none(
source = sources,
+ header = headers,
+ textual_header = textual_headers,
target_include = target_includes,
target_define = target_defines,
target_copt = target_copts,