-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
52 lines (50 loc) · 1.54 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
50
51
52
// swift-tools-version: 5.5
import PackageDescription
let package = Package(
name: "CameLLMGPTJ",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
],
products: [
.library(
name: "CameLLMGPTJ",
targets: ["CameLLMGPTJ"]
)
],
dependencies: [
.package(url: "https://github.com/CameLLM/CameLLM", branch: "main"),
.package(url: "https://github.com/CameLLM/CameLLM-Plugin-Harness", branch: "main"),
.package(url: "https://github.com/CameLLM/CameLLM-Common", branch: "main"),
],
targets: [
.target(
name: "CameLLMGPTJ",
dependencies: [
.product(name: "CameLLM", package: "CameLLM"),
.product(name: "CameLLMPluginHarness", package: "CameLLM-Plugin-Harness"),
.product(name: "CameLLMCommon", package: "CameLLM-Common"),
"CameLLMGPTJObjCxx"
]
),
.target(
name: "CameLLMGPTJObjCxx",
dependencies: [
.product(name: "CameLLMObjCxx", package: "CameLLM"),
.product(name: "CameLLMPluginHarnessObjCxx", package: "CameLLM-Plugin-Harness"),
.product(name: "CameLLMCommonObjCxx", package: "CameLLM-Common"),
],
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32", "-fvisibility=hidden", "-fmodules", "-fcxx-modules"]), .define("GGML_USE_ACCELERATE")],
cxxSettings: [
.headerSearchPath("cpp"),
.headerSearchPath("operations"),
.headerSearchPath("internal")
],
linkerSettings: [
.linkedFramework("Accelerate")
]
)
],
cLanguageStandard: .gnu11,
cxxLanguageStandard: .cxx11
)