Skip to content

Commit

Permalink
Use .systemLibrary construct, if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
David Young committed Oct 31, 2023
1 parent dc7aa99 commit 5ae79b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Package@swift-5.6.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,16 @@ let package = Package(
.package(url: "https://github.com/youngde811/CLibpl.git", from: "0.1.2"),
],
targets: [
.systemLibrary(
name: "CLibpl",
providers: [.dpkg("libpl_1.0-1_x86_64.deb")]
),
.target(
name: "TaskSupport",
dependencies: [
.product(name: "CLibpl", package: "CLibpl", condition: .when(platforms: [.linux]))]
.target(name: "CLibpl", condition: .when(platforms: [.linux]))
// .product(name: "CLibpl", package: "CLibpl", condition: .when(platforms: [.linux]))
]
),
.target(name: "OpenTelemetryApi", dependencies: ["TaskSupport"]),
.target(name: "OpenTelemetrySdk",
Expand Down
7 changes: 6 additions & 1 deletion Package@swift-5.9.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ let package = Package(
.package(url: "https://github.com/youngde811/CLibpl.git", from: "0.1.2"),
],
targets: [
.systemLibrary(
name: "CLibpl",
providers: [.dpkg("libpl_1.0-1_x86_64.deb")]
),
.target(
name: "TaskSupport",
dependencies: [
.product(name: "CLibpl", package: "CLibpl", condition: .when(platforms: [.linux]))
.target(name: "CLibpl", condition: .when(platforms: [.linux]))
// .product(name: "CLibpl", package: "CLibpl", condition: .when(platforms: [.linux]))
]
),
.target(name: "OpenTelemetryApi", dependencies: ["TaskSupport"]),
Expand Down

0 comments on commit 5ae79b4

Please sign in to comment.