Files
wifi-densepose/examples/app-clip/Package.swift
ruv d803bfe2b1 Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector
git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
2026-02-28 14:39:40 -05:00

43 lines
1.2 KiB
Swift

// swift-tools-version: 5.9
// Package.swift SPM manifest for the RVF App Clip skeleton.
//
// This package links the pre-built RVF static library (librvf_runtime.a)
// produced by:
// cargo build --release --target aarch64-apple-ios --lib
//
// Place the compiled .a file under lib/ before building with Xcode.
import PackageDescription
let package = Package(
name: "RVFAppClip",
platforms: [
.iOS(.v16),
],
products: [
.library(
name: "AppClip",
targets: ["AppClip"]
),
],
targets: [
// C bridge module that exposes the RVF FFI header to Swift.
.target(
name: "RVFBridge",
path: "Sources/RVFBridge",
publicHeadersPath: ".",
linkerSettings: [
// Link the pre-built Rust static library.
.unsafeFlags(["-L../../target/aarch64-apple-ios/release"]),
.linkedLibrary("rvf_runtime"),
]
),
// Swift App Clip target that consumes the C bridge.
.target(
name: "AppClip",
dependencies: ["RVFBridge"],
path: "Sources/AppClip"
),
]
)