Return the full path of the library depending on the architecture. Per default, the build library path it will be returned, unless `get_libraries` has been called with kwarg `in_context` set to True. .. note:: this method should be used for library recipes only
(self, arch_name, in_context=False)
| 680 | return all(map(lambda lib: self.ctx.has_lib(arch.arch, lib), libs)) |
| 681 | |
| 682 | def get_libraries(self, arch_name, in_context=False): |
| 683 | """Return the full path of the library depending on the architecture. |
| 684 | Per default, the build library path it will be returned, unless |
| 685 | `get_libraries` has been called with kwarg `in_context` set to |
| 686 | True. |
| 687 | |
| 688 | .. note:: this method should be used for library recipes only |
| 689 | """ |
| 690 | recipe_libs = set() |
| 691 | if not self.built_libraries: |
| 692 | return recipe_libs |
| 693 | for lib, rel_path in self.built_libraries.items(): |
| 694 | if not in_context: |
| 695 | abs_path = join(self.get_build_dir(arch_name), rel_path, lib) |
| 696 | if rel_path in {".", "", None}: |
| 697 | abs_path = join(self.get_build_dir(arch_name), lib) |
| 698 | else: |
| 699 | abs_path = join(self.ctx.get_libs_dir(arch_name), lib) |
| 700 | recipe_libs.add(abs_path) |
| 701 | return recipe_libs |
| 702 | |
| 703 | @classmethod |
| 704 | def recipe_dirs(cls, ctx): |
no test coverage detected