-
Notifications
You must be signed in to change notification settings - Fork 15
/
Package.swift
306 lines (305 loc) · 13.6 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "DTMarkdownParser",
platforms: [
.iOS(.v9), //.v8 - .v13
.macOS(.v10_10), //.v10_10 - .v10_15
.tvOS(.v9), //.v9 - .v13
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "DTMarkdownParser",
targets: ["DTMarkdownParser"]),
],
targets: [
.target(
name: "DTMarkdownParser",
dependencies: [],
path: "Core",
exclude: ["Framework-Info.plist", "DTMarkdownParser-Prefix.pch"],
cSettings: [
.headerSearchPath("include/DTMarkdownParser"),
.define("BITCODE_GENERATION_MODE", to: "bitcode"),
.define("ENABLE_BITCODE", to: "YES")
]
),
.testTarget(
name: "DTMarkdownParserTests",
dependencies: ["DTMarkdownParser"],
path: "Test",
exclude: ["UnitTests-Info.plist", "UnitTests-Prefix.pch", "BundleLoaderDummy"],
resources: [.copy("Resources/"),
.copy("Resources/auto_link.html"),
.copy("Resources/auto_link.text"),
.copy("Resources/auto_link_email_with_underscore.html"),
.copy("Resources/auto_link_email_with_underscore.tags"),
.copy("Resources/auto_link_email_with_underscore.text"),
.copy("Resources/auto_link_safe_mode.html"),
.copy("Resources/auto_link_safe_mode.opts"),
.copy("Resources/auto_link_safe_mode.tags"),
.copy("Resources/auto_link_safe_mode.text"),
.copy("Resources/basic_safe_mode.html"),
.copy("Resources/basic_safe_mode.opts"),
.copy("Resources/basic_safe_mode.tags"),
.copy("Resources/basic_safe_mode.text"),
.copy("Resources/basic_safe_mode_escape.html"),
.copy("Resources/basic_safe_mode_escape.opts"),
.copy("Resources/basic_safe_mode_escape.tags"),
.copy("Resources/basic_safe_mode_escape.text"),
.copy("Resources/blockquote.html"),
.copy("Resources/blockquote.text"),
.copy("Resources/blockquote_with_pre.html"),
.copy("Resources/blockquote_with_pre.text"),
.copy("Resources/code_block_with_tabs.html"),
.copy("Resources/code_block_with_tabs.tags"),
.copy("Resources/code_block_with_tabs.text"),
.copy("Resources/code_blocks_leading_line.html"),
.copy("Resources/code_blocks_leading_line.text"),
.copy("Resources/code_safe_emphasis.html"),
.copy("Resources/code_safe_emphasis.opts"),
.copy("Resources/code_safe_emphasis.tags"),
.copy("Resources/code_safe_emphasis.text"),
.copy("Resources/codeblock.html"),
.copy("Resources/codeblock.text"),
.copy("Resources/codespans.html"),
.copy("Resources/codespans.text"),
.copy("Resources/codespans_safe_mode.html"),
.copy("Resources/codespans_safe_mode.opts"),
.copy("Resources/codespans_safe_mode.tags"),
.copy("Resources/codespans_safe_mode.text"),
.copy("Resources/cuddled_list_indented.html"),
.copy("Resources/cuddled_list_indented.opts"),
.copy("Resources/cuddled_list_indented.tags"),
.copy("Resources/cuddled_list_indented.text"),
.copy("Resources/cuddled_para_and_list.html"),
.copy("Resources/cuddled_para_and_list.opts"),
.copy("Resources/cuddled_para_and_list.tags"),
.copy("Resources/cuddled_para_and_list.text"),
.copy("Resources/cuddled_with_para.html"),
.copy("Resources/cuddled_with_para.text"),
.copy("Resources/demote_headers.html"),
.copy("Resources/demote_headers.opts"),
.copy("Resources/demote_headers.text"),
.copy("Resources/emacs_head_vars.html"),
.copy("Resources/emacs_head_vars.opts"),
.copy("Resources/emacs_head_vars.tags"),
.copy("Resources/emacs_head_vars.text"),
.copy("Resources/emacs_tail_vars.html"),
.copy("Resources/emacs_tail_vars.opts"),
.copy("Resources/emacs_tail_vars.tags"),
.copy("Resources/emacs_tail_vars.text"),
.copy("Resources/emphasis.html"),
.copy("Resources/emphasis.text"),
.copy("Resources/escapes.html"),
.copy("Resources/escapes.tags"),
.copy("Resources/escapes.text"),
.copy("Resources/fenced_code_blocks_issue86.html"),
.copy("Resources/fenced_code_blocks_issue86.opts"),
.copy("Resources/fenced_code_blocks_issue86.tags"),
.copy("Resources/fenced_code_blocks_issue86.text"),
.copy("Resources/fenced_code_blocks_leading_line.html"),
.copy("Resources/fenced_code_blocks_leading_line.opts"),
.copy("Resources/fenced_code_blocks_leading_line.tags"),
.copy("Resources/fenced_code_blocks_leading_line.text"),
.copy("Resources/fenced_code_blocks_simple.html"),
.copy("Resources/fenced_code_blocks_simple.opts"),
.copy("Resources/fenced_code_blocks_simple.tags"),
.copy("Resources/fenced_code_blocks_simple.text"),
.copy("Resources/fenced_code_blocks_syntax_highlighting.html"),
.copy("Resources/fenced_code_blocks_syntax_highlighting.opts"),
.copy("Resources/fenced_code_blocks_syntax_highlighting.tags"),
.copy("Resources/fenced_code_blocks_syntax_highlighting.text"),
.copy("Resources/footnotes.html"),
.copy("Resources/footnotes.opts"),
.copy("Resources/footnotes.text"),
.copy("Resources/footnotes_letters.html"),
.copy("Resources/footnotes_letters.opts"),
.copy("Resources/footnotes_letters.tags"),
.copy("Resources/footnotes_letters.text"),
.copy("Resources/footnotes_markup.html"),
.copy("Resources/footnotes_markup.opts"),
.copy("Resources/footnotes_markup.tags"),
.copy("Resources/footnotes_markup.text"),
.copy("Resources/footnotes_safe_mode_escape.html"),
.copy("Resources/footnotes_safe_mode_escape.opts"),
.copy("Resources/footnotes_safe_mode_escape.tags"),
.copy("Resources/footnotes_safe_mode_escape.text"),
.copy("Resources/footnotes_underscores.html"),
.copy("Resources/footnotes_underscores.opts"),
.copy("Resources/footnotes_underscores.tags"),
.copy("Resources/footnotes_underscores.text"),
.copy("Resources/header.html"),
.copy("Resources/header.text"),
.copy("Resources/header_ids_1.html"),
.copy("Resources/header_ids_1.opts"),
.copy("Resources/header_ids_1.tags"),
.copy("Resources/header_ids_1.text"),
.copy("Resources/header_ids_2.html"),
.copy("Resources/header_ids_2.opts"),
.copy("Resources/header_ids_2.tags"),
.copy("Resources/header_ids_2.text"),
.copy("Resources/header_ids_3.html"),
.copy("Resources/header_ids_3.opts"),
.copy("Resources/header_ids_3.tags"),
.copy("Resources/header_ids_3.text"),
.copy("Resources/header_ids_4.html"),
.copy("Resources/header_ids_4.opts"),
.copy("Resources/header_ids_4.tags"),
.copy("Resources/header_ids_4.text"),
.copy("Resources/header_ids_5.html"),
.copy("Resources/header_ids_5.opts"),
.copy("Resources/header_ids_5.tags"),
.copy("Resources/header_ids_5.text"),
.copy("Resources/hr.html"),
.copy("Resources/hr.text"),
.copy("Resources/hr_spaces.html"),
.copy("Resources/hr_spaces.text"),
.copy("Resources/html5_block_tags.html"),
.copy("Resources/html5_block_tags.tags"),
.copy("Resources/html5_block_tags.text"),
.copy("Resources/html_classes.html"),
.copy("Resources/html_classes.opts"),
.copy("Resources/html_classes.tags"),
.copy("Resources/html_classes.text"),
.copy("Resources/img_in_link.html"),
.copy("Resources/img_in_link.text"),
.copy("Resources/inline_links.html"),
.copy("Resources/inline_links.text"),
.copy("Resources/issue21_gt_escaping.html"),
.copy("Resources/issue21_gt_escaping.opts"),
.copy("Resources/issue21_gt_escaping.tags"),
.copy("Resources/issue21_gt_escaping.text"),
.copy("Resources/issue2_safe_mode_borks_markup.html"),
.copy("Resources/issue2_safe_mode_borks_markup.opts"),
.copy("Resources/issue2_safe_mode_borks_markup.tags"),
.copy("Resources/issue2_safe_mode_borks_markup.text"),
.copy("Resources/issue3_bad_code_color_hack.html"),
.copy("Resources/issue3_bad_code_color_hack.opts"),
.copy("Resources/issue3_bad_code_color_hack.tags"),
.copy("Resources/issue3_bad_code_color_hack.text"),
.copy("Resources/issue52_hang.html"),
.copy("Resources/issue52_hang.tags"),
.copy("Resources/issue52_hang.text"),
.copy("Resources/issue54_escape_link_title.html"),
.copy("Resources/issue54_escape_link_title.tags"),
.copy("Resources/issue54_escape_link_title.text"),
.copy("Resources/link_defn_alt_title_delims.html"),
.copy("Resources/link_defn_alt_title_delims.text"),
.copy("Resources/link_defn_spaces_in_url.html"),
.copy("Resources/link_defn_spaces_in_url.tags"),
.copy("Resources/link_defn_spaces_in_url.text"),
.copy("Resources/link_nofollow.html"),
.copy("Resources/link_nofollow.opts"),
.copy("Resources/link_nofollow.tags"),
.copy("Resources/link_nofollow.text"),
.copy("Resources/link_patterns.html"),
.copy("Resources/link_patterns.opts"),
.copy("Resources/link_patterns.text"),
.copy("Resources/link_patterns_double_hit.html"),
.copy("Resources/link_patterns_double_hit.opts"),
.copy("Resources/link_patterns_double_hit.tags"),
.copy("Resources/link_patterns_double_hit.text"),
.copy("Resources/link_patterns_edge_cases.html"),
.copy("Resources/link_patterns_edge_cases.opts"),
.copy("Resources/link_patterns_edge_cases.tags"),
.copy("Resources/link_patterns_edge_cases.text"),
.copy("Resources/lists.html"),
.copy("Resources/lists.text"),
.copy("Resources/lists2.html"),
.copy("Resources/lists2.tags"),
.copy("Resources/lists2.text"),
.copy("Resources/long_link.html"),
.copy("Resources/long_link.tags"),
.copy("Resources/long_link.text"),
.copy("Resources/markdown_in_html.html"),
.copy("Resources/markdown_in_html.opts"),
.copy("Resources/markdown_in_html.tags"),
.copy("Resources/markdown_in_html.text"),
.copy("Resources/markdown_in_html.toc_html"),
.copy("Resources/metadata.html"),
.copy("Resources/metadata.metadata"),
.copy("Resources/metadata.opts"),
.copy("Resources/metadata.tags"),
.copy("Resources/metadata.text"),
.copy("Resources/mismatched_footnotes.html"),
.copy("Resources/mismatched_footnotes.opts"),
.copy("Resources/mismatched_footnotes.text"),
.copy("Resources/missing_link_defn.html"),
.copy("Resources/missing_link_defn.text"),
.copy("Resources/nested_list.html"),
.copy("Resources/nested_list.text"),
.copy("Resources/nested_list_safe_mode.html"),
.copy("Resources/nested_list_safe_mode.opts"),
.copy("Resources/nested_list_safe_mode.tags"),
.copy("Resources/nested_list_safe_mode.text"),
.copy("Resources/not_quite_a_list.html"),
.copy("Resources/not_quite_a_list.text"),
.copy("Resources/parens_in_url_4.html"),
.copy("Resources/parens_in_url_4.tags"),
.copy("Resources/parens_in_url_4.text"),
.copy("Resources/pi_and_xinclude.html"),
.copy("Resources/pi_and_xinclude.opts"),
.copy("Resources/pi_and_xinclude.tags"),
.copy("Resources/pi_and_xinclude.text"),
.copy("Resources/pyshell.html"),
.copy("Resources/pyshell.opts"),
.copy("Resources/pyshell.text"),
.copy("Resources/raw_html.html"),
.copy("Resources/raw_html.text"),
.copy("Resources/ref_links.html"),
.copy("Resources/ref_links.text"),
.copy("Resources/smarty_pants.html"),
.copy("Resources/smarty_pants.opts"),
.copy("Resources/smarty_pants.tags"),
.copy("Resources/smarty_pants.text"),
.copy("Resources/smarty_pants_image_links.html"),
.copy("Resources/smarty_pants_image_links.opts"),
.copy("Resources/smarty_pants_image_links.tags"),
.copy("Resources/smarty_pants_image_links.text"),
.copy("Resources/sublist-ordered-para.html"),
.copy("Resources/sublist-ordered-para.tags"),
.copy("Resources/sublist-ordered-para.text"),
.copy("Resources/sublist-para.html"),
.copy("Resources/sublist-para.tags"),
.copy("Resources/sublist-para.text"),
.copy("Resources/syntax_color.html"),
.copy("Resources/syntax_color.opts"),
.copy("Resources/syntax_color.tags"),
.copy("Resources/syntax_color.text"),
.copy("Resources/syntax_color_opts.html"),
.copy("Resources/syntax_color_opts.opts"),
.copy("Resources/syntax_color_opts.tags"),
.copy("Resources/syntax_color_opts.text"),
.copy("Resources/toc_1.html"),
.copy("Resources/toc_1.opts"),
.copy("Resources/toc_1.tags"),
.copy("Resources/toc_1.text"),
.copy("Resources/toc_1.toc_html"),
.copy("Resources/toc_2.html"),
.copy("Resources/toc_2.opts"),
.copy("Resources/toc_2.tags"),
.copy("Resources/toc_2.text"),
.copy("Resources/toc_2.toc_html"),
.copy("Resources/tricky_anchors.html"),
.copy("Resources/tricky_anchors.text"),
.copy("Resources/two_comments.html"),
.copy("Resources/two_comments.text"),
.copy("Resources/underline_in_autolink.html"),
.copy("Resources/underline_in_autolink.text"),
.copy("Resources/wiki_tables.html"),
.copy("Resources/wiki_tables.opts"),
.copy("Resources/wiki_tables.tags"),
.copy("Resources/wiki_tables.text"),
.copy("Resources/xss_quotes.html"),
.copy("Resources/xss_quotes.tags"),
.copy("Resources/xss_quotes.text")
],
cSettings: [
.headerSearchPath("include"),
]
)
]
)