fixed SPM support

This commit is contained in:
Michele Balistreri 2024-09-18 11:03:53 +02:00
parent 986819aa6d
commit 28d7d91b6d
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
1 changed files with 9 additions and 3 deletions

View File

@ -8,7 +8,7 @@ let package = Package(
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "secp256k1",
targets: ["secp256k1"]),
targets: ["secp256k1Swift", "secp256k1C"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
@ -18,9 +18,10 @@ let package = Package(
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "secp256k1",
name: "secp256k1C",
path: "./secp256k1/Classes",
exclude: [
"secp256k1.swift",
"secp256k1/build-aux",
"secp256k1/obj",
"secp256k1/sage",
@ -56,6 +57,11 @@ let package = Package(
.headerSearchPath("secp256k1"),
.headerSearchPath("secp256k1/src"),
.headerSearchPath(".")
])
]),
.target(
name: "secp256k1Swift",
path: "./secp256k1/Classes",
sources: ["secp256k1.swift"]
)
]
)