Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Sources/XcodeGraph/Models/BuildableFolderException.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,27 @@ public struct BuildableFolderException: Sendable, Codable, Equatable, Hashable {
/// The list of private headers.
public var privateHeaders: [AbsolutePath]

/// A dictionary mapping files (referenced by their absolute path) to the platform condition to apply.
public var platformFilters: [AbsolutePath: PlatformCondition]

/// Creates a new exception for a buildable folder.
/// - Parameters:
/// - excluded: An array of absolute paths to files that should be excluded from the buildable folder.
/// - compilerFlags: A dictionary mapping absolute file paths to specific compiler flags to apply to those files.
/// - publicHeaders: The list of public headers.
/// - privateHeaders: The list of private headers.
/// - platformFilters: A dictionary mapping absolute file paths to platform conditions.
public init(
excluded: [AbsolutePath],
compilerFlags: [AbsolutePath: String],
publicHeaders: [AbsolutePath],
privateHeaders: [AbsolutePath]
privateHeaders: [AbsolutePath],
platformFilters: [AbsolutePath: PlatformCondition] = [:]
) {
self.excluded = excluded
self.compilerFlags = compilerFlags
self.publicHeaders = publicHeaders
self.privateHeaders = privateHeaders
self.platformFilters = platformFilters
}
}
Loading