mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 22:10:44 +00:00
Add crates/ffi, a static library exposing a version 1 C interface with opaque generation-checked session handles, stable status codes and panic containment. It can create and destroy sessions and parse the bundled trusted PE fixture; no guest code runs. Add a minimal SwiftUI app (Swift Package Manager) that links it, and scripts/build-app.sh to build an ad-hoc signed, arm64-only Xenora.app and run its smoke check. Signed-off-by: Swastick Chowdhury <28708247+Swastickc@users.noreply.github.com>
14 lines
413 B
Swift
14 lines
413 B
Swift
// swift-tools-version: 6.0
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// Build with scripts/build-app.sh, which builds the Rust static library first.
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "Xenora",
|
|
platforms: [.macOS(.v14)],
|
|
targets: [
|
|
.systemLibrary(name: "CXenora", path: "Sources/CXenora"),
|
|
.executableTarget(name: "Xenora", dependencies: ["CXenora"]),
|
|
]
|
|
)
|