Skip to content

Commit 3ff0448

Browse files
committed
add contrib directory to make xcframework job work
Signed-off-by: Lukas Pukenis <lukas.pukenis@nordsec.com>
1 parent 182042f commit 3ff0448

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-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: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
.tvOS(.v17)
12+
],
13+
products: [
14+
.library(
15+
name: "LibdropSwift",
16+
targets: ["LibdropSwift", "libdropFFI"]),
17+
],
18+
targets: [
19+
.target(
20+
name: "LibdropSwift",
21+
dependencies: [
22+
"libdropFFI"
23+
],
24+
path: "Sources",
25+
linkerSettings: [.linkedFramework("CoreServices")]
26+
),
27+
.binaryTarget(
28+
name: "libdropFFI",
29+
url: "$XCFRAMEWORK_URL",
30+
checksum: "$XCFRAMEWORK_CHECKSUM"
31+
)
32+
]
33+
)
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)