(srcs_graph, srcs_sve, srcs_sve2, _srcs_core)
| 118 | # SOFTWARE.""" |
| 119 | |
| 120 | def 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 | |
| 128 | filegroup( |
| 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 | |
| 137 | filegroup( |
| 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 | |
| 146 | filegroup( |
| 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 | |
| 155 | filegroup( |
| 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 | |
| 168 | def build_from_template_cmake(srcs_graph, srcs_sve, srcs_sve2, srcs_core, srcs_core_fp16): |
no test coverage detected