swift-libs/Package.swift

70 lines
1.4 KiB
Swift
Raw Normal View History

2023-04-15 00:45:32 +02:00
// swift-tools-version: 5.8
import PackageDescription
private var excludePlatforms: [String] = [.PlatformFolder.iOS]
#if os(iOS)
excludePlatforms = []
#endif
2023-04-15 00:45:32 +02:00
let package = Package(
name: "SwiftLibs",
products: [
.library(
name: "SwiftLibs",
targets: [
"Coordination",
"Core",
"Dependencies"
2023-04-15 00:45:32 +02:00
]
),
],
dependencies: [],
targets: [
.target(
name: "Coordination",
dependencies: [],
exclude: excludePlatforms
),
2023-04-15 00:45:32 +02:00
.target(
name: "Core",
dependencies: []
),
.target(
name: "Dependencies",
dependencies: []
),
.testTarget(
name: "CoordinationTests",
2023-04-15 00:45:32 +02:00
dependencies: [
"Coordination"
],
path: "Tests/Coordination",
exclude: excludePlatforms
2023-04-15 00:45:32 +02:00
),
.testTarget(
name: "CoreTests",
2023-04-15 00:45:32 +02:00
dependencies: [
"Core"
],
path: "Tests/Core"
2023-04-15 00:45:32 +02:00
),
.testTarget(
name: "DependenciesTests",
dependencies: [
"Dependencies"
],
path: "Tests/Dependencies"
),
2023-04-15 00:45:32 +02:00
]
)
// MARK: - String+Constants
private extension String {
enum PlatformFolder {
static let iOS = "Platform/iOS"
}
}