-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
32 lines (30 loc) · 1.01 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "NeXTBase",
platforms: [.iOS(.v15), .macOS(.v14), .tvOS(.v18), .watchOS(.v10)],
products: [
.library(
name: "NeXTBase",
targets: ["NeXTBase"]),
],
targets: [
.target(
name: "NeXTBase",
swiftSettings: [
// Enable whole module optimization
.unsafeFlags(["-whole-module-optimization"], .when(configuration: .release)),
// Optimize for size
.unsafeFlags(["-Osize"], .when(configuration: .release)),
// Strip all symbols
.unsafeFlags(["-Xlinker", "-strip-all"], .when(configuration: .release)),
// Enable dead code stripping
.unsafeFlags(["-Xlinker", "-dead_strip"], .when(configuration: .release)),
]
),
.testTarget(
name: "NeXTBaseTests",
dependencies: ["NeXTBase"]
),
]
)