Files
sourcekit-lsp/Sources/SourceKitLSP/CMakeLists.txt
loveucifer cf56bf2ce6 Address PR review feedback
- Add DefinitionLocations.swift to CMakeLists.txt
- Add proper documentation comments to functions in DefinitionLocations.swift
- Make indexToLSPLocation private since it's only used within the file
- Revert unrelated comment changes in InlayHintResolve.swift
- Use .only instead of .first in InlayHintResolve to avoid ambiguous types
- Refactor TypeDefinition.swift to use cleaner control flow with guard/else
- Add test for jumping to generated interface (String)
2026-01-19 17:12:33 +05:30

57 lines
1.6 KiB
CMake

add_library(SourceKitLSP STATIC
CapabilityRegistry.swift
DocumentManager.swift
DocumentSnapshot+FromFileContents.swift
DocumentSnapshot+PositionConversions.swift
DefinitionLocations.swift
GeneratedInterfaceDocumentURLData.swift
Hooks.swift
IndexProgressManager.swift
IndexStoreDB+MainFilesProvider.swift
LanguageService.swift
LanguageServiceRegistry.swift
LogMessageNotification+representingStructureUsingEmojiPrefixIfNecessary.swift
MacroExpansionReferenceDocumentURLData.swift
MessageHandlingDependencyTracker.swift
OnDiskDocumentManager.swift
PlaygroundDiscovery.swift
ReferenceDocumentURL.swift
Rename.swift
SemanticTokensLegend+SourceKitLSPLegend.swift
SharedWorkDoneProgressManager.swift
SourceKitIndexDelegate.swift
SourceKitLSPCommandMetadata.swift
SourceKitLSPServer.swift
SymbolLocation+DocumentURI.swift
SyntacticIndex.swift
TestDiscovery.swift
TextEdit+IsNoop.swift
Workspace.swift
)
set_target_properties(SourceKitLSP PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}
)
target_link_libraries(SourceKitLSP PUBLIC
SwiftToolsProtocols::BuildServerProtocol
BuildServerIntegration
SwiftToolsProtocols::LanguageServerProtocol
LanguageServerProtocolExtensions
SemanticIndex
SKOptions
SKUtilities
SwiftExtensions
SwiftToolsProtocols::ToolsProtocolsSwiftExtensions
ToolchainRegistry
IndexStoreDB
SwiftSyntax::SwiftSyntax
)
target_link_libraries(SourceKitLSP PRIVATE
SwiftToolsProtocols::LanguageServerProtocolTransport
SwiftToolsProtocols::SKLogging
SourceKitD
TSCExtensions
$<$<NOT:$<PLATFORM_ID:Darwin>>:FoundationXML>
)