Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
42
examples/app-clip/Package.swift
Normal file
42
examples/app-clip/Package.swift
Normal file
@@ -0,0 +1,42 @@
|
||||
// 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"
|
||||
),
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user