Português (Portuguese)
Appearance
Português (Portuguese)
Appearance
STRUCT
SourceFileGlob Contents
globexcludingcompilerFlagscodeGencompilationConditiontypeglob(_:excluding:compilerFlags:codeGen:compilationCondition:)glob(_:excluding:compilerFlags:codeGen:compilationCondition:)generated(_:compilerFlags:codeGen:compilationCondition:)public struct SourceFileGlob: Codable, Equatable, SendableA glob pattern configuration representing source files and its compiler flags, if any.
glob public var glob: PathGlob 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: FileTypeType 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
) -> SelfReturns 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
) -> Selfgenerated(_:compilerFlags:codeGen:compilationCondition:) public static func generated(
_ path: Path,
compilerFlags: String? = nil,
codeGen: FileCodeGen? = nil,
compilationCondition: PlatformCondition? = nil
) -> SelfReturns 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. |