Add crypto algos from lib to libolm target
Have been linking libolm only.
This commit is contained in:
parent
8e35ea320c
commit
c31a2f2f39
1 changed files with 6 additions and 1 deletions
|
@ -14,7 +14,12 @@ let package = Package(
|
||||||
.target(
|
.target(
|
||||||
name: "libolm",
|
name: "libolm",
|
||||||
path: ".",
|
path: ".",
|
||||||
sources: [ "src" ],
|
sources: [
|
||||||
|
"src",
|
||||||
|
"lib/crypto-algorithms/aes.c",
|
||||||
|
"lib/crypto-algorithms/sha256.c",
|
||||||
|
"lib/curve25519-donna/curve25519-donna.c"
|
||||||
|
],
|
||||||
publicHeadersPath: "include",
|
publicHeadersPath: "include",
|
||||||
cSettings: [
|
cSettings: [
|
||||||
.define("OLMLIB_VERSION_MAJOR", to: String(version.major)),
|
.define("OLMLIB_VERSION_MAJOR", to: String(version.major)),
|
||||||
|
|
Loading…
Reference in a new issue