code wiki / _hdl_build / nx_vcc_color_wasm_build.nx

nx_vcc_color_wasm_build.nx source

↩ module page · 8 lines · 513 B

1// nx_vcc_color_wasm_build.nx -- argless build-driver: assemble the color WAT -> WASM at fixed paths. Like 2// nx_vcc_color_wat (which produced the .wat), nx_sov_build_run swallows argv, so this fixes the in/out paths 3// and calls nx_wat_compiler's extracted wc_compile_file (.wat -> .wasm, sovereign). license_tier: ORIGINAL 4import "nx_wat_compiler.nx" 5 6func main() -> i64 { 7 return wc_compile_file("web_assets/_video_build/nx_vcodec_color.wat" as *u8, "web_assets/_video_build/nx_vcodec_color.wasm" as *u8) 8}