-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Swift Package Manager support (#150)
* Add Swift Package Manager support * Added test cases to Package.swift * Update Down.podspec to reflect change to modulemap * Updated module map location in Xcode project file
- Loading branch information
1 parent
80d8b2d
commit d94b270
Showing
5 changed files
with
48 additions
and
4 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Pods/ | ||
.build/ | ||
.DS_Store | ||
xcuserdata | ||
|
||
|
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
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,35 @@ | ||
// swift-tools-version:5.0 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Down", | ||
platforms: [ | ||
.macOS("10.11"), | ||
.iOS("9.0"), | ||
.tvOS("9.0"), | ||
.watchOS("2.0"), | ||
], | ||
products: [ | ||
.library( | ||
name: "Down", | ||
targets: ["Down"]), | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "libcmark", | ||
dependencies: [], | ||
path: "Source/cmark"), | ||
.target( | ||
name: "Down", | ||
dependencies: ["libcmark"], | ||
path: "Source/", | ||
exclude: ["cmark", "Down.h"]), | ||
.testTarget( | ||
name: "DownTests", | ||
dependencies: ["Down"], | ||
path: "Tests/", | ||
exclude: ["Fixtures", "DownViewTests.swift"]), | ||
] | ||
) |
2 changes: 1 addition & 1 deletion
2
Source/cmark/module.modulemap → Source/cmark/include/module.modulemap
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,4 +1,4 @@ | ||
module libcmark [system][extern_c] { | ||
header "node.h" | ||
header "../node.h" | ||
export * | ||
} |