-
Notifications
You must be signed in to change notification settings - Fork 960
/
Copy pathPackage.swift
49 lines (47 loc) · 2.07 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "flower",
platforms: [.macOS(.v14), .iOS(.v16)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "Flwr",
targets: ["FlowerIntelligence"])
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/ml-explore/mlx-swift", from: "0.12.1"),
.package(url: "https://github.com/huggingface/swift-transformers", from: "0.1.8"),
.package(url: "https://github.com/apple/swift-async-algorithms", from: "1.0.0"),
.package(url: "https://github.com/ml-explore/mlx-swift-examples/", branch: "main"),
.package(url: "https://github.com/apple/swift-crypto.git", .upToNextMajor(from: "3.10.1")),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "FlowerIntelligence",
dependencies: [
.product(name: "MLX", package: "mlx-swift"),
.product(name: "MLXFast", package: "mlx-swift"),
.product(name: "MLXNN", package: "mlx-swift"),
.product(name: "MLXOptimizers", package: "mlx-swift"),
.product(name: "MLXRandom", package: "mlx-swift"),
.product(name: "MLXLinalg", package: "mlx-swift"),
.product(name: "Transformers", package: "swift-transformers"),
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
.product(name: "MLXLLM", package: "mlx-swift-examples"),
.product(name: "Crypto", package: "swift-crypto"),
],
path: "intelligence/swift/src"
),
.testTarget(
name: "FlowerIntelligenceTests",
dependencies: ["FlowerIntelligence"],
path: "intelligence/swift/tests"
),
]
)