Skip to content

Commit

Permalink
Add a libunxip target
Browse files Browse the repository at this point in the history
  • Loading branch information
saagarjha committed Oct 27, 2023
1 parent 0a9b977 commit b7ed21a
Show file tree
Hide file tree
Showing 3 changed files with 725 additions and 493 deletions.
10 changes: 8 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ let package = Package(
.macOS(.v11), .iOS(.v14), .watchOS(.v7),
],
products: [
.executable(name: "unxip", targets: ["unxip"])
.executable(name: "unxip", targets: ["unxip"]),
.library(name: "libunxip", targets: ["libunxip"]),
],
targets: [
.executableTarget(
Expand All @@ -53,6 +54,11 @@ let package = Package(
"Makefile",
],
sources: ["unxip.swift"]
)
),
.target(
name: "libunxip",
dependencies: dependencies,
swiftSettings: [.define("LIBUNXIP")]
),
] + systemLibraries
)
1 change: 1 addition & 0 deletions Sources/libunxip/libunxip.swift
Loading

0 comments on commit b7ed21a

Please sign in to comment.