From fe9dd731d5b68ff48be95e1d4097bf1c6edc5ca6 Mon Sep 17 00:00:00 2001 From: rexim Date: Sun, 18 Feb 2024 00:36:31 +0700 Subject: [PATCH] Replace build.sh with nob.c --- build.sh | 24 ------------------------ nob.c | 11 ++++++++--- wasm/tsoding_snake.wasm | Bin 80444 -> 80423 bytes 3 files changed, 8 insertions(+), 27 deletions(-) delete mode 100755 build.sh diff --git a/build.sh b/build.sh deleted file mode 100755 index 2d25d33..0000000 --- a/build.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -set -xe - -mkdir -p build/ - -clang -I./include/ -o build/core_basic_window ./examples/core_basic_window.c -L./lib/ -lraylib -lm -clang -I./include/ -o build/core_basic_screen_manager ./examples/core_basic_screen_manager.c -L./lib/ -lraylib -lm -clang -I./include/ -o build/core_input_keys ./examples/core_input_keys.c -L./lib/ -lraylib -lm -clang -I./include/ -o build/shapes_colors_palette ./examples/shapes_colors_palette.c -L./lib/ -lraylib -lm -clang -I./include/ -o build/game ./game.c -L./lib/ -lraylib -lm -clang -I./include/ -o ./build/core_input_mouse_wheel ./examples/core_input_mouse_wheel.c -L./lib/ -lraylib -lm -clang -I./include/ -o ./build/text_writing_anim ./examples/text_writing_anim.c -L./lib/ -lraylib -lm -clang -I./include/ -o ./build/textures_logo_raylib ./examples/textures_logo_raylib.c -L./lib/ -lraylib -lm - -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/core_basic_window.wasm ./examples/core_basic_window.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/core_basic_screen_manager.wasm ./examples/core_basic_screen_manager.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/core_input_keys.wasm ./examples/core_input_keys.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/shapes_colors_palette.wasm ./examples/shapes_colors_palette.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/game.wasm game.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/core_input_mouse_wheel.wasm ./examples/core_input_mouse_wheel.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/text_writing_anim.wasm ./examples/text_writing_anim.c -DPLATFORM_WEB -clang --target=wasm32 -I./include --no-standard-libraries -Wl,--export-table -Wl,--no-entry -Wl,--allow-undefined -Wl,--export=main -o wasm/textures_logo_raylib.wasm ./examples/textures_logo_raylib.c -DPLATFORM_WEB - diff --git a/nob.c b/nob.c index 7bcf321..15ef36d 100644 --- a/nob.c +++ b/nob.c @@ -29,9 +29,14 @@ Example examples[] = { .wasm_path = "./wasm/shapes_colors_palette.wasm", }, { - .src_path = "game.c", - .bin_path = "./build/game", - .wasm_path = "wasm/game.wasm", + .src_path = "./examples/tsoding_ball.c", + .bin_path = "./build/tsoding_ball", + .wasm_path = "./wasm/tsoding_ball.wasm", + }, + { + .src_path = "./examples/tsoding_snake/tsoding_snake.c", + .bin_path = "./build/tsoding_snake", + .wasm_path = "./wasm/tsoding_snake.wasm", }, { .src_path = "./examples/core_input_mouse_wheel.c", diff --git a/wasm/tsoding_snake.wasm b/wasm/tsoding_snake.wasm index 52b5439021abfab9fd7f01779e1ddca18763ab8f..aced634c046a83517d0164a4de3c519cbb0da524 100755 GIT binary patch delta 35 rcmdn