File tree Expand file tree Collapse file tree 3 files changed +15
-29
lines changed Expand file tree Collapse file tree 3 files changed +15
-29
lines changed Original file line number Diff line number Diff line change 1
- set ( SourceKitSupport_sources
1
+ add_sourcekit_library ( SourceKitSupport
2
2
Concurrency-libdispatch.cpp
3
3
FuzzyStringMatcher.cpp
4
4
Logging.cpp
5
5
ImmutableTextBuffer.cpp
6
6
ThreadSafeRefCntPtr.cpp
7
7
Tracing.cpp
8
8
UIDRegistry.cpp
9
- )
10
-
11
- add_sourcekit_library (SourceKitSupport
12
- ${SourceKitSupport_sources}
13
9
LINK_LIBS swiftBasic swiftSyntax clangBasic clangRewrite
14
10
)
15
11
if (SWIFT_NEED_EXPLICIT_LIBDISPATCH )
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
- )
Original file line number Diff line number Diff line change 1
1
if (NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY AND SWIFT_BUILD_STDLIB AND SWIFT_BUILD_SDK_OVERLAY )
2
- set (EXTRA_COMPILE_FLAGS "-F" "${SWIFT_LIBRARY_OUTPUT_INTDIR} " )
3
- set (SOURCEKITD_LINK_LIBS sourcekitd )
4
- set (INSTALLED_COMP sourcekit-xpc-service )
5
- set (DEPENDS_LIST "sourcekitd-test" )
6
-
7
2
# The build type of swiftlang should agree with stdlib
8
3
# This setting could avoid us adding additional search paths when building
9
4
# executables using SwiftLang.
@@ -25,11 +20,11 @@ if(NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY AND SWIFT_BUILD_STDLIB AND SWIFT_BUILD
25
20
GYB_SOURCES
26
21
UIDs.swift.gyb
27
22
28
- DEPENDS ${DEPENDS_LIST}
23
+ DEPENDS sourcekitd-test
29
24
SWIFT_MODULE_DEPENDS_OSX Darwin Foundation
30
- PRIVATE_LINK_LIBRARIES ${SOURCEKITD_LINK_LIBS}
31
- SWIFT_COMPILE_FLAGS ${EXTRA_COMPILE_FLAGS }
32
- INSTALL_IN_COMPONENT ${INSTALLED_COMP}
25
+ PRIVATE_LINK_LIBRARIES sourcekitd
26
+ SWIFT_COMPILE_FLAGS -F${SWIFT_LIBRARY_OUTPUT_INTDIR }
27
+ INSTALL_IN_COMPONENT sourcekit-xpc-service
33
28
DARWIN_INSTALL_NAME_DIR "@rpath"
34
29
TARGET_SDKS ${SOURCEKIT_DEFAULT_TARGET_SDK}
35
30
IS_STDLIB )
You can’t perform that action at this time.
0 commit comments