summaryrefslogtreecommitdiff
path: root/wrappers/swift/CEduVpnCommon
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2021-12-14 15:56:10 +0100
committerStevenWdV <stevenwdv@gmail.com>2021-12-14 15:56:10 +0100
commitae826fde04191d26af68b898cf4b2f537d24a8ec (patch)
treec41943907e6c880a4254106942fc2c399c462016 /wrappers/swift/CEduVpnCommon
parentd9953dcc09ce61e249e40857bbf5cb98e0bb1fbf (diff)
Add Swift wrapper, support more platforms in Makefile
Diffstat (limited to 'wrappers/swift/CEduVpnCommon')
-rw-r--r--wrappers/swift/CEduVpnCommon/Package.swift13
-rw-r--r--wrappers/swift/CEduVpnCommon/Sources/CEduVpnCommon/module.modulemap5
2 files changed, 18 insertions, 0 deletions
diff --git a/wrappers/swift/CEduVpnCommon/Package.swift b/wrappers/swift/CEduVpnCommon/Package.swift
new file mode 100644
index 0000000..884f042
--- /dev/null
+++ b/wrappers/swift/CEduVpnCommon/Package.swift
@@ -0,0 +1,13 @@
+// swift-tools-version:5.1
+
+import PackageDescription
+
+let package = Package(
+ name: "CEduVpnCommon",
+ products: [
+ .library(name: "CEduVpnCommon", targets: ["CEduVpnCommon"]),
+ ],
+ targets: [
+ .systemLibrary(name: "CEduVpnCommon"),
+ ]
+)
diff --git a/wrappers/swift/CEduVpnCommon/Sources/CEduVpnCommon/module.modulemap b/wrappers/swift/CEduVpnCommon/Sources/CEduVpnCommon/module.modulemap
new file mode 100644
index 0000000..f0f47a7
--- /dev/null
+++ b/wrappers/swift/CEduVpnCommon/Sources/CEduVpnCommon/module.modulemap
@@ -0,0 +1,5 @@
+module CEduVpnCommon {
+ header "../../../../../exports/eduvpn_verify.h"
+ link "eduvpn_verify"
+ export *
+}