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

Function build_from_template_cmake

scripts/generate_build_files.py:168–203  ·  view source on GitHub ↗
(srcs_graph, srcs_sve, srcs_sve2, srcs_core, srcs_core_fp16)

Source from the content-addressed store, hash-verified

166
167
168def build_from_template_cmake(srcs_graph, srcs_sve, srcs_sve2, srcs_core, srcs_core_fp16):
169
170 line_separator = '\n\t'
171
172 template = f"""{get_template_header()}
173
174target_sources(
175 arm_compute_graph
176 PRIVATE
177 {line_separator.join(srcs_graph)}
178)
179
180target_sources(
181 arm_compute_sve
182 PRIVATE
183 {line_separator.join(srcs_sve)}
184)
185
186target_sources(
187 arm_compute_sve2
188 PRIVATE
189 {line_separator.join(srcs_sve2)}
190)
191
192target_sources(
193 arm_compute_core
194 PRIVATE
195 {line_separator.join(srcs_core)}
196)
197
198target_sources(
199 arm_compute_core_fp16
200 PRIVATE
201 {line_separator.join(srcs_core_fp16)}
202)"""
203 return template
204
205
206def gather_sources():

Callers 1

Calls 1

get_template_headerFunction · 0.85

Tested by

no test coverage detected