mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 08:55:07 +00:00

This will effectively allow us to use C++ code as an input for the compiler. This would be useful for testing, since otherwise we would have had to specify tests as a spec-like XML, which is not exactly the most developer-friendly experience.
20 lines
610 B
CMake
20 lines
610 B
CMake
set(SOURCES
|
|
AST/AST.cpp
|
|
AST/ASTPrinting.cpp
|
|
Compiler/FunctionCallCanonicalizationPass.cpp
|
|
Compiler/GenericASTPass.cpp
|
|
Compiler/IfBranchMergingPass.cpp
|
|
Compiler/ReferenceResolvingPass.cpp
|
|
Parser/CppASTConverter.cpp
|
|
Parser/Lexer.cpp
|
|
Parser/ParseError.cpp
|
|
Parser/SpecParser.cpp
|
|
Parser/TextParser.cpp
|
|
Parser/XMLUtils.cpp
|
|
Function.cpp
|
|
main.cpp
|
|
)
|
|
|
|
lagom_tool(JSSpecCompiler LIBS LibCpp LibMain LibXML)
|
|
target_include_directories(JSSpecCompiler PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_compile_options(JSSpecCompiler PRIVATE -Wno-missing-field-initializers)
|