From c31a2f2f39cc53153e9d99cd87397bd6c1dbce08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helge=20He=C3=9F?= Date: Fri, 10 Apr 2020 18:34:51 +0200 Subject: [PATCH] Add crypto algos from lib to libolm target Have been linking libolm only. --- Package.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 87d8675..c2e1d8a 100644 --- a/Package.swift +++ b/Package.swift @@ -14,7 +14,12 @@ let package = Package( .target( name: "libolm", path: ".", - sources: [ "src" ], + sources: [ + "src", + "lib/crypto-algorithms/aes.c", + "lib/crypto-algorithms/sha256.c", + "lib/curve25519-donna/curve25519-donna.c" + ], publicHeadersPath: "include", cSettings: [ .define("OLMLIB_VERSION_MAJOR", to: String(version.major)),