-
Notifications
You must be signed in to change notification settings - Fork 0
/
Project.swift
51 lines (48 loc) · 1.49 KB
/
Project.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
import Foundation
import ProjectDescription
let projectSettings: SettingsDictionary = [
"GCC_TREAT_WARNINGS_AS_ERRORS": "YES",
"SWIFT_TREAT_WARNINGS_AS_ERRORS": "YES",
"OTHER_SWIFT_FLAGS[config=Debug][sdk=*][arch=*]": "-D DEBUG $(inherited) -Xfrontend -warn-long-function-bodies=500 -Xfrontend -warn-long-expression-type-checking=500 -Xfrontend -debug-time-function-bodies -Xfrontend -enable-actor-data-race-checks",
"OTHER_LDFLAGS[config=Debug][sdk=*][arch=*]": "$(inherited) -Xlinker -interposable -all_load",
"CODE_SIGN_IDENTITY": "",
"CODE_SIGNING_REQUIRED": "NO",
]
func target(name: String) -> Target {
Target(
name: name,
platform: .macOS,
product: .app,
bundleId: "me.igortarasenko.\(name)",
deploymentTarget: .macOS(targetVersion: "13.0"),
infoPlist: .extendingDefault(with: [:]),
sources: .paths([.relativeToManifest("Sources/**")]),
resources: [
"Resources/**",
],
dependencies: [
.external(name: "AppDevUtils"),
.external(name: "Inject"),
.external(name: "OpenAI"),
]
)
}
let project = Project(
name: "CompanionAI",
options: .options(
textSettings: .textSettings(
indentWidth: 2,
tabWidth: 2
)
),
settings: .settings(configurations: [
.debug(name: "Debug", settings: projectSettings, xcconfig: nil),
.release(name: "Release", settings: projectSettings, xcconfig: nil),
]),
targets: [
target(name: "CompanionAI"),
],
resourceSynthesizers: [
.files(extensions: ["txt"]),
]
)