Files
swift-mirror/lib/Syntax/CMakeLists.txt
T
Xi Ge 94c3f55117 libSyntax: extract meta-information of trivia kinds to syntax_gyb_support. NFC
The existing libSyntax infrastructure uses external python
dictionaries to share logic between C++ and Swift implementations.
This patch teaches trivia kinds to adapt to this infrastructure
 as well.
2018-03-06 17:45:43 -08:00

19 lines
473 B
CMake

if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
set(SWIFT_GYB_FLAGS --line-directive "^\"#line %(line)d \\\"%(file)s\\\"^\"")
else()
set(SWIFT_GYB_FLAGS --line-directive "\'#line" "%(line)d" "\"%(file)s\"\'")
endif()
add_swift_library(swiftSyntax STATIC
SyntaxNodes.cpp.gyb
SyntaxBuilders.cpp.gyb
SyntaxKind.cpp.gyb
SyntaxFactory.cpp.gyb
SyntaxVisitor.cpp.gyb
Trivia.cpp.gyb
RawSyntax.cpp
Syntax.cpp
SyntaxArena.cpp
SyntaxData.cpp
UnknownSyntax.cpp)