Skip to content

Commit 8461047

Browse files
committed
[Build] Move diagnostic translations from include to dedicated localization/ directory
1 parent 8cf6e93 commit 8461047

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,8 @@ if(SWIFT_INCLUDE_TOOLS)
11091109
add_subdirectory(tools)
11101110
endif()
11111111

1112+
add_subdirectory(localization)
1113+
11121114
add_subdirectory(utils)
11131115

11141116
add_subdirectory(userdocs)

localization/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
add_custom_target(diagnostic-translation-database)
2+
3+
add_custom_command(
4+
TARGET diagnostic-translation-database
5+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
6+
DEPENDS diagnostics
7+
COMMAND "${CMAKE_COMMAND}" -E copy_directory diagnostics/ "${SWIFT_BINARY_DIR}/share/swift/diagnostics/")
8+
9+
add_dependencies(swift-frontend diagnostic-translation-database)
10+
11+
swift_install_in_component(
12+
DIRECTORY diagnostics
13+
DESTINATION "share/swift"
14+
COMPONENT compiler)

0 commit comments

Comments
 (0)