librariesresolver

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputePriority

func ComputePriority(lib *libraries.Library, header, arch string) int

ComputePriority returns an integer value representing the priority of the library for the specified header and architecture. The higher the value, the higher the priority.

Types

type Cpp

type Cpp struct {
	// contains filtered or unexported fields
}

Cpp finds libraries made for the C++ language

func NewCppResolver

func NewCppResolver(allLibs []*libraries.Library, targetPlatform, actualPlatform *cores.PlatformRelease) *Cpp

NewCppResolver creates a new Cpp resolver

func (*Cpp) AlternativesFor

func (resolver *Cpp) AlternativesFor(header string) libraries.List

AlternativesFor returns all the libraries that provides the specified header

func (*Cpp) ResolveFor

func (resolver *Cpp) ResolveFor(header, architecture string) *libraries.Library

ResolveFor finds the most suitable library for the specified combination of header and architecture. If no libraries provides the requested header, nil is returned

func (*Cpp) ScanIDEBuiltinLibraries

func (resolver *Cpp) ScanIDEBuiltinLibraries(allLibs []*libraries.Library)

ScanIDEBuiltinLibraries reads ide-builtin librariers loaded in the LibrariesManager to find and cache all C++ headers for later retrieval.

func (*Cpp) ScanLibrary

func (resolver *Cpp) ScanLibrary(lib *libraries.Library) error

ScanLibrary reads a library to find and cache C++ headers for later retrieval

func (*Cpp) ScanPlatformLibraries

func (resolver *Cpp) ScanPlatformLibraries(allLibs []*libraries.Library, platform *cores.PlatformRelease)

ScanPlatformLibraries reads platform-bundled libraries for a specific platform loaded in the LibrariesManager to find and cache all C++ headers for later retrieval.

func (*Cpp) ScanUserAndUnmanagedLibraries

func (resolver *Cpp) ScanUserAndUnmanagedLibraries(allLibs []*libraries.Library)

ScanUserAndUnmanagedLibraries reads user/unmanaged librariers loaded in the LibrariesManager to find and cache all C++ headers for later retrieval.