Skip to content

Commit 25a3eae

Browse files
CMake: Support building the WAT module
1 parent 57b36cc commit 25a3eae

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Sources/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ add_subdirectory(SystemExtras)
55
add_subdirectory(WASI)
66
add_subdirectory(WasmTypes)
77
add_subdirectory(WasmParser)
8+
add_subdirectory(WAT)
89

910
if(WASMKIT_BUILD_CLI)
1011
add_subdirectory(CLI)

Sources/WAT/CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
add_wasmkit_library(WAT
2+
BinaryInstructionEncoder.swift
3+
Encoder.swift
4+
Lexer.swift
5+
Location.swift
6+
NameMapping.swift
7+
ParseTextInstruction.swift
8+
Parser.swift
9+
Parser/ExpressionParser.swift
10+
Parser/WastParser.swift
11+
Parser/WatParser.swift
12+
WAT.swift
13+
)
14+
15+
target_link_wasmkit_libraries(WAT PUBLIC
16+
WasmParser)

0 commit comments

Comments
 (0)