mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Add a tool to build MatrixRustSDK. (#369)
This commit is contained in:
+19
-6
@@ -1,17 +1,24 @@
|
||||
// swift-tools-version: 5.6
|
||||
// swift-tools-version: 5.7
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "DesignKit",
|
||||
platforms: [.iOS(.v14)],
|
||||
name: "Element Swift",
|
||||
platforms: [
|
||||
.iOS(.v14),
|
||||
.macOS(.v13)
|
||||
],
|
||||
products: [
|
||||
.library(name: "DesignKit", targets: ["DesignKit"])
|
||||
.library(name: "DesignKit", targets: ["DesignKit"]),
|
||||
.executable(name: "tools", targets: ["Tools"])
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/vector-im/element-design-tokens.git", exact: "0.0.3"),
|
||||
.package(url: "https://github.com/siteline/SwiftUI-Introspect.git", from: "0.1.4")
|
||||
.package(url: "https://github.com/siteline/SwiftUI-Introspect.git", from: "0.1.4"),
|
||||
/* Command line tools dependencies */
|
||||
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.0"),
|
||||
.package(url: "https://github.com/jpsim/Yams", from: "5.0.1")
|
||||
],
|
||||
targets: [
|
||||
.target(name: "DesignKit",
|
||||
@@ -22,6 +29,12 @@ let package = Package(
|
||||
path: "DesignKit"),
|
||||
.testTarget(name: "DesignKitTests",
|
||||
dependencies: ["DesignKit"],
|
||||
path: "DesignKitTests")
|
||||
path: "DesignKitTests"),
|
||||
.executableTarget(name: "Tools",
|
||||
dependencies: [
|
||||
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
||||
.product(name: "Yams", package: "Yams")
|
||||
],
|
||||
path: "Tools/Sources")
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user