File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 4
4
import PackageDescription
5
5
import Foundation
6
6
7
- var cBindingsBase = " /Users/arik/Developer /ldk-c-bindings"
7
+ var cBindingsBase = " ../../.. /ldk-c-bindings"
8
8
if let bindingsBase = getenv ( " LDK_C_BINDINGS_BASE " ) {
9
9
cBindingsBase = String ( utf8String: bindingsBase) !
10
10
}
@@ -24,16 +24,22 @@ var linkerSettings: [PackageDescription.LinkerSetting] = [
24
24
linkerSettings. append ( . linkedLibrary( String ( utf8String: getenv ( " LLVM_CLANG_ASAN_PATH " ) !) !, . when( platforms: [ . linux] ) ) )
25
25
#else
26
26
linkerSettings = [
27
- . unsafeFlags( [ " -L \( cBindingsBase ) /lightning-c-bindings/target/debug " ] ) ,
27
+ . unsafeFlags( [ " -L \( bindingsDirectory ) " ] ) ,
28
28
. linkedLibrary( " ldk " )
29
29
]
30
30
#endif
31
31
32
32
let package = Package (
33
33
name: " LDKSwift " ,
34
+ // platforms: [
35
+ // // .macOS(.v11),
36
+ // // .macCatalyst(.v13),
37
+ // .iOS(.v14),
38
+ // ],
34
39
products: [
35
40
. library(
36
41
name: " LDKSwift " ,
42
+ // type: .dynamic,
37
43
targets: [ " LDKSwift " ] ) ,
38
44
] ,
39
45
dependencies: [
You can’t perform that action at this time.
0 commit comments