bindc




USAGE:
    bindc <SUBCOMMAND>


选项


    -h, --help       Prints help information
    -V, --version    Prints version information


子命令


    compile
    debug
    generate-bind    Generate a Bind Library based on the input FIDL IR file.
    generate-cpp     Generate a C++ header file based on the input Bind Library file.
    generate-rust    Generate a Rust file based on the input Bind Library file.
    help             Prints this message or the help of the given subcommand(s)
    test

编译


bindc-compile

USAGE:
    bindc compile [FLAGS] [OPTIONS] [--] [input]


选项


    -a, --disable-autobind    Disable automatically binding the driver so that the driver must be bound on a user's
                              request.
    -h, --help                Prints help information
    -l, --lint                Check inputs for style guide violations.
    -V, --version             Prints version information

    -d, --depfile <depfile>              Specify a path for the compiler to generate a depfile. A depfile contain, in
                                         Makefile format, the files that this invocation of the compiler depends on
                                         including all bind libraries and the bind rules input itself. An output file
                                         must be provided to generate a depfile.
    -i, --include <include>...           The bind library input files. These may be included by the bind rules. They
                                         should be in the format described in //tools/bindc/README.md.
    -f, --include-file <include_file>    Specifiy the bind library input files as a file. The file must contain a list
                                         of filenames that are bind library input files that may be included by the bind
                                         rules. Those files should be in the format described in
                                         //tools/bindc/README.md.
    -o, --output <output>                Output file. The compiler emits a C header file.

ARGS:
    <input>    The bind rules input file. This should be in the format described in //tools/bindc/README.md. This is
               required unless disable_autobind is true, in which case the driver while bind unconditionally (but
               only on the user's request.)

调试


bindc-debug

USAGE:
    bindc debug [FLAGS] [OPTIONS] --debug <device_file> [--] [input]


选项


    -h, --help       Prints help information
    -l, --lint       Check inputs for style guide violations.
    -V, --version    Prints version information

    -d, --debug <device_file>            A file containing the properties of a specific device, as a list of key-value
                                         pairs. This will be used as the input to the bind rules debugger.
    -i, --include <include>...           The bind library input files. These may be included by the bind rules. They
                                         should be in the format described in //tools/bindc/README.md.
    -f, --include-file <include_file>    Specifiy the bind library input files as a file. The file must contain a list
                                         of filenames that are bind library input files that may be included by the bind
                                         rules. Those files should be in the format described in
                                         //tools/bindc/README.md.

ARGS:
    <input>    The bind rules input file. This should be in the format described in //tools/bindc/README.md. This is
               required unless disable_autobind is true, in which case the driver while bind unconditionally (but
               only on the user's request.)

generate-bind


bindc-generate-bind
Generate a Bind Library based on the input FIDL IR file.

USAGE:
    bindc generate-bind [OPTIONS] <input>


选项


    -h, --help       Prints help information
    -V, --version    Prints version information

    -o, --output <output>    Output Bind Library file.

ARGS:
    <input>    The FIDL IR input file. This should be generated from a FIDL library by the FIDL compiler at
               //tools/fidl/fidlc using the $fidl_toolchain suffix.

generate-cpp


bindc-generate-cpp
Generate a C++ header file based on the input Bind Library file.

USAGE:
    bindc generate-cpp [FLAGS] [OPTIONS] <input>


选项


    -h, --help       Prints help information
    -l, --lint       Check the input for style guide violations.
    -V, --version    Prints version information

    -o, --output <output>    Output C++ header file.

ARGS:
    <input>    The Bind Library input file.

generate-rust


bindc-generate-rust
Generate a Rust file based on the input Bind Library file.

USAGE:
    bindc generate-rust [FLAGS] [OPTIONS] <input>


选项


    -h, --help       Prints help information
    -l, --lint       Check the input for style guide violations.
    -V, --version    Prints version information

    -o, --output <output>    Output Rust file.

ARGS:
    <input>    The Bind Library input file.

测试


bindc-test

USAGE:
    bindc test [FLAGS] [OPTIONS] --test-spec <test_spec> [--] [input]


选项


    -h, --help       Prints help information
    -l, --lint       Check inputs for style guide violations.
    -V, --version    Prints version information

    -i, --include <include>...           The bind library input files. These may be included by the bind rules. They
                                         should be in the format described in //tools/bindc/README.md.
    -f, --include-file <include_file>    Specifiy the bind library input files as a file. The file must contain a list
                                         of filenames that are bind library input files that may be included by the bind
                                         rules. Those files should be in the format described in
                                         //tools/bindc/README.md.
    -t, --test-spec <test_spec>          A file containing the test specification.

ARGS:
    <input>    The bind rules input file. This should be in the format described in //tools/bindc/README.md. This is
               required unless disable_autobind is true, in which case the driver while bind unconditionally (but
               only on the user's request.)