// swift-tools-version:6.0 // mwb-mac — see README.md (D1, D2) for why these four targets exist and // what each may import. Target names are frozen (docs/features/bootstrap). import PackageDescription let package = Package( name: "mwb-mac", platforms: [.macOS(.v14)], products: [ .executable(name: "mwb", targets: ["mwb"]) ], targets: [ // Pure logic: protocol, crypto, matrix, settings. Foundation + CommonCrypto only. .target(name: "MWBCore"), // Sockets: Network.framework only. .target(name: "MWBNet", dependencies: ["MWBCore"]), // Platform: AppKit / CoreGraphics only. .target(name: "MWBMac", dependencies: ["MWBCore"]), // The app: the only place MWBNet and MWBMac meet. .executableTarget(name: "mwb", dependencies: ["MWBCore", "MWBNet", "MWBMac"]), ], swiftLanguageModes: [.v6] )