added modulemap

This commit is contained in:
Dmitry Bespalov 2019-09-03 09:16:13 +02:00
parent 1d719f914a
commit 43bb7f4e4c
3 changed files with 11 additions and 5 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
# Xcode
build/
.build/
*.pbxuser
!default.pbxuser
*.mode1v3

View File

@ -40,23 +40,22 @@ let package = Package(
"secp256k1/src/bench.h",
"secp256k1/src/modules/ecdh/tests_impl.h",
"secp256k1/src/modules/recovery/tests_impl.h",
"secp256k1/contrib",
"exporter"
],
sources: [
".",
"secp256k1/src",
"secp256k1/include",
"secp256k1/contrib",
"secp256k1/modules/ecdh",
"secp256k1/modules/recovery"
],
publicHeadersPath: "secp256k1/include",
cSettings: [
.define("HAVE_CONFIG_H"),
.headerSearchPath("./secp256k1/Classes/secp256k1"),
.headerSearchPath("./secp256k1/Classes/secp256k1/src"),
.headerSearchPath("./secp256k1/Classes")
.headerSearchPath("secp256k1"),
.headerSearchPath("secp256k1/src"),
.headerSearchPath(".")
]),
.target(
name: "secp256k1",

6
include/module.modulemap Normal file
View File

@ -0,0 +1,6 @@
module libsecp256k1 {
header "secp256k1.h"
header "secp256k1_ecdh.h"
header "secp256k1_recovery.h"
header "secp256k1_preallocated.h"
}