Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Commit 98ed5fc

Browse files
committed
Updated for Swift 5
1 parent c9eb4fa commit 98ed5fc

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ Xcode/SwiftFoundation.xcodeproj/xcuserdata
1515
Xcode/SwiftFoundation.xcodeproj/project.xcworkspace/xcuserdata
1616

1717
.DS_Store
18+
19+
.swiftpm

Package.pins

Lines changed: 0 additions & 18 deletions
This file was deleted.

Package.swift

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1+
// swift-tools-version:5.1
12
import PackageDescription
23

4+
let libraryType: PackageDescription.Product.Library.LibraryType
5+
#if os(Linux)
6+
libraryType = .dynamic
7+
#else
8+
libraryType = .static
9+
#endif
10+
311
let package = Package(
412
name: "SwiftFoundation",
5-
dependencies: [
6-
.Package(url: "https://github.com/PureSwift/CStatfs.git", majorVersion: 1),
7-
.Package(url: "https://github.com/PureSwift/CJSONC.git", majorVersion: 1)
13+
products: [
14+
.library(
15+
name: "SwiftFoundation",
16+
type: libraryType,
17+
targets: ["SwiftFoundation"]
18+
)
819
],
9-
exclude: ["Xcode", "Carthage"]
20+
targets: [
21+
.target(name: "SwiftFoundation"),
22+
.testTarget(name: "SwiftFoundationTests", dependencies: ["SwiftFoundation"])
23+
]
1024
)

0 commit comments

Comments
 (0)