AtlatestRepositorysigil-irc
1;;; wasm-irc-websocket-smoke - Browser WebSocket transport smoke for sigil-irc.
2
3(package
4 name: "wasm-irc-websocket-smoke"
5 version: "0.1.0"
6 sigil: "^0.16"
7 entry: '(wasm-irc-websocket-smoke main)
8
9 configs: (list
10 (config
11 name: 'web
12 output-dir: "build/web"
13 toolchain: 'zig
14 target: "wasm32-wasi"
15 debug?: #f
16 optimize: 2
17 c-flags: (with-sigil-c-flags '("-std=c99" "-D_GNU_SOURCE" "-D__SIGIL_WASM__" "-Wall" "-O2"))
18 link-flags: '("-Wl,--export=sigil_wasm_init"
19 "-Wl,--export=sigil_wasm_start"
20 "-Wl,--export=sigil_wasm_eval"
21 "-Wl,--export=sigil_wasm_input"
22 "-Wl,--export=malloc"
23 "-Wl,--export=free"
24 "-lc")
25 features: '(web wasm)))
27 dependencies: (list
28 (from-path dir: "../../../../../sigil" package: "sigil-lib")
29 (from-path dir: "../../../../../sigil" package: "sigil-stdlib")
30 (from-path dir: "../../../../../sigil" package: "sigil-wasm-runtime")
31 (from-path dir: "../../../../../sigil" package: "sigil-wasm-net")
32 (from-path dir: "../../../../../sigil-websocket" package: "sigil-websocket")
33 (from-path dir: "../../../.." package: "sigil-irc")
34 (from-path dir: "../../../.." package: "sigil-irc-websocket"))
36 tasks: (list
37 (task
38 name: 'build
39 description: "Build the WASM IRC over WebSocket smoke fixture"
40 steps: (list
41 (compile-sigil-modules sources: "src/**/*.sgl")
42 (link-web-application name: "wasm-irc-websocket-smoke")))))