-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathPackage.swift
71 lines (67 loc) · 2.25 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
66
67
68
69
70
71
// swift-tools-version: 5.9
// WARNING:
// This file is automatically generated.
// Do not edit it by hand because the contents will be replaced.
import PackageDescription
import AppleProductTypes
import Foundation
let currentDirectoryPath = "/var/mobile/Library/Mobile Documents/iCloud~com~apple~Playgrounds/Documents/SparseBox.swiftpm"
#if os(iOS)
let compilerAccessiblePath = "/var/mobile/Containers/Data/PluginKitPlugin/C7B10296-7E83-4753-9BF5-A3F9A7F800C7/Documents"
#else
let compilerAccessiblePath = FileManager.default.currentDirectoryPath
#endif
let package = Package(
name: "SparseBox",
platforms: [
.iOS("16.0")
],
products: [
.iOSApplication(
name: "SparseBox",
targets: ["SparseBox"],
displayVersion: "1.0",
bundleVersion: "1",
appIcon: .placeholder(icon: .sparkle),
accentColor: .presetColor(.mint),
supportedDeviceFamilies: [
.pad,
.phone
],
supportedInterfaceOrientations: [
.portrait,
.landscapeRight,
.landscapeLeft,
.portraitUpsideDown(.when(deviceFamilies: [.pad]))
]
)
],
targets: [
.executableTarget(
name: "SparseBox",
path: ".",
resources: [
.process("Resources")
],
swiftSettings: [
.enableUpcomingFeature("BareSlashRegexLiterals"),
.unsafeFlags([
"-I\(compilerAccessiblePath)/include",
"-import-objc-header",
"\(compilerAccessiblePath)/include/minimuxer-Bridging-Header.h",
]),
],
linkerSettings: [
.unsafeFlags([
// Building in Swift Playgrounds, cannot use normal linking flow
"-rpath", "@executable_path",
"-rpath", "@executable_path/Frameworks",
//"-L\(currentDirectoryPath)/Resources",
"-L\(compilerAccessiblePath)/Resources",
]),
.linkedLibrary("EMProxy"),
.linkedLibrary("imobiledevice")
]
)
]
)