-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from sersoft-gmbh/spm_support
Add Swift Package Manager support
- Loading branch information
Showing
29 changed files
with
499 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,8 @@ DerivedData | |
# Carthage/Checkouts | ||
|
||
Carthage/Build | ||
|
||
# Swift Package Manager | ||
.build/ | ||
.swiftpm/ | ||
Packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.1 | ||
5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import XCTest | ||
|
||
import ZipTests | ||
|
||
var tests = [XCTestCaseEntry]() | ||
tests += ZipTests.__allTests() | ||
|
||
XCTMain(tests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// swift-tools-version:5.1 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Zip", | ||
products: [ | ||
.library(name: "Zip", targets: ["Zip"]) | ||
], | ||
targets: [ | ||
.target( | ||
name: "Minizip", | ||
dependencies: [], | ||
path: "Zip/minizip", | ||
exclude: ["module"], | ||
linkerSettings: [ | ||
.linkedLibrary("z") | ||
]), | ||
.target( | ||
name: "Zip", | ||
dependencies: ["Minizip"], | ||
path: "Zip", | ||
exclude: ["minizip", "zlib"]), | ||
.testTarget( | ||
name: "ZipTests", | ||
dependencies: ["Zip"], | ||
path: "ZipTests"), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// swift-tools-version:4.2 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Zip", | ||
products: [ | ||
.library(name: "Zip", targets: ["Zip"]) | ||
], | ||
targets: [ | ||
.systemLibrary( | ||
name: "CZlib", | ||
path: "Zip/zlib", | ||
pkgConfig: "zlib"), | ||
.target( | ||
name: "Minizip", | ||
dependencies: ["CZlib"], | ||
path: "Zip/minizip", | ||
exclude: ["module"]), | ||
.target( | ||
name: "Zip", | ||
dependencies: ["Minizip"], | ||
path: "Zip", | ||
exclude: ["minizip", "zlib"]), | ||
.testTarget( | ||
name: "ZipTests", | ||
dependencies: ["Zip"], | ||
path: "ZipTests"), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// swift-tools-version:5.0 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Zip", | ||
products: [ | ||
.library(name: "Zip", targets: ["Zip"]) | ||
], | ||
targets: [ | ||
.target( | ||
name: "Minizip", | ||
dependencies: [], | ||
path: "Zip/minizip", | ||
exclude: ["module"], | ||
linkerSettings: [ | ||
.linkedLibrary("z") | ||
]), | ||
.target( | ||
name: "Zip", | ||
dependencies: ["Minizip"], | ||
path: "Zip", | ||
exclude: ["minizip", "zlib"]), | ||
.testTarget( | ||
name: "ZipTests", | ||
dependencies: ["Zip"], | ||
path: "ZipTests"), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.