AtlatestRepositorysigil-irc
sigil-irc / tree / test / integration / apps / wasm-irc-websocket-smokepackage.sgl
1
;;; wasm-irc-websocket-smoke - Browser WebSocket transport smoke for sigil-irc.3
(package4
name: "wasm-irc-websocket-smoke"5
version: "0.1.0"6
sigil: "^0.16"7
entry: '(wasm-irc-websocket-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: "../../../../../sigil-websocket" package: "sigil-websocket")33
(from-path dir: "../../../.." package: "sigil-irc")34
(from-path dir: "../../../.." package: "sigil-irc-websocket"))36
tasks: (list37
(task38
name: 'build39
description: "Build the WASM IRC over WebSocket smoke fixture"40
steps: (list41
(compile-sigil-modules sources: "src/**/*.sgl")42
(link-web-application name: "wasm-irc-websocket-smoke")))))