MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / build_from_template_bazel

Function build_from_template_bazel

scripts/generate_build_files.py:120–165  ·  view source on GitHub ↗
(srcs_graph, srcs_sve, srcs_sve2, _srcs_core)

Source from the content-addressed store, hash-verified

118# SOFTWARE."""
119
120def build_from_template_bazel(srcs_graph, srcs_sve, srcs_sve2, _srcs_core):
121 # Bazel does not support targets referencing upper-levels.
122 srcs_core = [path for path in _srcs_core if not path.startswith("../")]
123
124 line_separator = '",\n\t"'
125
126 template = f"""{get_template_header()}
127
128filegroup(
129 name = "arm_compute_graph_srcs",
130 srcs = ["{line_separator.join(srcs_graph)}"] +
131 glob(["**/*.h",
132 "**/*.hpp",
133 "**/*.inl"]),
134 visibility = ["//visibility:public"]
135)
136
137filegroup(
138 name = "arm_compute_sve2_srcs",
139 srcs = ["{line_separator.join(srcs_sve2)}"] +
140 glob(["**/*.h",
141 "**/*.hpp",
142 "**/*.inl"]),
143 visibility = ["//visibility:public"]
144)
145
146filegroup(
147 name = "arm_compute_sve_srcs",
148 srcs = ["{line_separator.join(srcs_sve)}"] +
149 glob(["**/*.h",
150 "**/*.hpp",
151 "**/*.inl"]),
152 visibility = ["//visibility:public"]
153)
154
155filegroup(
156 name = "arm_compute_srcs",
157 srcs = ["{line_separator.join(srcs_core)}"] +
158 glob(["**/*.h",
159 "**/*.hpp",
160 "**/*.inl"]),
161 visibility = ["//visibility:public"]
162)
163"""
164
165 return template
166
167
168def build_from_template_cmake(srcs_graph, srcs_sve, srcs_sve2, srcs_core, srcs_core_fp16):

Callers 1

Calls 1

get_template_headerFunction · 0.85

Tested by

no test coverage detected