22 lines
713 B
Plaintext
22 lines
713 B
Plaintext
#import "modules/compiler.sx";
|
|
|
|
configure_build :: () {
|
|
opts := build_options();
|
|
if OS == {
|
|
case .wasm: {
|
|
output := if POINTER_SIZE == 4
|
|
then "sx-out/wasm32/index.html"
|
|
else "sx-out/wasm64/index.html";
|
|
opts.set_output_path(output);
|
|
opts.set_wasm_shell("shell.html");
|
|
opts.add_link_flag("-sUSE_SDL=3");
|
|
opts.add_link_flag("-sMAX_WEBGL_VERSION=2");
|
|
opts.add_link_flag("-sFULL_ES3=1");
|
|
opts.add_link_flag("--preload-file assets");
|
|
opts.add_link_flag("-sALLOW_MEMORY_GROWTH=1");
|
|
}
|
|
case .macos: {
|
|
opts.set_output_path("main");
|
|
}
|
|
}
|
|
} |