|
| 1 | +#[[ |
| 2 | +This source file is part of the Swift System open source project |
| 3 | +
|
| 4 | +Copyright (c) 2020 Apple Inc. and the Swift System project authors |
| 5 | +Licensed under Apache License v2.0 with Runtime Library Exception |
| 6 | +
|
| 7 | +See https://swift.org/LICENSE.txt for license information |
| 8 | +#]] |
| 9 | + |
| 10 | +add_library(Markdown |
| 11 | + Base/ChildIndexPath.swift |
| 12 | + Base/DirectiveArgument.swift |
| 13 | + Base/Document.swift |
| 14 | + Base/LiteralMarkup.swift |
| 15 | + Base/Markup.swift |
| 16 | + Base/MarkupChildren.swift |
| 17 | + Base/MarkupData.swift |
| 18 | + Base/PlainTextConvertibleMarkup.swift |
| 19 | + Base/RawMarkup.swift |
| 20 | + "Block Nodes/Block Container Blocks/Doxygen Commands/DoxygenParameter.swift" |
| 21 | + "Block Nodes/Block Container Blocks/Doxygen Commands/DoxygenReturns.swift" |
| 22 | + "Block Nodes/Block Container Blocks/BlockDirective.swift" |
| 23 | + "Block Nodes/Block Container Blocks/BlockQuote.swift" |
| 24 | + "Block Nodes/Block Container Blocks/CustomBlock.swift" |
| 25 | + "Block Nodes/Block Container Blocks/ListItem.swift" |
| 26 | + "Block Nodes/Block Container Blocks/OrderedList.swift" |
| 27 | + "Block Nodes/Block Container Blocks/UnorderedList.swift" |
| 28 | + "Block Nodes/Inline Container Blocks/Paragraph.swift" |
| 29 | + "Block Nodes/Leaf Blocks/CodeBlock.swift" |
| 30 | + "Block Nodes/Leaf Blocks/Heading.swift" |
| 31 | + "Block Nodes/Leaf Blocks/HTMLBlock.swift" |
| 32 | + "Block Nodes/Leaf Blocks/ThematicBreak.swift" |
| 33 | + "Block Nodes/Tables/Table.swift" |
| 34 | + "Block Nodes/Tables/TableBody.swift" |
| 35 | + "Block Nodes/Tables/TableCell.swift" |
| 36 | + "Block Nodes/Tables/TableCellContainer.swift" |
| 37 | + "Block Nodes/Tables/TableHead.swift" |
| 38 | + "Block Nodes/Tables/TableRow.swift" |
| 39 | + Infrastructure/Replacement.swift |
| 40 | + Infrastructure/SourceLocation.swift |
| 41 | + "Inline Nodes/Inline Containers/Emphasis.swift" |
| 42 | + "Inline Nodes/Inline Containers/Image.swift" |
| 43 | + "Inline Nodes/Inline Containers/InlineAttributes.swift" |
| 44 | + "Inline Nodes/Inline Containers/Link.swift" |
| 45 | + "Inline Nodes/Inline Containers/Strikethrough.swift" |
| 46 | + "Inline Nodes/Inline Containers/Strong.swift" |
| 47 | + "Inline Nodes/Inline Leaves/CustomInline.swift" |
| 48 | + "Inline Nodes/Inline Leaves/InlineCode.swift" |
| 49 | + "Inline Nodes/Inline Leaves/InlineHTML.swift" |
| 50 | + "Inline Nodes/Inline Leaves/LineBreak.swift" |
| 51 | + "Inline Nodes/Inline Leaves/SoftBreak.swift" |
| 52 | + "Inline Nodes/Inline Leaves/SymbolLink.swift" |
| 53 | + "Inline Nodes/Inline Leaves/Text.swift" |
| 54 | + "Interpretive Nodes/Aside.swift" |
| 55 | + Parser/BlockDirectiveParser.swift |
| 56 | + Parser/CommonMarkConverter.swift |
| 57 | + Parser/LazySplitLines.swift |
| 58 | + Parser/ParseOptions.swift |
| 59 | + Parser/RangeAdjuster.swift |
| 60 | + Parser/RangerTracker.swift |
| 61 | + Rewriter/MarkupRewriter.swift |
| 62 | + "Structural Restrictions/BasicBlockContainer.swift" |
| 63 | + "Structural Restrictions/BasicInlineContainer.swift" |
| 64 | + "Structural Restrictions/BlockContainer.swift" |
| 65 | + "Structural Restrictions/BlockMarkup.swift" |
| 66 | + "Structural Restrictions/InlineContainer.swift" |
| 67 | + "Structural Restrictions/InlineMarkup.swift" |
| 68 | + "Structural Restrictions/ListItemContainer.swift" |
| 69 | + Utility/AtomicCounter.swift |
| 70 | + Utility/CharacterExtensions.swift |
| 71 | + Utility/CollectionExtensions.swift |
| 72 | + Utility/StringExtensions.swift |
| 73 | + Visitor/MarkupVisitor.swift |
| 74 | + Walker/MarkupWalker.swift |
| 75 | + Walker/Walkers/MarkupFormatter.swift |
| 76 | + Walker/Walkers/MarkupTreeDumper.swift) |
| 77 | +target_link_libraries(Markdown PRIVATE |
| 78 | + ArgumentParser |
| 79 | + libcmark-gfm |
| 80 | + libcmark-gfm-extensions) |
| 81 | +target_link_libraries(Markdown PUBLIC |
| 82 | + CAtomic) |
| 83 | +set_target_properties(Markdown PROPERTIES |
| 84 | + INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) |
| 85 | + |
| 86 | +set_property(GLOBAL APPEND PROPERTY SWIFT_MARKDOWN_EXPORTS Markdown) |
0 commit comments