AtlatestRepositorysigil-websocket
sigil-websocket / tree / test / integration / apps / wasm-websocket-client-smokepackage.sgl
1
;;; wasm-websocket-client-smoke - Browser smoke fixture for sigil-websocket.3
(package4
name: "wasm-websocket-client-smoke"5
version: "0.1.0"6
sigil: "^0.15"7
entry: '(wasm-websocket-client-smoke main)9
configs: (list10
(config11
name: 'web12
output-dir: "build/web"13
toolchain: 'zig14
target: "wasm32-wasi"15
debug?: #f16
optimize: 217
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: (list28
(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: (list35
(task36
name: 'build37
description: "Build the WASM websocket client smoke fixture"38
steps: (list39
(compile-sigil-modules sources: "src/**/*.sgl")40
(link-web-application name: "wasm-websocket-client-smoke")))))