Files
swift-mirror/tools/swift-inspect/Package.swift
Saleem Abdulrasool eef3a8f60a swift-inspect: restructure the project for porting
This restructures and refactors the project to split up the
implementation into smaller fragments.  The majority of the operations
are portable: the ones which are not require iterating the heap
allocations which is not guaranteed to be a portable operation.
Additionally, the `Inspector` class is renamed into `RemoteProcess`
which is also converted to a protocol to allow adding in an
implementation for other targets.  The inspection operations are split
off into individual files to make it easier to follow.  Take the
opportunity to use `@main` for the entry point.
2022-02-18 12:58:11 -08:00

32 lines
1.1 KiB
Swift

// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "swift-inspect",
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.0.1"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "swift-inspect",
dependencies: [
"SymbolicationShims",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
swiftSettings: [
.unsafeFlags([
"-parse-as-library",
]),
]),
.testTarget(
name: "swiftInspectTests",
dependencies: ["swift-inspect"]),
.systemLibrary(
name: "SymbolicationShims")
]
)