Skip to content

Commit 7541c6b

Browse files
committed
Add missing contrib directory
Signed-off-by: Martynas Gurskas <martynas.gurskas@nordsec.com>
1 parent 8630a27 commit 7541c6b

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

contrib/darwin/module.modulemap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module libdropFFI {
2+
umbrella "."
3+
export *
4+
}
5+

contrib/swift_package/Package.swift

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// swift-tools-version: 5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "LibdropSwift",
8+
platforms: [
9+
.iOS(.v13),
10+
.macOS(.v10_15)
11+
],
12+
products: [
13+
.library(
14+
name: "LibdropSwift",
15+
targets: ["LibdropSwift", "libdropFFI"]),
16+
],
17+
targets: [
18+
.target(
19+
name: "LibdropSwift",
20+
dependencies: [
21+
"libdropFFI"
22+
],
23+
path: "Sources",
24+
linkerSettings: [.linkedFramework("CoreServices")]
25+
),
26+
.binaryTarget(
27+
name: "libdropFFI",
28+
url: "$XCFRAMEWORK_URL",
29+
checksum: "$XCFRAMEWORK_CHECKSUM"
30+
)
31+
]
32+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@_exported import libdropFFI

0 commit comments

Comments
 (0)