Get all the variations of libraries in the inheritance tree of the current library. Calling Library.get_all_variations() returns the variations of ALL libraries that can be built as a dictionary of variation names to Library objects.
(cls)
| 670 | |
| 671 | @classmethod |
| 672 | def get_all_variations(cls): |
| 673 | """Get all the variations of libraries in the inheritance tree of the current library. |
| 674 | |
| 675 | Calling Library.get_all_variations() returns the variations of ALL libraries |
| 676 | that can be built as a dictionary of variation names to Library objects. |
| 677 | """ |
| 678 | result = {} |
| 679 | for library in cls.get_inheritance_tree(): |
| 680 | if library.name: |
| 681 | for flags in library.variations(): |
| 682 | variation = library(**flags) |
| 683 | if variation.can_build(): |
| 684 | result[variation.get_base_name()] = variation |
| 685 | return result |
| 686 | |
| 687 | @classmethod |
| 688 | def get_usable_variations(cls): |
no test coverage detected