(self, only=None, exclusions=None)
Replaces references to libraries with full paths to their static
        versions if the static version is to be found on the library path.
Replaces references to libraries with full paths to their static
        versions if the static version is to be found on the library path.
Replaces references to libraries with full paths to their static versions if the static version is to be found on the library path .
def replace_static_libraries(self, only=None, exclusions=None):
        """Replaces references to libraries with full paths to their static
        versions if the static version is to be found on the library path."""
        if exclusions is None:
            exclusions = []

        for library_name in set(self.libraries) - set(exclusions):
            if only is not None and library_name not in only:
                continue

            static_lib = find_static_library(library_name, self.library_dirs)
            if static_lib:
                print(f"Found {library_name} as static library in {static_lib}.")
                self.libraries.remove(library_name)
                self.extra_objects.append(static_lib)
            else:
                print(f"Warning: could not find static library of {library_name}.")
def replace_static_libraries ( self , only = None , exclusions = None ) : if exclusions is None : exclusions = [ ] for library_name in set ( self . libraries ) - set ( exclusions ) : if only is not None and library_name not in only : continue static_lib = find_static_library ( library_name , self . library_dirs ) if static_lib : print ( f"Found {library_name} as static library in {static_lib}." ) self . libraries . remove ( library_name ) self . extra_objects . append ( static_lib ) else : print ( f"Warning: could not find static library of {library_name}." )