Merge "Update documentation for genrule and sdk_library"

This commit is contained in:
Treehugger Robot
2021-08-04 00:14:31 +00:00
committed by Gerrit Code Review
2 changed files with 9 additions and 8 deletions

View File

@@ -112,16 +112,17 @@ type hostToolDependencyTag struct {
label string label string
} }
type generatorProperties struct { type generatorProperties struct {
// The command to run on one or more input files. Cmd supports substitution of a few variables // The command to run on one or more input files. Cmd supports substitution of a few variables.
// //
// Available variables for substitution: // Available variables for substitution:
// //
// $(location): the path to the first entry in tools or tool_files // $(location): the path to the first entry in tools or tool_files.
// $(location <label>): the path to the tool, tool_file, input or output with name <label> // $(location <label>): the path to the tool, tool_file, input or output with name <label>. Use $(location) if <label> refers to a rule that outputs exactly one file.
// $(in): one or more input files // $(locations <label>): the paths to the tools, tool_files, inputs or outputs with name <label>. Use $(locations) if <label> refers to a rule that outputs two or more files.
// $(out): a single output file // $(in): one or more input files.
// $(depfile): a file to which dependencies will be written, if the depfile property is set to true // $(out): a single output file.
// $(genDir): the sandbox directory for this tool; contains $(out) // $(depfile): a file to which dependencies will be written, if the depfile property is set to true.
// $(genDir): the sandbox directory for this tool; contains $(out).
// $$: a literal $ // $$: a literal $
Cmd *string Cmd *string

View File

@@ -419,7 +419,7 @@ type sdkLibraryProperties struct {
// local files that are used within user customized droiddoc options. // local files that are used within user customized droiddoc options.
Droiddoc_option_files []string Droiddoc_option_files []string
// additional droiddoc options // additional droiddoc options.
// Available variables for substitution: // Available variables for substitution:
// //
// $(location <label>): the path to the droiddoc_option_files with name <label> // $(location <label>): the path to the droiddoc_option_files with name <label>