params_file public API ## params_file
params_file(name, out, args, data, newline, kwargs)Generates a UTF-8 encoded params file from a list of arguments. Handles variable substitutions for args. ### **Parameters** | Name | Description | Default Value | | :------------- | :------------- | :------------- | | name | Name of the rule. | none | | out | Path of the output file, relative to this package. | none | | args | Arguments to concatenate into a params file.
execpath
, execpaths
, rootpath
, rootpaths
, location
, and locations
take label parameters (e.g. $(execpath //foo:bar)
) and substitute the file paths denoted by that label.*_binary
& *_test
args and genrule bazel substitions. This will be fixed in a future major release. See docs string of expand_location_into_runfiles
macro in internal/common/expand_into_runfiles.bzl
for more info.$(COMPILATION_MODE)
and $(TARGET_CPU)
are expanded. See https://docs.bazel.build/versions/main/be/make-variables.html#predefined_variables.--define=SOME_VAR=SOME_VALUE
. See https://docs.bazel.build/versions/main/be/make-variables.html#custom_variables.[]
|
| data | Data for $(location)
expansions in args. | []
|
| newline | Line endings to use. One of ["auto"
, "unix"
, "windows"
]."auto"
for platform-determined - "unix"
for LF - "windows"
for CRLF | "auto"
|
| kwargs | undocumented named arguments | none |