mirror of
https://github.com/apple/swift-system
synced 2026-11-24 04:38:14 +00:00
44 lines
1.1 KiB
Swift
44 lines
1.1 KiB
Swift
// swift-tools-version:5.6
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
/*
|
|
This source file is part of the Swift System open source project
|
|
|
|
Copyright (c) 2020 Apple Inc. and the Swift System project authors
|
|
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
|
|
See https://swift.org/LICENSE.txt for license information
|
|
*/
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-system",
|
|
products: [
|
|
.library(name: "SystemPackage", targets: ["SystemPackage"]),
|
|
],
|
|
dependencies: [],
|
|
targets: [
|
|
.target(
|
|
name: "CSystem",
|
|
dependencies: []),
|
|
.target(
|
|
name: "SystemPackage",
|
|
dependencies: ["CSystem"],
|
|
path: "Sources/System",
|
|
cSettings: [
|
|
.define("_CRT_SECURE_NO_WARNINGS")
|
|
],
|
|
swiftSettings: [
|
|
.define("SYSTEM_PACKAGE"),
|
|
.define("ENABLE_MOCKING", .when(configuration: .debug))
|
|
]),
|
|
.testTarget(
|
|
name: "SystemTests",
|
|
dependencies: ["SystemPackage"],
|
|
swiftSettings: [
|
|
.define("SYSTEM_PACKAGE")
|
|
]),
|
|
]
|
|
)
|