-
Notifications
You must be signed in to change notification settings - Fork 13
/
Package.swift
34 lines (31 loc) · 1.34 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
// swift-tools-version: 5.7
import PackageDescription
let GUILinkerSettings: [LinkerSetting] = [
.unsafeFlags(["-Xlinker", "/SUBSYSTEM:WINDOWS"], .when(configuration: .release)),
// Update the entry point to point to the generated swift function, this lets us keep the same main method
// for debug/release
.unsafeFlags(["-Xlinker", "/ENTRY:mainCRTStartup"], .when(configuration: .release)),
]
let package = Package(
name: "windows-samples",
products: [
.executable(name: "WinUI3AnimationsPreview", targets: ["WinUI3AnimationsPreview"]),
],
dependencies: [
.package(url: "https://github.com/thebrowsercompany/swift-windowsappsdk", branch: "main"),
.package(url: "https://github.com/thebrowsercompany/swift-windowsfoundation", branch: "main"),
.package(url: "https://github.com/thebrowsercompany/swift-winui", branch: "main"),
],
targets: [
.executableTarget(
name: "WinUI3AnimationsPreview",
dependencies: [
.product(name: "WinUI", package: "swift-winui"),
.product(name: "WinAppSDK", package: "swift-windowsappsdk"),
.product(name: "WindowsFoundation", package: "swift-windowsfoundation"),
],
path:"WinUI3AnimationsPreview",
linkerSettings: GUILinkerSettings
),
]
)