Permalink
Switch branches/tags
swift-DEVELOPMENT-SNAPSHOT-2018-08-10-a swift-DEVELOPMENT-SNAPSHOT-2018-08-09-a swift-DEVELOPMENT-SNAPSHOT-2018-08-06-a swift-DEVELOPMENT-SNAPSHOT-2018-08-02-a swift-DEVELOPMENT-SNAPSHOT-2018-08-01-a swift-DEVELOPMENT-SNAPSHOT-2018-07-31-a swift-DEVELOPMENT-SNAPSHOT-2018-07-30-a swift-DEVELOPMENT-SNAPSHOT-2018-07-28-a swift-DEVELOPMENT-SNAPSHOT-2018-07-27-a swift-DEVELOPMENT-SNAPSHOT-2018-07-24-a swift-DEVELOPMENT-SNAPSHOT-2018-07-23-a swift-DEVELOPMENT-SNAPSHOT-2018-07-22-a swift-DEVELOPMENT-SNAPSHOT-2018-07-21-a swift-DEVELOPMENT-SNAPSHOT-2018-07-20-a swift-DEVELOPMENT-SNAPSHOT-2018-07-19-a swift-DEVELOPMENT-SNAPSHOT-2018-07-18-a swift-DEVELOPMENT-SNAPSHOT-2018-07-17-a swift-DEVELOPMENT-SNAPSHOT-2018-07-16-a swift-DEVELOPMENT-SNAPSHOT-2018-07-14-a swift-DEVELOPMENT-SNAPSHOT-2018-07-13-a swift-DEVELOPMENT-SNAPSHOT-2018-07-12-a swift-DEVELOPMENT-SNAPSHOT-2018-07-11-a swift-DEVELOPMENT-SNAPSHOT-2018-07-09-a swift-DEVELOPMENT-SNAPSHOT-2018-07-07-a swift-DEVELOPMENT-SNAPSHOT-2018-07-06-a swift-DEVELOPMENT-SNAPSHOT-2018-07-05-a swift-DEVELOPMENT-SNAPSHOT-2018-07-04-a swift-DEVELOPMENT-SNAPSHOT-2018-07-03-a swift-DEVELOPMENT-SNAPSHOT-2018-07-02-a swift-DEVELOPMENT-SNAPSHOT-2018-07-01-a swift-DEVELOPMENT-SNAPSHOT-2018-06-30-a swift-DEVELOPMENT-SNAPSHOT-2018-06-29-a swift-DEVELOPMENT-SNAPSHOT-2018-06-27-a swift-DEVELOPMENT-SNAPSHOT-2018-06-26-a swift-DEVELOPMENT-SNAPSHOT-2018-06-25-a swift-DEVELOPMENT-SNAPSHOT-2018-06-24-a swift-DEVELOPMENT-SNAPSHOT-2018-06-23-a swift-DEVELOPMENT-SNAPSHOT-2018-06-22-a swift-DEVELOPMENT-SNAPSHOT-2018-06-21-a swift-DEVELOPMENT-SNAPSHOT-2018-06-20-a swift-DEVELOPMENT-SNAPSHOT-2018-06-19-a swift-DEVELOPMENT-SNAPSHOT-2018-06-18-a swift-DEVELOPMENT-SNAPSHOT-2018-06-17-a swift-DEVELOPMENT-SNAPSHOT-2018-06-16-a swift-DEVELOPMENT-SNAPSHOT-2018-06-15-a swift-DEVELOPMENT-SNAPSHOT-2018-06-14-a swift-DEVELOPMENT-SNAPSHOT-2018-06-08-a swift-DEVELOPMENT-SNAPSHOT-2018-06-07-a swift-DEVELOPMENT-SNAPSHOT-2018-06-06-a swift-DEVELOPMENT-SNAPSHOT-2018-06-05-a swift-DEVELOPMENT-SNAPSHOT-2018-06-04-a swift-DEVELOPMENT-SNAPSHOT-2018-06-03-a swift-DEVELOPMENT-SNAPSHOT-2018-06-02-a swift-DEVELOPMENT-SNAPSHOT-2018-06-01-a swift-DEVELOPMENT-SNAPSHOT-2018-05-31-a swift-DEVELOPMENT-SNAPSHOT-2018-05-30-a swift-DEVELOPMENT-SNAPSHOT-2018-05-29-a swift-DEVELOPMENT-SNAPSHOT-2018-05-28-a swift-DEVELOPMENT-SNAPSHOT-2018-05-27-a swift-DEVELOPMENT-SNAPSHOT-2018-05-26-a swift-DEVELOPMENT-SNAPSHOT-2018-05-25-a swift-DEVELOPMENT-SNAPSHOT-2018-05-24-a swift-DEVELOPMENT-SNAPSHOT-2018-05-23-a swift-DEVELOPMENT-SNAPSHOT-2018-05-22-a swift-DEVELOPMENT-SNAPSHOT-2018-05-21-a swift-DEVELOPMENT-SNAPSHOT-2018-05-20-a swift-DEVELOPMENT-SNAPSHOT-2018-05-19-a swift-DEVELOPMENT-SNAPSHOT-2018-05-18-a swift-DEVELOPMENT-SNAPSHOT-2018-05-17-a swift-DEVELOPMENT-SNAPSHOT-2018-05-14-a swift-DEVELOPMENT-SNAPSHOT-2018-05-13-a swift-DEVELOPMENT-SNAPSHOT-2018-05-11-a swift-DEVELOPMENT-SNAPSHOT-2018-05-10-a swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a swift-DEVELOPMENT-SNAPSHOT-2018-04-24-a swift-DEVELOPMENT-SNAPSHOT-2018-04-23-a swift-DEVELOPMENT-SNAPSHOT-2018-04-22-a swift-DEVELOPMENT-SNAPSHOT-2018-04-21-a swift-DEVELOPMENT-SNAPSHOT-2018-04-20-a swift-DEVELOPMENT-SNAPSHOT-2018-04-19-a swift-DEVELOPMENT-SNAPSHOT-2018-04-18-a swift-DEVELOPMENT-SNAPSHOT-2018-04-17-a swift-DEVELOPMENT-SNAPSHOT-2018-04-16-a swift-DEVELOPMENT-SNAPSHOT-2018-04-15-a swift-DEVELOPMENT-SNAPSHOT-2018-04-13-a swift-DEVELOPMENT-SNAPSHOT-2018-04-12-a swift-DEVELOPMENT-SNAPSHOT-2018-04-11-a swift-DEVELOPMENT-SNAPSHOT-2018-04-10-a swift-DEVELOPMENT-SNAPSHOT-2018-04-09-a swift-DEVELOPMENT-SNAPSHOT-2018-04-08-a swift-DEVELOPMENT-SNAPSHOT-2018-04-07-a swift-DEVELOPMENT-SNAPSHOT-2018-04-06-a swift-DEVELOPMENT-SNAPSHOT-2018-04-05-a swift-DEVELOPMENT-SNAPSHOT-2018-04-04-a swift-DEVELOPMENT-SNAPSHOT-2018-04-03-a swift-DEVELOPMENT-SNAPSHOT-2018-04-02-a swift-DEVELOPMENT-SNAPSHOT-2018-04-01-a swift-DEVELOPMENT-SNAPSHOT-2018-03-31-a swift-DEVELOPMENT-SNAPSHOT-2018-03-30-a
Nothing to show
Find file Copy path
227 lines (207 sloc) 7.85 KB
// swift-tools-version:4.0
/*
This source file is part of the Swift.org open source project
Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
Licensed under Apache License v2.0 with Runtime Library Exception
See http://swift.org/LICENSE.txt for license information
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
*/
import PackageDescription
let package = Package(
name: "SwiftPM",
products: [
// The `libSwiftPM` set of interfaces to programatically work with Swift
// packages.
//
// NOTE: This API is *unstable* and may change at any time.
.library(
name: "SwiftPM",
type: .dynamic,
targets: [
"clibc",
"SPMLibc",
"POSIX",
"Basic",
"Utility",
"SourceControl",
"SPMLLBuild",
"PackageDescription4",
"PackageModel",
"PackageLoading",
"PackageGraph",
"Build",
"Xcodeproj",
"Workspace"
]
),
// Collection of general purpose utilities.
//
// NOTE: This product consists of *unsupported*, *unstable* API. These
// APIs are implementation details of the package manager. Depend on it
// at your own risk.
.library(
name: "Utility",
targets: [
"clibc",
"SPMLibc",
"POSIX",
"Basic",
"Utility",
]
),
],
targets: [
// The `PackageDescription` targets are special, they define the API which
// is available to the `Package.swift` manifest files.
.target(
/** Package Definition API version 4 */
name: "PackageDescription4",
dependencies: []),
// MARK: Support libraries
.target(
/** Shim target to import missing C headers in Darwin and Glibc modulemap. */
name: "clibc",
dependencies: []),
.target(
/** Cross-platform access to bare `libc` functionality. */
name: "SPMLibc",
dependencies: ["clibc"]),
.target(
/** “Swifty” POSIX functions from libc */
name: "POSIX",
dependencies: ["SPMLibc"]),
.target(
/** Basic support library */
name: "Basic",
dependencies: ["SPMLibc", "POSIX"]),
.target(
/** Abstractions for common operations, should migrate to Basic */
name: "Utility",
dependencies: ["POSIX", "Basic"]),
.target(
/** Source control operations */
name: "SourceControl",
dependencies: ["Basic", "Utility"]),
.target(
/** Shim for llbuild library */
name: "SPMLLBuild",
dependencies: ["Basic", "Utility"]),
// MARK: Project Model
.target(
/** Primitive Package model objects */
name: "PackageModel",
dependencies: ["Basic", "Utility"]),
.target(
/** Package model conventions and loading support */
name: "PackageLoading",
dependencies: ["Basic", "PackageModel", "Utility", "SPMLLBuild"]),
// MARK: Package Dependency Resolution
.target(
/** Data structures and support for complete package graphs */
name: "PackageGraph",
dependencies: ["Basic", "PackageLoading", "PackageModel", "SourceControl", "Utility"]),
// MARK: Package Manager Functionality
.target(
/** Builds Modules and Products */
name: "Build",
dependencies: ["Basic", "PackageGraph"]),
.target(
/** Generates Xcode projects */
name: "Xcodeproj",
dependencies: ["Basic", "PackageGraph"]),
.target(
/** High level functionality */
name: "Workspace",
dependencies: ["Basic", "Build", "PackageGraph", "PackageModel", "SourceControl", "Xcodeproj"]),
// MARK: Commands
.target(
/** High-level commands */
name: "Commands",
dependencies: ["Basic", "Build", "PackageGraph", "SourceControl", "Utility", "Xcodeproj", "Workspace"]),
.target(
/** The main executable provided by SwiftPM */
name: "swift-package",
dependencies: ["Commands"]),
.target(
/** Builds packages */
name: "swift-build",
dependencies: ["Commands"]),
.target(
/** Runs package tests */
name: "swift-test",
dependencies: ["Commands"]),
.target(
/** Runs an executable product */
name: "swift-run",
dependencies: ["Commands"]),
.target(
/** Shim tool to find test names on OS X */
name: "swiftpm-xctest-helper",
dependencies: []),
// MARK: Additional Test Dependencies
.target(
/** Test support library */
name: "TestSupport",
dependencies: ["Basic", "POSIX", "PackageGraph", "PackageLoading", "SourceControl", "Utility", "Commands"]),
.target(
/** Test support executable */
name: "TestSupportExecutable",
dependencies: ["Basic", "POSIX", "Utility"]),
.testTarget(
name: "BasicTests",
dependencies: ["TestSupport", "TestSupportExecutable"]),
.testTarget(
name: "BasicPerformanceTests",
dependencies: ["Basic", "TestSupport"]),
.testTarget(
name: "BuildTests",
dependencies: ["Build", "TestSupport"]),
.testTarget(
name: "CommandsTests",
dependencies: ["swift-build", "swift-package", "swift-test", "swift-run", "Commands", "Workspace", "TestSupport"]),
.testTarget(
name: "WorkspaceTests",
dependencies: ["Workspace", "TestSupport"]),
.testTarget(
name: "FunctionalTests",
dependencies: ["swift-build", "swift-package", "swift-test", "Basic", "Utility", "PackageModel", "TestSupport"]),
.testTarget(
name: "FunctionalPerformanceTests",
dependencies: ["swift-build", "swift-package", "swift-test", "swift-build", "swift-package", "TestSupport"]),
.testTarget(
name: "PackageDescription4Tests",
dependencies: ["PackageDescription4"]),
.testTarget(
name: "PackageLoadingTests",
dependencies: ["PackageLoading", "TestSupport"],
exclude: ["Inputs"]),
.testTarget(
name: "PackageLoadingPerformanceTests",
dependencies: ["PackageLoading", "TestSupport"]),
.testTarget(
name: "PackageModelTests",
dependencies: ["PackageModel"]),
.testTarget(
name: "PackageGraphTests",
dependencies: ["PackageGraph", "TestSupport"]),
.testTarget(
name: "PackageGraphPerformanceTests",
dependencies: ["PackageGraph", "TestSupport"]),
.testTarget(
name: "POSIXTests",
dependencies: ["POSIX", "TestSupport"]),
.testTarget(
name: "SourceControlTests",
dependencies: ["SourceControl", "TestSupport"]),
.testTarget(
name: "TestSupportTests",
dependencies: ["TestSupport"]),
.testTarget(
name: "UtilityTests",
dependencies: ["Utility", "TestSupport", "TestSupportExecutable"]),
.testTarget(
name: "XcodeprojTests",
dependencies: ["Xcodeproj", "TestSupport"]),
],
swiftLanguageVersions: [4]
)