Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions Sources/BuildServerProtocol/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_library(BuildServerProtocol
add_library(BuildServerProtocol STATIC
BuildTargets.swift
FileOptions.swift
InitializeBuild.swift
Expand All @@ -9,15 +9,3 @@ set_target_properties(BuildServerProtocol PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_link_libraries(BuildServerProtocol PRIVATE
LanguageServerProtocol)

if(BUILD_SHARED_LIBS)
get_swift_host_arch(swift_arch)
install(TARGETS BuildServerProtocol
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch}
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch}
RUNTIME DESTINATION bin)
install(FILES
$<TARGET_PROPERTY:BuildServerProtocol,Swift_MODULE_DIRECTORY>/BuildServerProtocol.swiftdoc
$<TARGET_PROPERTY:BuildServerProtocol,Swift_MODULE_DIRECTORY>/BuildServerProtocol.swiftmodule
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch})
endif()
14 changes: 1 addition & 13 deletions Sources/LSPLogging/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
add_library(LSPLogging
add_library(LSPLogging STATIC
LogLevel.swift
Logging.swift)
set_target_properties(LSPLogging PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_link_libraries(LSPLogging PRIVATE
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)

if(BUILD_SHARED_LIBS)
get_swift_host_arch(swift_arch)
install(TARGETS LSPLogging
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
RUNTIME DESTINATION bin)
install(FILES
$<TARGET_PROPERTY:LSPLogging,Swift_MODULE_DIRECTORY>/LSPLogging.swiftdoc
$<TARGET_PROPERTY:LSPLogging,Swift_MODULE_DIRECTORY>/LSPLogging.swiftmodule
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch})
endif()
14 changes: 1 addition & 13 deletions Sources/LanguageServerProtocol/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_library(LanguageServerProtocol
add_library(LanguageServerProtocol STATIC
Cancellation.swift
Connection.swift
CustomCodable.swift
Expand Down Expand Up @@ -95,15 +95,3 @@ set_target_properties(LanguageServerProtocol PROPERTIES
target_link_libraries(LanguageServerProtocol PUBLIC
$<$<NOT:$<PLATFORM_ID:Darwin>>:swiftDispatch>
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)

if(BUILD_SHARED_LIBS)
get_swift_host_arch(swift_arch)
install(TARGETS LanguageServerProtocol
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
RUNTIME DESTINATION bin)
install(FILES
$<TARGET_PROPERTY:LanguageServerProtocol,Swift_MODULE_DIRECTORY>/LanguageServerProtocol.swiftdoc
$<TARGET_PROPERTY:LanguageServerProtocol,Swift_MODULE_DIRECTORY>/LanguageServerProtocol.swiftmodule
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch})
endif()
14 changes: 1 addition & 13 deletions Sources/LanguageServerProtocolJSONRPC/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_library(LanguageServerProtocolJSONRPC
add_library(LanguageServerProtocolJSONRPC STATIC
DisableSigpipe.swift
JSONRPCConnection.swift
MessageCoding.swift
Expand All @@ -11,15 +11,3 @@ target_link_libraries(LanguageServerProtocolJSONRPC PRIVATE
target_link_libraries(LanguageServerProtocolJSONRPC PRIVATE
$<$<NOT:$<PLATFORM_ID:Darwin>>:swiftDispatch>
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)

if(BUILD_SHARED_LIBS)
get_swift_host_arch(swift_arch)
install(TARGETS LanguageServerProtocolJSONRPC
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
RUNTIME DESTINATION bin)
install(FILES
$<TARGET_PROPERTY:LanguageServerProtocolJSONRPC,Swift_MODULE_DIRECTORY>/LanguageServerProtocolJSONRPC.swiftdoc
$<TARGET_PROPERTY:LanguageServerProtocolJSONRPC,Swift_MODULE_DIRECTORY>/LanguageServerProtocolJSONRPC.swiftmodule
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch})
endif()
14 changes: 1 addition & 13 deletions Sources/SKCore/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

add_library(SKCore
add_library(SKCore STATIC
BuildServerBuildSystem.swift
BuildSetup.swift
BuildSystem.swift
Expand All @@ -24,15 +24,3 @@ target_link_libraries(SKCore PRIVATE
SKSupport
SourceKitD
TSCUtility)

if(BUILD_SHARED_LIBS)
get_swift_host_arch(swift_arch)
install(TARGETS SKCore
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
RUNTIME DESTINATION bin)
install(FILES
$<TARGET_PROPERTY:SKCore,Swift_MODULE_DIRECTORY>/SKCore.swiftdoc
$<TARGET_PROPERTY:SKCore,Swift_MODULE_DIRECTORY>/SKCore.swiftmodule
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch})
endif()
14 changes: 1 addition & 13 deletions Sources/SKSupport/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

add_library(SKSupport
add_library(SKSupport STATIC
BuildConfiguration.swift
ByteString.swift
FileSystem.swift
Expand All @@ -12,15 +12,3 @@ set_target_properties(SKSupport PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_link_libraries(SKSupport PRIVATE
TSCUtility)

if(BUILD_SHARED_LIBS)
get_swift_host_arch(swift_arch)
install(TARGETS SKSupport
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
RUNTIME DESTINATION bin)
install(FILES
$<TARGET_PROPERTY:SKSupport,Swift_MODULE_DIRECTORY>/SKSupport.swiftdoc
$<TARGET_PROPERTY:SKSupport,Swift_MODULE_DIRECTORY>/SKSupport.swiftmodule
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch})
endif()
14 changes: 1 addition & 13 deletions Sources/SKSwiftPMWorkspace/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

add_library(SKSwiftPMWorkspace
add_library(SKSwiftPMWorkspace STATIC
SwiftPMWorkspace.swift)
set_target_properties(SKSwiftPMWorkspace PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
Expand All @@ -9,15 +9,3 @@ target_link_libraries(SKSwiftPMWorkspace PRIVATE
SKCore)
target_link_libraries(SKSwiftPMWorkspace PUBLIC
Build)

if(BUILD_SHARED_LIBS)
get_swift_host_arch(swift_arch)
install(TARGETS SKSwiftPMWorkspace
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
RUNTIME DESTINATION bin)
install(FILES
$<TARGET_PROPERTY:SKSwiftPMWorkspace,Swift_MODULE_DIRECTORY>/SKSwiftPMWorkspace.swiftdoc
$<TARGET_PROPERTY:SKSwiftPMWorkspace,Swift_MODULE_DIRECTORY>/SKSwiftPMWorkspace.swiftmodule
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch})
endif()
14 changes: 1 addition & 13 deletions Sources/SourceKitD/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

add_library(SourceKitD
add_library(SourceKitD STATIC
SKDRequestArray.swift
SKDRequestDictionary.swift
SKDResponse.swift
Expand All @@ -17,15 +17,3 @@ target_link_libraries(SourceKitD PRIVATE
LSPLogging
SKSupport
TSCUtility)

if(BUILD_SHARED_LIBS)
get_swift_host_arch(swift_arch)
install(TARGETS SourceKitD
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
RUNTIME DESTINATION bin)
install(FILES
$<TARGET_PROPERTY:SourceKitD,Swift_MODULE_DIRECTORY>/SourceKitD.swiftdoc
$<TARGET_PROPERTY:SourceKitD,Swift_MODULE_DIRECTORY>/SourceKitD.swiftmodule
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch})
endif()
14 changes: 1 addition & 13 deletions Sources/SourceKitLSP/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

add_library(SourceKitLSP
add_library(SourceKitLSP STATIC
CapabilityRegistry.swift
DocumentManager.swift
DocumentTokens.swift
Expand Down Expand Up @@ -44,15 +44,3 @@ target_link_libraries(SourceKitLSP PUBLIC
TSCUtility)
target_link_libraries(SourceKitLSP PRIVATE
$<$<NOT:$<PLATFORM_ID:Darwin>>:FoundationXML>)

if(BUILD_SHARED_LIBS)
get_swift_host_arch(swift_arch)
install(TARGETS SourceKitLSP
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
RUNTIME DESTINATION bin)
install(FILES
$<TARGET_PROPERTY:SourceKitLSP,Swift_MODULE_DIRECTORY>/SourceKitLSP.swiftdoc
$<TARGET_PROPERTY:SourceKitLSP,Swift_MODULE_DIRECTORY>/SourceKitLSP.swiftmodule
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>)
endif()
1 change: 1 addition & 0 deletions Sources/sourcekit-lsp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ add_executable(sourcekit-lsp
target_link_libraries(sourcekit-lsp PRIVATE
ArgumentParser
LanguageServerProtocolJSONRPC
SKCore
SourceKitLSP
TSCUtility)
target_link_libraries(sourcekit-lsp PRIVATE
Expand Down