1 // swift-tools-version:5.3
2 // The swift-tools-version declares the minimum version of Swift required to build this package.
4 import PackageDescription
12 targets: ["LDKSwift"]),
15 .package(path: "../LDKCHeaders"),
18 // Targets are the basic building blocks of a package. A target can define a module or a test suite.
19 // Targets can depend on other targets in this package, and on products in packages this package depends on.
22 dependencies: ["LDKCHeaders"],
24 .linkedLibrary(String(utf8String: getenv("LDK_C_BINDINGS_BASE")!)! + "/lightning-c-bindings/target/debug/libldk.a"),
25 .linkedLibrary(String(utf8String: getenv("LDK_C_BINDINGS_BASE")!)! + "/lightning-c-bindings/ldk_net.o"),
26 .linkedLibrary("/usr/lib/llvm-11/lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a")
29 name: "LDKSwiftTests",
30 dependencies: ["LDKSwift"]),