Functions | |
def | build_upb_bazel_rules (rules) |
def | copy_upb_generated_files (rules, args) |
def | get_bazel_bin_root_path (elink) |
def | get_external_link (file) |
def | get_transitive_protos (rules, t) |
def | get_upb_path (proto_path, ext) |
def | main () |
def | parse_bazel_rule (elem) |
def | read_upb_bazel_rules () |
Variables | |
action | |
string | BAZEL_BIN = 'tools/bazel' |
default | |
False | |
help | |
parser = argparse.ArgumentParser(description='UPB code-gen from bazel') | |
Rule = collections.namedtuple('Rule', 'name type srcs deps proto_files') | |
def gen_upb_api_from_bazel_xml.build_upb_bazel_rules | ( | rules | ) |
Definition at line 118 of file gen_upb_api_from_bazel_xml.py.
def gen_upb_api_from_bazel_xml.copy_upb_generated_files | ( | rules, | |
args | |||
) |
Definition at line 150 of file gen_upb_api_from_bazel_xml.py.
def gen_upb_api_from_bazel_xml.get_bazel_bin_root_path | ( | elink | ) |
Definition at line 127 of file gen_upb_api_from_bazel_xml.py.
def gen_upb_api_from_bazel_xml.get_external_link | ( | file | ) |
Definition at line 138 of file gen_upb_api_from_bazel_xml.py.
def gen_upb_api_from_bazel_xml.get_transitive_protos | ( | rules, | |
t | |||
) |
Definition at line 62 of file gen_upb_api_from_bazel_xml.py.
def gen_upb_api_from_bazel_xml.get_upb_path | ( | proto_path, | |
ext | |||
) |
Definition at line 123 of file gen_upb_api_from_bazel_xml.py.
def gen_upb_api_from_bazel_xml.main | ( | ) |
Definition at line 186 of file gen_upb_api_from_bazel_xml.py.
def gen_upb_api_from_bazel_xml.parse_bazel_rule | ( | elem | ) |
Returns a rule from bazel XML rule.
Definition at line 46 of file gen_upb_api_from_bazel_xml.py.
def gen_upb_api_from_bazel_xml.read_upb_bazel_rules | ( | ) |
Runs bazel query on given package file and returns all upb rules.
Definition at line 82 of file gen_upb_api_from_bazel_xml.py.
gen_upb_api_from_bazel_xml.action |
Definition at line 177 of file gen_upb_api_from_bazel_xml.py.
string gen_upb_api_from_bazel_xml.BAZEL_BIN = 'tools/bazel' |
Definition at line 43 of file gen_upb_api_from_bazel_xml.py.
gen_upb_api_from_bazel_xml.default |
Definition at line 177 of file gen_upb_api_from_bazel_xml.py.
gen_upb_api_from_bazel_xml.False |
Definition at line 177 of file gen_upb_api_from_bazel_xml.py.
gen_upb_api_from_bazel_xml.help |
Definition at line 180 of file gen_upb_api_from_bazel_xml.py.
Definition at line 176 of file gen_upb_api_from_bazel_xml.py.
Definition at line 41 of file gen_upb_api_from_bazel_xml.py.