Get all libraries suitable for the current invocation of emscripten. This returns a dictionary of simple names to Library objects.
(cls)
| 686 | |
| 687 | @classmethod |
| 688 | def get_usable_variations(cls): |
| 689 | """Get all libraries suitable for the current invocation of emscripten. |
| 690 | |
| 691 | This returns a dictionary of simple names to Library objects. |
| 692 | """ |
| 693 | if not hasattr(cls, 'usable_variations'): |
| 694 | cls.usable_variations = {} |
| 695 | for subclass in cls.get_inheritance_tree(): |
| 696 | if subclass.name: |
| 697 | library = subclass.get_default_variation() |
| 698 | if library.can_build() and library.can_use(): |
| 699 | cls.usable_variations[subclass.name] = library |
| 700 | return cls.usable_variations |
| 701 | |
| 702 | |
| 703 | class MTLibrary(Library): |
no test coverage detected