I like how simple protocol TargetConfiguration
is, and would love to see it working in action.
As for the original pitch, I strongly oppose any Xcode-specific additions to Package.swift
like XCConfig
pitched by the OP. Swift and SwiftPM already support too many Xcode-specifc and Apple-specific features, while neglecting support for other platforms. It would be very unfortunate if it moves even further in that direction.