Functions | Variables
preprocessed_builds Namespace Reference

Functions

def collect_bazel_rules (root_path)
 
def collect_cmake_rules (root_path)
 
def generate_builds (root_path)
 
def get_elem_value (elem, name)
 
def main ()
 
def normalize_paths (paths)
 
def pairing_bazel_and_cmake_rules (bazel_rules, cmake_rules)
 
def parse_bazel_rule (elem, package)
 
def parse_cmake_rule (rule, package)
 
def read_bazel_build (package)
 
def read_cmake_build (build_path, package)
 
def resolve_deps (targets)
 
def resolve_hdrs (files)
 
def resolve_srcs (files)
 

Variables

 ABSEIL_CMAKE_RULE_BEGIN = re.compile("^absl_cc_.*\(", re.MULTILINE)
 
 ABSEIL_CMAKE_RULE_END = re.compile("^\)", re.MULTILINE)
 
string ABSEIL_PATH = "third_party/abseil-cpp"
 
 CAPITAL_WORD = re.compile("[A-Z]+")
 
string OUTPUT_PATH = "src/abseil-cpp/preprocessed_builds.yaml"
 
 Rule
 

Function Documentation

◆ collect_bazel_rules()

def preprocessed_builds.collect_bazel_rules (   root_path)
Collects and returns all bazel rules from root path recursively.

Definition at line 85 of file preprocessed_builds.yaml.gen.py.

◆ collect_cmake_rules()

def preprocessed_builds.collect_cmake_rules (   root_path)
Collects and returns all cmake rules from root path recursively.

Definition at line 135 of file preprocessed_builds.yaml.gen.py.

◆ generate_builds()

def preprocessed_builds.generate_builds (   root_path)
Generates builds from all BUILD files under absl directory.

Definition at line 176 of file preprocessed_builds.yaml.gen.py.

◆ get_elem_value()

def preprocessed_builds.get_elem_value (   elem,
  name 
)
Returns the value of XML element with the given name.

Definition at line 35 of file preprocessed_builds.yaml.gen.py.

◆ main()

def preprocessed_builds.main ( )

Definition at line 203 of file preprocessed_builds.yaml.gen.py.

◆ normalize_paths()

def preprocessed_builds.normalize_paths (   paths)
Returns the list of normalized path.

Definition at line 50 of file preprocessed_builds.yaml.gen.py.

◆ pairing_bazel_and_cmake_rules()

def preprocessed_builds.pairing_bazel_and_cmake_rules (   bazel_rules,
  cmake_rules 
)
Returns a pair map between bazel rules and cmake rules based on
   the similarity of the file list in the rule. This is because
   cmake build and bazel build of abseil are not identical.

Definition at line 145 of file preprocessed_builds.yaml.gen.py.

◆ parse_bazel_rule()

def preprocessed_builds.parse_bazel_rule (   elem,
  package 
)
Returns a rule from bazel XML rule.

Definition at line 56 of file preprocessed_builds.yaml.gen.py.

◆ parse_cmake_rule()

def preprocessed_builds.parse_cmake_rule (   rule,
  package 
)
Returns a rule from absl cmake rule.
   Reference: https://github.com/abseil/abseil-cpp/blob/master/CMake/AbseilHelpers.cmake

Definition at line 95 of file preprocessed_builds.yaml.gen.py.

◆ read_bazel_build()

def preprocessed_builds.read_bazel_build (   package)
Runs bazel query on given package file and returns all cc rules.

Definition at line 70 of file preprocessed_builds.yaml.gen.py.

◆ read_cmake_build()

def preprocessed_builds.read_cmake_build (   build_path,
  package 
)
Parses given CMakeLists.txt file and returns all cc rules.

Definition at line 123 of file preprocessed_builds.yaml.gen.py.

◆ resolve_deps()

def preprocessed_builds.resolve_deps (   targets)

Definition at line 172 of file preprocessed_builds.yaml.gen.py.

◆ resolve_hdrs()

def preprocessed_builds.resolve_hdrs (   files)

Definition at line 164 of file preprocessed_builds.yaml.gen.py.

◆ resolve_srcs()

def preprocessed_builds.resolve_srcs (   files)

Definition at line 168 of file preprocessed_builds.yaml.gen.py.

Variable Documentation

◆ ABSEIL_CMAKE_RULE_BEGIN

preprocessed_builds.ABSEIL_CMAKE_RULE_BEGIN = re.compile("^absl_cc_.*\(", re.MULTILINE)

Definition at line 27 of file preprocessed_builds.yaml.gen.py.

◆ ABSEIL_CMAKE_RULE_END

preprocessed_builds.ABSEIL_CMAKE_RULE_END = re.compile("^\)", re.MULTILINE)

Definition at line 28 of file preprocessed_builds.yaml.gen.py.

◆ ABSEIL_PATH

string preprocessed_builds.ABSEIL_PATH = "third_party/abseil-cpp"

Definition at line 24 of file preprocessed_builds.yaml.gen.py.

◆ CAPITAL_WORD

preprocessed_builds.CAPITAL_WORD = re.compile("[A-Z]+")

Definition at line 26 of file preprocessed_builds.yaml.gen.py.

◆ OUTPUT_PATH

string preprocessed_builds.OUTPUT_PATH = "src/abseil-cpp/preprocessed_builds.yaml"

Definition at line 25 of file preprocessed_builds.yaml.gen.py.

◆ Rule

preprocessed_builds.Rule
Initial value:
1 = collections.namedtuple(
2  "Rule", "type name package srcs hdrs textual_hdrs deps visibility testonly")

Definition at line 31 of file preprocessed_builds.yaml.gen.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:41