Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions BazelExtensions/xcode_configuration_provider.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ XcodeBuildSourceInfo = provider(
)

def _extract_generated_sources(target, ctx):
""" Collects all of the generated source files"""
"""Collects all of the generated source files"""

files = []
if ctx.rule.kind == "entitlements_writer":
Expand All @@ -91,10 +91,16 @@ def _extract_generated_sources(target, ctx):
if include_swift_outputs and hasattr(module_info, "transitive_swiftmodules"):
files.append(module_info.transitive_swiftmodules)

if CcInfo in target:
cc_info = target[CcInfo]
files.append(cc_info.compilation_context.headers)
elif hasattr(target, "objc"):
objc = target.objc
files.append(objc.header)

if hasattr(target, "objc"):
objc = target.objc
files.append(objc.source)
files.append(objc.header)
files.append(objc.module_map)

trans_files = depset(transitive = files)
Expand Down