Skip to content

Commit

Permalink
add contrib directory to make xcframework job work
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Pukenis <[email protected]>
  • Loading branch information
LukasPukenis committed Apr 10, 2024
1 parent 20c3099 commit bd8b8b2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/darwin/module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module libdropFFI {
umbrella "."
export *
}

33 changes: 33 additions & 0 deletions contrib/swift_package/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "LibdropSwift",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v17)
],
products: [
.library(
name: "LibdropSwift",
targets: ["LibdropSwift", "libdropFFI"]),
],
targets: [
.target(
name: "LibdropSwift",
dependencies: [
"libdropFFI"
],
path: "Sources",
linkerSettings: [.linkedFramework("CoreServices")]
),
.binaryTarget(
name: "libdropFFI",
url: "$XCFRAMEWORK_URL",
checksum: "$XCFRAMEWORK_CHECKSUM"
)
]
)
1 change: 1 addition & 0 deletions contrib/swift_package/Sources/LibdropSwift.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@_exported import libdropFFI

0 comments on commit bd8b8b2

Please sign in to comment.