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

Commit

Permalink
Updated for Swift 5
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Jun 4, 2020
1 parent c9eb4fa commit 98ed5fc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ Xcode/SwiftFoundation.xcodeproj/xcuserdata
Xcode/SwiftFoundation.xcodeproj/project.xcworkspace/xcuserdata

.DS_Store

.swiftpm
18 changes: 0 additions & 18 deletions Package.pins

This file was deleted.

22 changes: 18 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
// swift-tools-version:5.1
import PackageDescription

let libraryType: PackageDescription.Product.Library.LibraryType
#if os(Linux)
libraryType = .dynamic
#else
libraryType = .static
#endif

let package = Package(
name: "SwiftFoundation",
dependencies: [
.Package(url: "https://github.com/PureSwift/CStatfs.git", majorVersion: 1),
.Package(url: "https://github.com/PureSwift/CJSONC.git", majorVersion: 1)
products: [
.library(
name: "SwiftFoundation",
type: libraryType,
targets: ["SwiftFoundation"]
)
],
exclude: ["Xcode", "Carthage"]
targets: [
.target(name: "SwiftFoundation"),
.testTarget(name: "SwiftFoundationTests", dependencies: ["SwiftFoundation"])
]
)

0 comments on commit 98ed5fc

Please sign in to comment.