Skip to content

Commit

Permalink
Try fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
BB9z committed Jul 5, 2024
1 parent 1188e9e commit 82596e3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,23 @@ let package = Package(
.visionOS(.v1),
],
products: [
.library(name: "LAME", targets: ["LAME"])
// 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"])
],
dependencies: [],
targets: [
.target(
name: "LAME-Target",
dependencies: ["LAME-Prebuild"],
path: "SwiftPM"
),
// .binaryTarget(
// name: "LAME",
// name: "LAME-Prebuild",
// path: "macosx/LAME.xcframework"
// ),
.binaryTarget(
name: "LAME",
name: "LAME-Prebuild",
url: "https://github.com/BB9z/LAME-xcframework/releases/download/3.100.1/LAME.xcframework.zip",
checksum: "cc45eb59d17ec4c38f75bb054d01faca3aaefeeaee544ca0c7a07e6820898c0f"
)
Expand Down
8 changes: 8 additions & 0 deletions SwiftPM/dummy.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// dummy.c
//
//
// Created by BB9z on 2024/7/5.
//

#include "dummy.h"
8 changes: 8 additions & 0 deletions SwiftPM/include/dummy.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// dummy.h
//
//
// Created by BB9z on 2024/7/5.
//

// Prevent a missing umbrella header warning.

0 comments on commit 82596e3

Please sign in to comment.