Русский (Russian)
Appearance
STRUCT
SourceFileGlob
Contents
glob
excluding
compilerFlags
codeGen
compilationCondition
type
glob(_:excluding:compilerFlags:codeGen:compilationCondition:)
glob(_:excluding:compilerFlags:codeGen:compilationCondition:)
generated(_:compilerFlags:codeGen:compilationCondition:)
public struct SourceFileGlob: Codable, Equatable, Sendable
A glob pattern configuration representing source files and its compiler flags, if any.
glob
public var glob: Path
Glob pattern to the source files.
excluding
public var excluding: [Path]
Glob patterns for source files that will be excluded.
compilerFlags
public var compilerFlags: String?
The compiler flags to be set to the source files in the sources build phase.
codeGen
public var codeGen: FileCodeGen?
The source file attribute to be set in the build phase.
compilationCondition
public var compilationCondition: PlatformCondition?
Source file condition for compilation
type
public var type: FileType
Type of the file.
glob(_:excluding:compilerFlags:codeGen:compilationCondition:)
public static func glob(
_ glob: Path,
excluding: [Path] = [],
compilerFlags: String? = nil,
codeGen: FileCodeGen? = nil,
compilationCondition: PlatformCondition? = nil
) -> Self
Returns a source glob pattern configuration. Used for file there were already present during the generation.
Name | Description |
---|---|
glob | Glob pattern to the source files. |
excluding | Glob patterns for source files that will be excluded. |
compilerFlags | The compiler flags to be set to the source files in the sources build phase. |
codeGen | The source file attribute to be set in the build phase. |
compilationCondition | Condition for file compilation. |
glob(_:excluding:compilerFlags:codeGen:compilationCondition:)
public static func glob(
_ glob: Path,
excluding: Path?,
compilerFlags: String? = nil,
codeGen: FileCodeGen? = nil,
compilationCondition: PlatformCondition? = nil
) -> Self
generated(_:compilerFlags:codeGen:compilationCondition:)
public static func generated(
_ path: Path,
compilerFlags: String? = nil,
codeGen: FileCodeGen? = nil,
compilationCondition: PlatformCondition? = nil
) -> Self
Returns a source generated source file configuration, for a single generated file.
Name | Description |
---|---|
path | Path to the generated file. Assumed to be a specific path (as oppose to a glob pattern). |
compilerFlags | The compiler flags to be set to the source files in the sources build phase. |
codeGen | The source file attribute to be set in the build phase. |
compilationCondition | Condition for file compilation. |