Skip to content

Commit 0d1f370

Browse files
authored
Add a CMake build for the SourceKitLSPAPI module (#7246)
1 parent 95397a9 commit 0d1f370

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Sources/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ add_subdirectory(PackageSigning)
2828
add_subdirectory(SPMBuildCore)
2929
add_subdirectory(SPMLLBuild)
3030
add_subdirectory(SourceControl)
31+
add_subdirectory(SourceKitLSPAPI)
3132
add_subdirectory(swift-bootstrap)
3233
add_subdirectory(swift-build)
3334
add_subdirectory(swift-experimental-sdk)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This source file is part of the Swift open source project
2+
#
3+
# Copyright (c) 2014 - 2024 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(SourceKitLSPAPI STATIC
10+
BuildDescription.swift
11+
PluginTargetBuildDescription.swift)
12+
target_link_libraries(SourceKitLSPAPI PUBLIC
13+
Build
14+
SPMBuildCore)
15+
16+
# NOTE(compnerd) workaround for CMake not setting up include flags yet
17+
set_target_properties(SourceKitLSPAPI PROPERTIES
18+
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})

0 commit comments

Comments
 (0)