Skip to content

Commit c8b917d

Browse files
committed
Create relative path for default c bindings base in Package.swift
1 parent 298cd6b commit c8b917d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ci/LDKSwift/Package.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import PackageDescription
55
import Foundation
66

7-
var cBindingsBase = "/Users/arik/Developer/ldk-c-bindings"
7+
var cBindingsBase = "../../../ldk-c-bindings"
88
if let bindingsBase = getenv("LDK_C_BINDINGS_BASE") {
99
cBindingsBase = String(utf8String: bindingsBase)!
1010
}
@@ -24,16 +24,22 @@ var linkerSettings: [PackageDescription.LinkerSetting] = [
2424
linkerSettings.append(.linkedLibrary(String(utf8String: getenv("LLVM_CLANG_ASAN_PATH")!)!, .when(platforms: [.linux])))
2525
#else
2626
linkerSettings = [
27-
.unsafeFlags(["-L\(cBindingsBase)/lightning-c-bindings/target/debug"]),
27+
.unsafeFlags(["-L\(bindingsDirectory)"]),
2828
.linkedLibrary("ldk")
2929
]
3030
#endif
3131

3232
let package = Package(
3333
name: "LDKSwift",
34+
// platforms: [
35+
// // .macOS(.v11),
36+
// // .macCatalyst(.v13),
37+
// .iOS(.v14),
38+
// ],
3439
products: [
3540
.library(
3641
name: "LDKSwift",
42+
// type: .dynamic,
3743
targets: ["LDKSwift"]),
3844
],
3945
dependencies: [

0 commit comments

Comments
 (0)