PackageLoading
import PackageLoadingModule information
- Declarations
- 241
- Symbols
- 256
import PackageLoadinglet moduleMapFilename: StringName of the module map file recognized by the Clang and Swift compilers.
func allowlist(pcFile: String, flags: (cFlags: [String], libs: [String])) throws -> (cFlags: [String], libs: [String], disallowed: [String]) Filters the flags with allowed arguments so unexpected arguments are not passed to compiler/linker. List of allowed flags: cFlags: -I, -F libs: -L, -l, -F, -framework, -w
func patchSDKPaths(in flags: [String], to sdkRootPath: AbsolutePath) throws -> [String] Replaces any path containing *.sdk with the current SDK to avoid conflicts.
func pkgConfigArgs(for target: SystemLibraryModule, pkgConfigDirectories: [AbsolutePath], sdkRootPath: AbsolutePath? = nil, brewPrefix: AbsolutePath? = .none, fileSystem: any FileSystem, observabilityScope: ObservabilityScope) throws -> [PkgConfigResult] Get pkgConfig result for a system library target.
func removeDefaultFlags(cFlags: [String], libs: [String]) throws -> ([String], [String]) Remove the default flags which are already added by the compiler.
protocol ManifestLoaderDelegateprotocol ManifestLoaderProtocolProtocol for the manifest loader interface.
protocol ManifestSourceControlValidatorstruct BinaryArtifactA structure representing the remote artifact information necessary to construct the package.
struct FileRuleDescriptionDescribes a rule for including a source or resource file in a target.
enum GeneratedModuleMapTypeA type of module map to generate.
final class ManifestLoaderUtility class for loading manifest files.
enum ManifestParseErrorenum ManifestSignatureParserstruct ManifestValidatorenum ModuleErrorAn error in the structure or layout of a package.
struct ModuleMapGeneratorA module map generator for Clang targets. Module map generation consists of two steps:
final class PackageBuilderHelper for constructing a package following the convention system.
struct PkgConfigInformation on an individual pkg-config supported package.
struct PkgConfigResultWrapper struct containing result of a pkgConfig query.
enum Platformstruct PrebuiltLibraryA structure representing a prebuilt library to be used instead of a source dependency
enum RegistryReleaseMetadataStoragestruct TargetSourcesBuilderA utility to compute the source/resource files of a target.
struct ToolsVersionParserProtocol for the manifest loader interface.
import Basicsimport Buildimport CompilerPluginSupportimport DriverSupportimport LLBuildManifestimport PackageCollectionsimport PackageCollectionsModelimport PackageCollectionsSigningimport PackageDescriptionCreate reusable code, organize it in a lightweight way, and share it across your projects and with other developers.
import PackageFingerprintimport PackageGraphimport PackageMetadataimport PackageModelimport PackageModelSyntaximport PackagePluginimport PackageRegistryimport PackageSigningimport SPMBuildCoreimport SPMLLBuildimport SPMSQLite3import SourceControlimport SourceKitLSPAPIimport Workspaceimport XCBuildSupportimport _AsyncFileSystem