-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
185 lines (183 loc) · 6.19 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "AUv3Support",
platforms: [.iOS(.v13), .macOS(.v10_15)],
products: [
.library(name: "AUv3-Support", targets: ["AUv3Support"]),
.library(name: "AUv3-Support-iOS", targets: ["AUv3Support-iOS-Target"]),
.library(name: "AUv3-Support-macOS", targets: ["AUv3Support-macOS-Target"]),
.library(name: "AUv3-DSP-Headers", targets: ["DSPHeaders"]),
],
targets: [
.target(
name: "DSPHeaders",
exclude: ["README.md"]
// cxxSettings: [
// .unsafeFlags([
// "-pedantic",
// "-Wall",
// "-Wassign-enum",
// "-Wbad-function-cast",
// "-Wbind-to-temporary-copy",
// "-Wbool-conversion",
// "-Wbool-operation",
// "-Wc++11-extra-semi",
// "-Wcast-align",
// "-Wcast-function-type",
// "-Wcast-qual",
// "-Wchar-subscripts",
// "-Wcomma",
// "-Wcompletion-handler",
// "-Wconditional-uninitialized",
// "-Wconsumed",
// "-Wconversion",
// "-Wcovered-switch-default",
// "-Wdeclaration-after-statement",
// "-Wdeprecated",
// "-Wdeprecated-copy",
// "-Wdeprecated-copy-with-user-provided-dtor",
// "-Wdeprecated-dynamic-exception-spec",
// "-Wdeprecated-implementations",
// "-Wdirect-ivar-access",
// "-Wdocumentation",
// "-Wdocumentation-pedantic",
// // "-Wdouble-promotion",
// "-Wduplicate-decl-specifier",
// "-Wduplicate-enum",
// "-Wduplicate-method-arg",
// "-Wduplicate-method-match",
// "-Weffc++",
// "-Wempty-init-stmt",
// "-Wempty-translation-unit",
// "-Wenum-conversion",
// "-Wexplicit-ownership-type",
// "-Wfloat-conversion",
// "-Wfor-loop-analysis",
// "-Wformat-nonliteral",
// "-Wformat-type-confusion",
// "-Wframe-address",
// // "-Wglobal-constructors",
// "-Wheader-hygiene",
// "-Widiomatic-parentheses",
// "-Wimplicit-fallthrough",
// "-Wimplicit-retain-self",
// "-Wincompatible-function-pointer-types",
// "-Wlogical-op-parentheses",
// "-Wmethod-signatures",
// "-Wmismatched-tags",
// "-Wmissing-braces",
// "-Wmissing-field-initializers",
// "-Wmissing-method-return-type",
// "-Wmissing-noreturn",
// // "-Wmissing-prototypes",
// "-Wmissing-variable-declarations",
// "-Wmove",
// "-Wno-newline-eof", // resource_bundle_accessor.h is missing newline at end of file
// "-Wno-unknown-pragmas",
// "-Wnon-virtual-dtor",
// "-Wnullable-to-nonnull-conversion",
// "-Wobjc-interface-ivars",
// "-Wobjc-missing-property-synthesis",
// "-Wobjc-property-assign-on-object-type",
// "-Wobjc-signed-char-bool-implicit-int-conversion",
// "-Wold-style-cast",
// "-Wover-aligned",
// "-Woverlength-strings",
// "-Woverriding-method-mismatch",
// // "-Wpadded",
// "-Wparentheses",
// "-Wpessimizing-move",
// "-Wpointer-arith",
// "-Wrange-loop-analysis",
// "-Wredundant-move",
// "-Wreorder",
// "-Wself-assign-overloaded",
// "-Wself-move",
// "-Wsemicolon-before-method-body",
// "-Wshadow-all",
// "-Wshorten-64-to-32",
// "-Wsign-compare",
// "-Wsign-conversion",
// "-Wsometimes-uninitialized",
// "-Wstrict-selector-match",
// "-Wstring-concatenation",
// "-Wstring-conversion",
// "-Wsuggest-destructor-override",
// "-Wsuggest-override",
// "-Wsuper-class-method-mismatch",
// // "-Wswitch-enum",
// "-Wundefined-internal-type",
// "-Wundefined-reinterpret-cast",
// "-Wuninitialized",
// "-Wuninitialized-const-reference",
// "-Wunneeded-internal-declaration",
// "-Wunneeded-member-function",
// "-Wunreachable-code-aggressive",
// // "-Wunsafe-buffer-usage",
// "-Wunused",
// "-Wunused-function",
// "-Wunused-label",
// "-Wunused-parameter",
// "-Wunused-private-field",
// "-Wunused-value",
// "-Wunused-variable",
// // "-Wzero-as-null-pointer-constant",
// "-Wzero-length-array",
// "-x", "objective-c++", // treat source files as Obj-C++ files
// ], .none)
// ]
),
.target(
name: "AUv3Support",
dependencies: [],
exclude: [],
resources: [.process("Resources")],
swiftSettings: [.define("APPLICATION_EXTENSION_API_ONLY")]
),
.target(
name: "AUv3Support-iOS-Target",
dependencies: [.target(name: "AUv3Support-iOS", condition: .when(platforms: [.iOS]))]
),
.target(
name: "AUv3Support-iOS",
dependencies: ["AUv3Support"],
exclude: ["README.md"],
resources: [.process("Resources")],
swiftSettings: [.define("APPLICATION_EXTENSION_API_ONLY")]
),
.target(
name: "AUv3Support-macOS-Target",
dependencies: [.target(name: "AUv3Support-macOS", condition: .when(platforms: [.macOS]))]
),
.target(
name: "AUv3Support-macOS",
dependencies: ["AUv3Support"],
exclude: ["README.md"],
swiftSettings: [.define("APPLICATION_EXTENSION_API_ONLY")]
),
.testTarget(
name: "AUv3SupportTests",
dependencies: ["AUv3Support"],
resources: [.copy("Resources")]
),
.testTarget(
name: "AUv3Support-iOSTests",
dependencies: ["AUv3Support", "AUv3Support-iOS"]
),
.testTarget(
name: "AUv3Support-macOSTests",
dependencies: ["AUv3Support", "AUv3Support-macOS"]
),
.testTarget(
name: "DSPHeadersTests",
dependencies: ["DSPHeaders"],
exclude: ["Pirkle/README.md", "Pirkle/readme.txt"],
linkerSettings: [
.linkedFramework("AVFoundation"),
// .unsafeFlags(["-Xlinker", "-no_warn_duplicate_libraries"])
]
)
],
cxxLanguageStandard: .cxx20
)