Assemble flags from flag list Parameters ---------- in_flags : None or sequence None corresponds to empty list. Sequence elements can be strings or callables that return lists of strings. Callable takes `self` as single parameter.
(self, in_flags)
| 186 | self.build_a_library(build_info, lib_name, libraries) |
| 187 | |
| 188 | def assemble_flags(self, in_flags): |
| 189 | """ Assemble flags from flag list |
| 190 | |
| 191 | Parameters |
| 192 | ---------- |
| 193 | in_flags : None or sequence |
| 194 | None corresponds to empty list. Sequence elements can be strings |
| 195 | or callables that return lists of strings. Callable takes `self` as |
| 196 | single parameter. |
| 197 | |
| 198 | Returns |
| 199 | ------- |
| 200 | out_flags : list |
| 201 | """ |
| 202 | if in_flags is None: |
| 203 | return [] |
| 204 | out_flags = [] |
| 205 | for in_flag in in_flags: |
| 206 | if callable(in_flag): |
| 207 | out_flags += in_flag(self) |
| 208 | else: |
| 209 | out_flags.append(in_flag) |
| 210 | return out_flags |
| 211 | |
| 212 | def build_a_library(self, build_info, lib_name, libraries): |
| 213 | # default compilers |