|
| 1 | +# This source file is part of the Swift open source project |
| 2 | +# |
| 3 | +# Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors |
| 4 | +# Licensed under Apache License v2.0 with Runtime Library Exception |
| 5 | +# |
| 6 | +# See http://swift.org/LICENSE.txt for license information |
| 7 | +# See http://swift.org/CONTRIBUTORS.txt for Swift project authors |
| 8 | + |
| 9 | +add_library(Commands |
| 10 | + PackageCommands/AddDependency.swift |
| 11 | + PackageCommands/AddTarget.swift |
| 12 | + PackageCommands/APIDiff.swift |
| 13 | + PackageCommands/ArchiveSource.swift |
| 14 | + PackageCommands/CompletionCommand.swift |
| 15 | + PackageCommands/ComputeChecksum.swift |
| 16 | + PackageCommands/Config.swift |
| 17 | + PackageCommands/Describe.swift |
| 18 | + PackageCommands/DumpCommands.swift |
| 19 | + PackageCommands/EditCommands.swift |
| 20 | + PackageCommands/Format.swift |
| 21 | + PackageCommands/Init.swift |
| 22 | + PackageCommands/InstalledPackages.swift |
| 23 | + PackageCommands/Learn.swift |
| 24 | + PackageCommands/PluginCommand.swift |
| 25 | + PackageCommands/ResetCommands.swift |
| 26 | + PackageCommands/Resolve.swift |
| 27 | + PackageCommands/ShowDependencies.swift |
| 28 | + PackageCommands/SwiftPackageCommand.swift |
| 29 | + PackageCommands/ToolsVersionCommand.swift |
| 30 | + PackageCommands/Update.swift |
| 31 | + Snippets/CardEvent.swift |
| 32 | + Snippets/Cards/SnippetCard.swift |
| 33 | + Snippets/Cards/SnippetGroupCard.swift |
| 34 | + Snippets/Cards/TopCard.swift |
| 35 | + Snippets/CardStack.swift |
| 36 | + Snippets/Card.swift |
| 37 | + Snippets/Colorful.swift |
| 38 | + SwiftBuildCommand.swift |
| 39 | + SwiftRunCommand.swift |
| 40 | + SwiftTestCommand.swift |
| 41 | + CommandWorkspaceDelegate.swift |
| 42 | + Utilities/APIDigester.swift |
| 43 | + Utilities/DependenciesSerializer.swift |
| 44 | + Utilities/DescribedPackage.swift |
| 45 | + Utilities/DOTManifestSerializer.swift |
| 46 | + Utilities/MermaidPackageSerializer.swift |
| 47 | + Utilities/MultiRootSupport.swift |
| 48 | + Utilities/PlainTextEncoder.swift |
| 49 | + Utilities/PluginDelegate.swift |
| 50 | + Utilities/SymbolGraphExtract.swift |
| 51 | + Utilities/TestingSupport.swift |
| 52 | + Utilities/XCTEvents.swift) |
| 53 | +target_link_libraries(Commands PUBLIC |
| 54 | + SwiftCollections::OrderedCollections |
| 55 | + ArgumentParser |
| 56 | + Basics |
| 57 | + Build |
| 58 | + CoreCommands |
| 59 | + LLBuildManifest |
| 60 | + PackageGraph |
| 61 | + PackageModelSyntax |
| 62 | + SourceControl |
| 63 | + TSCBasic |
| 64 | + TSCUtility |
| 65 | + Workspace |
| 66 | + XCBuildSupport) |
| 67 | +target_link_libraries(Commands PRIVATE |
| 68 | + DriverSupport |
| 69 | + $<$<NOT:$<PLATFORM_ID:Darwin>>:FoundationXML>) |
| 70 | +# NOTE(compnerd) workaround for CMake not setting up include flags yet |
| 71 | +set_target_properties(Commands PROPERTIES |
| 72 | + INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) |
| 73 | + |
| 74 | +install(TARGETS Commands |
| 75 | + ARCHIVE DESTINATION lib |
| 76 | + LIBRARY DESTINATION lib |
| 77 | + RUNTIME DESTINATION bin) |
0 commit comments