// swift-tools-version: 5.9
import PackageDescription

let package = Package(
    name: "apple-bridge",
    platforms: [
        .macOS(.v14)
    ],
    dependencies: [
        .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.7.1")
    ],
    targets: [
        .executableTarget(
            name: "apple-bridge",
            dependencies: [
                .product(name: "ArgumentParser", package: "swift-argument-parser")
            ],
            path: "Sources/AppleBridge",
            exclude: ["Info.plist"],
            linkerSettings: [
                .linkedFramework("EventKit"),
                .linkedFramework("Foundation"),
                .linkedFramework("PDFKit"),
                .linkedFramework("Vision")
            ]
        )
    ]
)
