-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPackage.swift
38 lines (35 loc) · 1.62 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
// swift-tools-version: 6.0
import Foundation
import PackageDescription
let package = Package(
name: "PlaydateKitTemplate",
platforms: [.macOS(.v14)],
products: [.library(name: "PlaydateKitTemplate", targets: ["PlaydateKitTemplate"])],
dependencies: [
.package(url: "https://github.com/finnvoor/PlaydateKit.git", branch: "main"),
],
targets: [
.target(
name: "PlaydateKitTemplate",
dependencies: [
.product(name: "PlaydateKit", package: "PlaydateKit")
],
swiftSettings: [
.enableExperimentalFeature("Embedded"),
.unsafeFlags([
"-whole-module-optimization",
"-Xfrontend", "-disable-objc-interop",
"-Xfrontend", "-disable-stack-protector",
"-Xfrontend", "-function-sections",
"-Xfrontend", "-gline-tables-only",
"-Xcc", "-DTARGET_EXTENSION",
"-Xcc", "-I", "-Xcc", "/usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/lib/gcc/arm-none-eabi/9.2.1/include",
"-Xcc", "-I", "-Xcc", "/usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/lib/gcc/arm-none-eabi/9.2.1/include-fixed",
"-Xcc", "-I", "-Xcc", "/usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/include",
"-I", "\(Context.environment["PLAYDATE_SDK_PATH"] ?? "\(Context.environment["HOME"]!)/Developer/PlaydateSDK/")/C_API"
]),
]
),
],
swiftLanguageModes: [.v6]
)