Pass build mode for raylib web build
This commit is contained in:
parent
2ee0842778
commit
c1fe4f33a9
@ -72,11 +72,13 @@ build_deps :: proc(opts: Options) -> []string {
|
|||||||
if opts.variant == .Web {
|
if opts.variant == .Web {
|
||||||
cwd := "./libs/raylib/src"
|
cwd := "./libs/raylib/src"
|
||||||
|
|
||||||
|
build_mode := opts.debug ? "RAYLIB_BUILD_MODE=DEBUG" : "RAYLIB_BUILD_MODE=RELEASE"
|
||||||
|
|
||||||
if force {
|
if force {
|
||||||
run_cmd({"make", "clean", "PLATFORM=PLATFORM_WEB"}, cwd)
|
run_cmd(temp_concat({"make", "clean", "PLATFORM=PLATFORM_WEB"}, {build_mode}), cwd)
|
||||||
}
|
}
|
||||||
|
|
||||||
run_cmd({"make", "PLATFORM=PLATFORM_WEB", "-j8"}, cwd)
|
run_cmd(temp_concat({"make", "PLATFORM=PLATFORM_WEB", "-j8"}, {build_mode}), cwd)
|
||||||
} else {
|
} else {
|
||||||
cwd := "./libs/raylib"
|
cwd := "./libs/raylib"
|
||||||
out_dir := shared ? "zig-out-shared" : "zig-out-static"
|
out_dir := shared ? "zig-out-shared" : "zig-out-static"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user