azure-notificationhubs-ios/Package@swift-5.3.swift

42 строки
1.2 KiB
Swift

// swift-tools-version:5.3
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import PackageDescription
let package = Package(
name: "WindowsAzureMessaging",
defaultLocalization: "en",
platforms: [
.iOS(.v9),
.macOS(.v10_10),
.tvOS(.v11)
],
products: [
.library(
name: "WindowsAzureMessaging",
type: .static,
targets: ["WindowsAzureMessaging"]),
],
dependencies: [],
targets: [
.target(
name: "WindowsAzureMessaging",
path: "WindowsAzureMessaging/WindowsAzureMessaging",
exclude: ["Support"],
cSettings: [
.define("NH_C_VERSION", to:"\"3.1.5\""),
.define("NH_C_BUILD", to:"\"1\""),
.headerSearchPath("**"),
],
linkerSettings: [
.linkedFramework("Foundation"),
.linkedFramework("SystemConfiguration"),
.linkedFramework("UserNotifications"),
.linkedFramework("AppKit", .when(platforms: [.macOS])),
.linkedFramework("UIKit", .when(platforms: [.iOS, .tvOS]))
]
)
]
)