-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Package.swift
65 lines (62 loc) · 3.13 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
//
// Repo: https://github.com/johnno1962/HotReloading
// $Id: //depot/HotReloading/Package.swift#203 $
//
import PackageDescription
import Foundation
// This means of locating the IP address of developer's
// Mac has been replaced by a multicast implementation.
// If the multicast implementation fails to connect,
// clone the HotReloading project and hardcode the IP
// address of your Mac into the hostname value below.
// Then drag the clone onto your project to have it
// take precedence over the configured version.
var hostname = Host.current().name ?? "localhost"
// hostname = "192.168.0.243" // for example
let package = Package(
name: "HotReloading",
platforms: [.macOS("10.12"), .iOS("10.0"), .tvOS("10.0")],
products: [
.library(name: "HotReloading", targets: ["HotReloading"]),
.library(name: "HotReloadingGuts", targets: ["HotReloadingGuts"]),
.library(name: "injectiondGuts", targets: ["injectiondGuts"]),
.executable(name: "injectiond", targets: ["injectiond"]),
],
dependencies: [
.package(url: "https://github.com/johnno1962/SwiftTrace",
.upToNextMinor(from: "8.6.1")),
.package(name: "SwiftRegex",
url: "https://github.com/johnno1962/SwiftRegex5",
.upToNextMinor(from: "6.1.2")),
.package(url: "https://github.com/johnno1962/XprobePlugin",
.upToNextMinor(from: "2.9.10")),
.package(name: "RemotePlugin",
url: "https://github.com/johnno1962/Remote",
.upToNextMinor(from: "2.3.5")),
.package(url: "https://github.com/johnno1962/ProfileSwiftUI",
.upToNextMinor(from: "1.1.3")),
// .package(url: "https://github.com/johnno1962/DLKit",
// .upToNextMinor(from: "1.2.1")),
// .package(url: "https://github.com/johnno1962/InjectionScratch",
// .upToNextMinor(from: "1.2.12")),
],
targets: [
.target(name: "HotReloading", dependencies: ["HotReloadingGuts",
.product(name: "SwiftTraceD", package: "SwiftTrace"),
.product(name: "Xprobe", package: "XprobePlugin"),
.product(name: "SwiftRegex", package: "SwiftRegex"),
"ProfileSwiftUI" /*, "DLKit",
"InjectionScratch"*/]/*, linkerSettings: [.unsafeFlags([
"-Xlinker", "-interposable", "-undefined", "dynamic_lookup"])]*/),
.target(name: "HotReloadingGuts",
cSettings: [.define("DEVELOPER_HOST", to: "\"\(hostname)\"")]),
.target(name: "injectiondGuts"),
.target(name: "injectiond", dependencies: ["HotReloadingGuts", "injectiondGuts",
.product(name: "SwiftRegex", package: "SwiftRegex"),
.product(name: "XprobeUI", package: "XprobePlugin"),
.product(name: "RemoteUI", package: "RemotePlugin")],
swiftSettings: [.define("INJECTION_III_APP")])],
cxxLanguageStandard: .cxx11
)