Skip to content

//ll:inputs.bzl

Action inputs for rules.

compilable_sources

compilable_sources(ctx)

parameters

Name Description
ctx

compile_object_inputs

compile_object_inputs(ctx, in_file, headers, interfaces)

Collect all inputs for a compile action.

Takes files from the arguments and adds files from the srcs and data fields and various toolchain dependencies.

parameters

Name Description
ctx The rule context.
in_file The input file.
headers A depset of headers.
interfaces A depset of (interface, name) tuples.

returns

A depset of files.

create_archive_library_inputs

create_archive_library_inputs(ctx, in_files)

parameters

Name Description
ctx
in_files

link_executable_inputs(ctx, in_files)

Collect all inputs for link actions producing executables.

Apart from in_files, adds files from the deps, libraries and data fields and various toolchain dependencies.

parameters

Name Description
ctx The rule context.
in_files A list of files.

returns

A depset of files.

link_shared_object_inputs(ctx, in_files)

Collect input files for link actions.

Adds files from the deps and data fields and various toolchain dependencies.

parameters

Name Description
ctx The rule context.
in_files A list of files.

returns

A depset of files.