File tree Expand file tree Collapse file tree 12 files changed +41
-136
lines changed Expand file tree Collapse file tree 12 files changed +41
-136
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
23
23
24
24
set (CMAKE_MACOSX_RPATH YES )
25
25
26
+ include (AddSwiftHostLibrary )
27
+
26
28
# Ensure that we do not link the _StringProcessing module. But we can
27
29
# only pass this flag for new-enough compilers that support it.
28
30
file (WRITE "${CMAKE_BINARY_DIR} /tmp/empty-check-string-processing.swift" "" )
Original file line number Diff line number Diff line change 6
6
# See http://swift.org/LICENSE.txt for license information
7
7
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8
8
9
- add_library (IDEUtils
9
+ add_swift_host_library (IDEUtils
10
10
gyb_generated/SyntaxClassification.swift
11
11
Syntax+Classifications.swift
12
12
SyntaxClassifier.swift
13
13
)
14
14
15
15
target_link_libraries (IDEUtils PUBLIC
16
16
SwiftSyntax )
17
-
18
- set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS IDEUtils )
19
-
20
- # NOTE: workaround for CMake not setting up include flags yet
21
- set_target_properties (IDEUtils PROPERTIES
22
- INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
23
-
24
- install (TARGETS IDEUtils
25
- EXPORT SwiftSyntaxTargets
26
- ARCHIVE DESTINATION lib
27
- LIBRARY DESTINATION lib
28
- RUNTIME DESTINATION bin )
Original file line number Diff line number Diff line change 6
6
# See http://swift.org/LICENSE.txt for license information
7
7
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8
8
9
- add_library (SwiftBasicFormat
9
+ add_swift_host_library (SwiftBasicFormat
10
10
generated /BasicFormat.swift
11
11
SyntaxProtocol+Formatted.swift
12
12
Trivia+Indented.swift
13
13
)
14
14
15
15
target_link_libraries (SwiftBasicFormat PUBLIC
16
16
SwiftSyntax )
17
-
18
- set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftBasicFormat )
19
-
20
- # NOTE: workaround for CMake not setting up include flags yet
21
- set_target_properties (SwiftBasicFormat PROPERTIES
22
- INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
23
-
24
- install (TARGETS SwiftBasicFormat
25
- EXPORT SwiftSyntaxTargets
26
- ARCHIVE DESTINATION lib
27
- LIBRARY DESTINATION lib
28
- RUNTIME DESTINATION bin )
Original file line number Diff line number Diff line change 6
6
# See http://swift.org/LICENSE.txt for license information
7
7
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8
8
9
- add_library (SwiftCompilerSupport
9
+ add_swift_host_library (SwiftCompilerSupport
10
10
ConsistencyCheck.swift
11
11
)
12
12
@@ -17,16 +17,3 @@ target_link_libraries(SwiftCompilerSupport PUBLIC
17
17
SwiftParserDiagnostics
18
18
SwiftOperators
19
19
)
20
-
21
- set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftCompilerSupport )
22
-
23
- # NOTE: workaround for CMake not setting up include flags yet
24
- set_target_properties (SwiftCompilerSupport PROPERTIES
25
- INTERFACE_INCLUDE_DIRECTORIES
26
- "${CMAKE_Swift_MODULE_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR} " )
27
-
28
- install (TARGETS SwiftCompilerSupport
29
- EXPORT SwiftSyntaxTargets
30
- ARCHIVE DESTINATION lib
31
- LIBRARY DESTINATION lib
32
- RUNTIME DESTINATION bin )
Original file line number Diff line number Diff line change 6
6
# See http://swift.org/LICENSE.txt for license information
7
7
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8
8
9
- add_library (SwiftDiagnostics
9
+ add_swift_host_library (SwiftDiagnostics
10
10
Diagnostic.swift
11
11
DiagnosticsFormatter.swift
12
12
FixIt.swift
@@ -16,15 +16,3 @@ add_library(SwiftDiagnostics
16
16
17
17
target_link_libraries (SwiftDiagnostics PUBLIC
18
18
SwiftSyntax )
19
-
20
- set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftDiagnostics )
21
-
22
- # NOTE: workaround for CMake not setting up include flags yet
23
- set_target_properties (SwiftDiagnostics PROPERTIES
24
- INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
25
-
26
- install (TARGETS SwiftDiagnostics
27
- EXPORT SwiftSyntaxTargets
28
- ARCHIVE DESTINATION lib
29
- LIBRARY DESTINATION lib
30
- RUNTIME DESTINATION bin )
Original file line number Diff line number Diff line change 6
6
# See http://swift.org/LICENSE.txt for license information
7
7
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8
8
9
- add_library (SwiftOperators
9
+ add_swift_host_library (SwiftOperators
10
10
Operator.swift
11
11
OperatorError+Diagnostics.swift
12
12
OperatorError.swift
@@ -23,16 +23,3 @@ target_link_libraries(SwiftOperators PUBLIC
23
23
SwiftSyntax
24
24
SwiftDiagnostics
25
25
SwiftParser )
26
-
27
- set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftOperators )
28
-
29
- # NOTE: workaround for CMake not setting up include flags yet
30
- set_target_properties (SwiftOperators PROPERTIES
31
- INTERFACE_INCLUDE_DIRECTORIES
32
- "${CMAKE_Swift_MODULE_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR} " )
33
-
34
- install (TARGETS SwiftOperators
35
- EXPORT SwiftSyntaxTargets
36
- ARCHIVE DESTINATION lib
37
- LIBRARY DESTINATION lib
38
- RUNTIME DESTINATION bin )
Original file line number Diff line number Diff line change 6
6
# See http://swift.org/LICENSE.txt for license information
7
7
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8
8
9
- add_library (SwiftParser
9
+ add_swift_host_library (SwiftParser
10
10
Attributes.swift
11
11
Availability.swift
12
12
CharacterInfo.swift
@@ -40,16 +40,3 @@ add_library(SwiftParser
40
40
target_link_libraries (SwiftParser PUBLIC
41
41
SwiftSyntax
42
42
SwiftDiagnostics )
43
-
44
- set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftParser )
45
-
46
- # NOTE: workaround for CMake not setting up include flags yet
47
- set_target_properties (SwiftParser PROPERTIES
48
- INTERFACE_INCLUDE_DIRECTORIES
49
- "${CMAKE_Swift_MODULE_DIRECTORY} " )
50
-
51
- install (TARGETS SwiftParser
52
- EXPORT SwiftSyntaxTargets
53
- ARCHIVE DESTINATION lib
54
- LIBRARY DESTINATION lib
55
- RUNTIME DESTINATION bin )
Original file line number Diff line number Diff line change 6
6
# See http://swift.org/LICENSE.txt for license information
7
7
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8
8
9
- add_library (SwiftParserDiagnostics
9
+ add_swift_host_library (SwiftParserDiagnostics
10
10
DiagnosticExtensions.swift
11
11
MissingNodesError.swift
12
12
ParserDiagnosticMessages.swift
@@ -20,16 +20,3 @@ target_link_libraries(SwiftParserDiagnostics PUBLIC
20
20
SwiftDiagnostics
21
21
SwiftParser
22
22
SwiftSyntax )
23
-
24
- set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftParserDiagnostics )
25
-
26
- # NOTE: workaround for CMake not setting up include flags yet
27
- set_target_properties (SwiftParserDiagnostics PROPERTIES
28
- INTERFACE_INCLUDE_DIRECTORIES
29
- "${CMAKE_Swift_MODULE_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR} " )
30
-
31
- install (TARGETS SwiftParserDiagnostics
32
- EXPORT SwiftSyntaxTargets
33
- ARCHIVE DESTINATION lib
34
- LIBRARY DESTINATION lib
35
- RUNTIME DESTINATION bin )
Original file line number Diff line number Diff line change 6
6
# See http://swift.org/LICENSE.txt for license information
7
7
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8
8
9
- add_library (SwiftSyntax
9
+ add_swift_host_library (SwiftSyntax
10
10
AbsolutePosition.swift
11
11
BumpPtrAllocator.swift
12
12
CommonAncestor.swift
@@ -54,15 +54,3 @@ add_library(SwiftSyntax
54
54
gyb_generated/syntax_nodes/SyntaxStmtNodes.swift
55
55
gyb_generated/syntax_nodes/SyntaxTypeNodes.swift
56
56
)
57
-
58
- set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftSyntax )
59
-
60
- # NOTE: workaround for CMake not setting up include flags yet
61
- set_target_properties (SwiftSyntax PROPERTIES
62
- INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
63
-
64
- install (TARGETS SwiftSyntax
65
- EXPORT SwiftSyntaxTargets
66
- ARCHIVE DESTINATION lib
67
- LIBRARY DESTINATION lib
68
- RUNTIME DESTINATION bin )
Original file line number Diff line number Diff line change 6
6
# See http://swift.org/LICENSE.txt for license information
7
7
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8
8
9
- add_library (SwiftSyntaxBuilder
9
+ add_swift_host_library (SwiftSyntaxBuilder
10
10
ConvenienceInitializers.swift
11
11
HasTrailingComma.swift
12
12
Indenter.swift
@@ -29,16 +29,3 @@ target_link_libraries(SwiftSyntaxBuilder PUBLIC
29
29
SwiftParserDiagnostics
30
30
SwiftSyntax
31
31
)
32
-
33
- set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftSyntaxBuilder )
34
-
35
- # NOTE: workaround for CMake not setting up include flags yet
36
- set_target_properties (SwiftSyntaxBuilder PROPERTIES
37
- INTERFACE_INCLUDE_DIRECTORIES
38
- "${CMAKE_Swift_MODULE_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR} " )
39
-
40
- install (TARGETS SwiftSyntaxBuilder
41
- EXPORT SwiftSyntaxTargets
42
- ARCHIVE DESTINATION lib
43
- LIBRARY DESTINATION lib
44
- RUNTIME DESTINATION bin )
You can’t perform that action at this time.
0 commit comments