Skip to content

Commit

Permalink
Test spm.
Browse files Browse the repository at this point in the history
  • Loading branch information
BB9z committed Jul 6, 2024
1 parent 19d110e commit c3f71a2
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,14 @@ let package = Package(
.visionOS(.v1),
],
products: [
// Things get complicated when we change the libaray type from static to dynamic.
// A wrapper is required. https://stackoverflow.com/a/65255303
.library(name: "LAME", type: .dynamic, targets: ["LAME-Target"])
.library(name: "LAME", targets: ["LAME"])
],
dependencies: [],
targets: [
.target(
name: "LAME-Target",
dependencies: ["LAME-Prebuild"],
path: "SwiftPM"
),
// .binaryTarget(
// name: "LAME-Prebuild",
// path: "macosx/LAME.xcframework"
// ),
.binaryTarget(
name: "LAME-Prebuild",
url: "https://github.com/BB9z/LAME-xcframework/releases/download/3.100.1/LAME.xcframework.zip",
checksum: "cc45eb59d17ec4c38f75bb054d01faca3aaefeeaee544ca0c7a07e6820898c0f"
name: "LAME",
url: "https://github.com/BB9z/LAME-xcframework/releases/download/untagged-759998df2384bcc1f23f/LAME.xcframework.zip",
checksum: "9bdd91e42a8b9093beb4fb6428671a687785a0c5886a32df4efb002281a81cde"
)
]
)

0 comments on commit c3f71a2

Please sign in to comment.