60 lines
1.8 KiB
Swift
60 lines
1.8 KiB
Swift
// swift-tools-version: 6.0
|
|
//
|
|
// Package.swift
|
|
// WinUI
|
|
//
|
|
// Created by david-swift on 11.10.24.
|
|
//
|
|
|
|
import PackageDescription
|
|
|
|
/// The WinUI package.
|
|
let package = Package(
|
|
name: "WinUI",
|
|
products: [
|
|
.library(
|
|
name: "WinUISwift",
|
|
targets: ["winui-swift"]
|
|
),
|
|
.library(
|
|
name: "Core",
|
|
targets: ["Core"]
|
|
)
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://git.aparoksha.dev/aparoksha/meta", branch: "main"),
|
|
.package(
|
|
url: "https://git.aparoksha.dev/aparoksha/levenshtein-transformations",
|
|
branch: "main"
|
|
),
|
|
.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-cwinrt", branch: "main"),
|
|
.package(url: "https://github.com/AparokshaUI/winui", branch: "main")
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "Core",
|
|
dependencies: [
|
|
.product(name: "WinUI", package: "winui"),
|
|
.product(name: "WinAppSDK", package: "swift-windowsappsdk"),
|
|
.product(name: "WindowsFoundation", package: "swift-windowsfoundation"),
|
|
.product(name: "CWinRT", package: "swift-cwinrt"),
|
|
.product(name: "LevenshteinTransformations", package: "levenshtein-transformations"),
|
|
.product(name: "Meta", package: "meta")
|
|
]
|
|
),
|
|
.target(
|
|
name: "winui-swift",
|
|
dependencies: [
|
|
"Core"
|
|
]
|
|
),
|
|
.executableTarget(
|
|
name: "Demo",
|
|
dependencies: ["winui-swift"]
|
|
)
|
|
],
|
|
swiftLanguageModes: [.v5]
|
|
)
|