mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-10-21 00:13:16 +02:00
44 lines
1.4 KiB
CMake
44 lines
1.4 KiB
CMake
set(sources
|
|
Array+Safe.swift
|
|
AsyncUtils.swift
|
|
Cache.swift
|
|
CartesianProduct.swift
|
|
Collection+Only.swift
|
|
Collection+PartitionIntoBatches.swift
|
|
DisableSigpipe.swift
|
|
Duration+Seconds.swift
|
|
FileManagerExtensions.swift
|
|
LazyValue.swift
|
|
NSLock+WithLock.swift
|
|
PipeAsStringHandler.swift
|
|
Platform.swift
|
|
Process+terminate.swift
|
|
ResultExtensions.swift
|
|
RunWithCleanup.swift
|
|
Sequence+AsyncMap.swift
|
|
Sequence+ContainsAnyIn.swift
|
|
ThreadSafeBox.swift
|
|
TransitiveClosure.swift
|
|
URLExtensions.swift
|
|
)
|
|
|
|
add_library(SwiftExtensions STATIC ${sources})
|
|
set_target_properties(SwiftExtensions PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
|
target_link_libraries(SwiftExtensions PUBLIC
|
|
SwiftToolsProtocols::ToolsProtocolsSwiftExtensions)
|
|
target_link_libraries(SwiftExtensions PRIVATE
|
|
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)
|
|
|
|
add_library(SwiftExtensionsForPlugin STATIC ${sources})
|
|
set_target_properties(SwiftExtensionsForPlugin PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
|
target_compile_options(SwiftExtensionsForPlugin PRIVATE
|
|
$<$<COMPILE_LANGUAGE:Swift>:
|
|
"SHELL:-module-alias ToolsProtocolsSwiftExtensions=_ToolsProtocolsSwiftExtensionsForPlugin"
|
|
>)
|
|
target_link_libraries(SwiftExtensionsForPlugin PUBLIC
|
|
SwiftToolsProtocols::_ToolsProtocolsSwiftExtensionsForPlugin)
|
|
target_link_libraries(SwiftExtensionsForPlugin PRIVATE
|
|
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)
|