FileRuleDescription
Describes a rule for including a source or resource file in a target.
TargetSourcesBuilder.swift:566struct FileRuleDescription
Citizens in PackageLoading
Conformances
Types
enum Rule
A rule semantically describes a file/directory in a target.
Type members
init(rule: Rule, toolsVersion: ToolsVersion, fileTypes: Set<String>
) static let asm: FileRuleDescription
The rule for compiling asm files.
static let assetCatalog: FileRuleDescription
File types related to the asset catalog.
static let builtinRules: [FileRuleDescription]
List of all the builtin rules.
static let clang: FileRuleDescription
The clang compiler rule.
static let coredata: FileRuleDescription
File types related to the CoreData.
static let docc: FileRuleDescription
File rule to ignore .docc (in the SwiftPM build system).
static let header: FileRuleDescription
The rule for detecting header files.
static let metal: FileRuleDescription
File types related to Metal.
static let modulemap: FileRuleDescription
The rule for detecting modulemap files.
static var opaqueDirectoriesExtensions: Set<String>
List of file directory extensions that should be treated as opaque, non source, directories.
static let stringCatalog: FileRuleDescription
File types related to the string catalog.
static let swift: FileRuleDescription
The swift compiler rule.
static let swiftpmFileTypes: [FileRuleDescription]
List of file types that apply just to the SwiftPM build system.
static let xcbuildFileTypes: [FileRuleDescription]
List of file types that requires the Xcode build system.
static let xcprivacyCopied: FileRuleDescription
File rule to copy
.xcprivacy
(in the Xcode build system).static let xcprivacyIgnored: FileRuleDescription
File rule to ignore
.xcprivacy
(in the SwiftPM build system).static let xib: FileRuleDescription
File types related to the interface builder and storyboards.
Instance members
let fileTypes: Set<String>
The list of file extensions support by this rule.
let rule: Rule
The rule associated with this description.
let toolsVersion: ToolsVersion
The tools version supported by this rule.
func match(path: AbsolutePath, toolsVersion: ToolsVersion
) -> Bool Match the given path to the rule.