File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
tools/libSwiftSyntaxParser Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 65
65
# * toolchain-dev-tools -- install development tools useful in a shared toolchain
66
66
# * dev -- headers and libraries required to use Swift compiler as a library.
67
67
set (_SWIFT_DEFINED_COMPONENTS
68
- "autolink-driver;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;editor-integration;tools;testsuite-tools;toolchain-dev-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc;swift-remote-mirror;swift-remote-mirror-headers" )
68
+ "autolink-driver;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;parser-lib; editor-integration;tools;testsuite-tools;toolchain-dev-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc;swift-remote-mirror;swift-remote-mirror-headers" )
69
69
70
70
macro (swift_configure_components )
71
71
# Set the SWIFT_INSTALL_COMPONENTS variable to the default value if it is not passed in via -D
Original file line number Diff line number Diff line change
1
+ # Use an 'internal' name, this is primarily intended for SwiftSyntax to import.
2
+ set (SYNTAX_PARSER_LIB_NAME "_InternalSwiftSyntaxParser" )
3
+
1
4
set (LLVM_EXPORTED_SYMBOL_FILE
2
5
${CMAKE_CURRENT_SOURCE_DIR} /libSwiftSyntaxParser.exports )
3
6
@@ -10,7 +13,7 @@ add_swift_host_library(libSwiftSyntaxParser SHARED
10
13
)
11
14
set_target_properties (libSwiftSyntaxParser
12
15
PROPERTIES
13
- OUTPUT_NAME _InternalSwiftSyntaxParser )
16
+ OUTPUT_NAME ${SYNTAX_PARSER_LIB_NAME} )
14
17
15
18
add_llvm_symbol_exports (libSwiftSyntaxParser ${LLVM_EXPORTED_SYMBOL_FILE} )
16
19
@@ -22,3 +25,10 @@ set_property(TARGET libSwiftSyntaxParser APPEND_STRING PROPERTY
22
25
if (SWIFT_NEED_EXPLICIT_LIBDISPATCH )
23
26
target_link_libraries (libSwiftSyntaxParser PRIVATE BlocksRuntime )
24
27
endif ()
28
+
29
+ swift_install_in_component (parser-lib
30
+ FILES "${SWIFT_LIBRARY_OUTPUT_INTDIR} /${CMAKE_SHARED_LIBRARY_PREFIX}${SYNTAX_PARSER_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX} "
31
+ DESTINATION "lib${LLVM_LIBDIR_SUFFIX} /swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK} _LIB_SUBDIR}" )
32
+ swift_install_in_component (parser-lib
33
+ DIRECTORY "${SWIFT_MAIN_INCLUDE_DIR} /swift-c/SyntaxParser/"
34
+ DESTINATION "lib${LLVM_LIBDIR_SUFFIX} /swift/${SYNTAX_PARSER_LIB_NAME} " )
Original file line number Diff line number Diff line change 16
16
[preset: mixin_buildbot_install_components]
17
17
dash-dash
18
18
19
- swift-install-components =compiler; clang-builtin-headers;stdlib;sdk-overlay;editor-integration;tools;testsuite-tools;sourcekit-xpc-service;swift-remote-mirror;swift-remote-mirror-headers;
19
+ swift-install-components =compiler; clang-builtin-headers;stdlib;sdk-overlay;parser-lib; editor-integration;tools;testsuite-tools;sourcekit-xpc-service;swift-remote-mirror;swift-remote-mirror-headers;
20
20
21
21
22
22
[preset: mixin_buildbot_trunk_base]
@@ -728,7 +728,7 @@ install-swiftpm
728
728
install-xctest
729
729
install-libicu
730
730
install-prefix =/usr
731
- swift-install-components =autolink-driver; compiler;clang-builtin-headers;stdlib;swift-remote-mirror;sdk-overlay;license;sourcekit-inproc
731
+ swift-install-components =autolink-driver; compiler;clang-builtin-headers;stdlib;swift-remote-mirror;sdk-overlay;parser-lib; license;sourcekit-inproc
732
732
llvm-install-components =llvm-cov; llvm-profdata;IndexStore
733
733
build-swift-static-stdlib
734
734
build-swift-static-sdk-overlay
@@ -1078,7 +1078,7 @@ test-installable-package
1078
1078
# If someone uses this for incremental builds, force reconfiguration.
1079
1079
reconfigure
1080
1080
1081
- swift-install-components =compiler; clang-builtin-headers;stdlib;sdk-overlay;license;sourcekit-xpc-service;swift-remote-mirror;swift-remote-mirror-headers
1081
+ swift-install-components =compiler; clang-builtin-headers;stdlib;sdk-overlay;parser-lib; license;sourcekit-xpc-service;swift-remote-mirror;swift-remote-mirror-headers
1082
1082
llvm-install-components =llvm-cov; llvm-profdata;IndexStore
1083
1083
1084
1084
# Path to the .tar.gz package we would create.
You can’t perform that action at this time.
0 commit comments