MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / get_all_variations

Method get_all_variations

tools/system_libs.py:672–685  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 1

get_system_tasksFunction · 0.80

Calls 4

get_inheritance_treeMethod · 0.80
variationsMethod · 0.45
can_buildMethod · 0.45
get_base_nameMethod · 0.45

Tested by

no test coverage detected