File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
tools/SourceKit/tools/sourcekitd/lib/API Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change
1
+ set (LLVM_OPTIONAL_SOURCES
2
+ sourcekitdAPI-XPC.cpp
3
+ sourcekitdAPI-InProc.cpp )
1
4
2
- set ( sourcekitdAPI_sources
5
+ add_sourcekit_library ( sourcekitdAPI
3
6
CodeCompletionResultsArray.cpp
4
7
CompactArray.cpp
5
8
DocStructureArray.cpp
@@ -9,22 +12,14 @@ set(sourcekitdAPI_sources
9
12
sourcekitdAPI-Common.cpp
10
13
TokenAnnotationsArray.cpp
11
14
ExpressionTypeArray.cpp
15
+ LINK_LIBS
16
+ SourceKitSupport SourceKitSwiftLang
12
17
)
13
18
14
- set (sourcekitdAPI_Darwin_sources
15
- sourcekitdAPI-XPC.cpp )
16
- set (sourcekitdAPI_NonDarwin_InProc_sources
17
- sourcekitdAPI-InProc.cpp )
18
- set (LLVM_OPTIONAL_SOURCES ${sourcekitdAPI_Darwin_sources} ${sourcekitdAPI_NonDarwin_InProc_sources} )
19
-
20
19
if (APPLE AND HAVE_XPC_H )
21
- list (APPEND sourcekitdAPI_sources ${sourcekitdAPI_Darwin_sources} )
20
+ target_sources (sourcekitdAPI PRIVATE
21
+ sourcekitdAPI-XPC.cpp )
22
22
elseif (SWIFT_SOURCEKIT_USE_INPROC_LIBRARY )
23
- list (APPEND sourcekitdAPI_sources ${sourcekitdAPI_NonDarwin_InProc_sources} )
23
+ target_sources (sourcekitdAPI PRIVATE
24
+ sourcekitdAPI-InProc.cpp )
24
25
endif ()
25
-
26
- add_sourcekit_library (sourcekitdAPI
27
- ${sourcekitdAPI_sources}
28
- LINK_LIBS
29
- SourceKitSupport SourceKitSwiftLang
30
- )
You can’t perform that action at this time.
0 commit comments