AtlatestRepositorysigil-websocket
1;;; wasm-websocket-client-smoke - Browser smoke fixture for sigil-websocket.
2
3(package
4 name: "wasm-websocket-client-smoke"
5 version: "0.1.0"
6 sigil: "^0.15"
7 entry: '(wasm-websocket-client-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: "../../../.." package: "sigil-websocket"))
34 tasks: (list
35 (task
36 name: 'build
37 description: "Build the WASM websocket client smoke fixture"
38 steps: (list
39 (compile-sigil-modules sources: "src/**/*.sgl")
40 (link-web-application name: "wasm-websocket-client-smoke")))))