forked from sushichop/Puppy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
31 lines (28 loc) · 1006 Bytes
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// swift-tools-version:5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Puppy",
platforms: [
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6),
],
products: [
.library(name: "Puppy", targets: ["Puppy"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git", .upToNextMinor(from: "1.5.2")),
],
targets: [
.target(name: "CPuppy",
exclude: ["CMakeLists.txt"]),
.target(name: "Puppy", dependencies: [.product(name: "Logging", package: "swift-log")],
exclude: ["CMakeLists.txt"]),
.testTarget(name: "PuppyTests", dependencies: ["Puppy"]),
],
swiftLanguageVersions: [.v5]
)
if let puppy = package.targets.first(where: { $0.name == "Puppy" }) {
puppy.dependencies.append(
.target(name: "CPuppy", condition: .when(platforms: [.linux]))
)
}