A little build script cleanup

This commit is contained in:
Ben Visness 2023-06-30 17:14:10 -05:00
parent b792476d36
commit 071e8560d4
4 changed files with 24 additions and 17 deletions

6
.gitignore vendored
View File

@ -18,4 +18,8 @@ Debug/*
src/bindgen_core_api.c
src/bindgen_gles_api.c
*bind_gen.c
sdk/io_stubs.c
sdk/orca_surface.c
*bind_gen.c
.vscode/settings.json

@ -1 +1 @@
Subproject commit 21aa1bef68c3590c1898a539da4c38e3854a5a9d
Subproject commit 23984e8370816c3f324af6ae58172c7be9ada32f

View File

@ -11,16 +11,22 @@ else
CLANG=clang
fi
STDLIB_DIR=../../cstdlib
ORCA_SDK_DIR=../../sdk
MILEPOST_DIR=../../milepost
wasmFlags="--target=wasm32 \
--no-standard-libraries \
-fno-builtin \
-Wl,--no-entry \
-Wl,--export-dynamic \
-g \
-O2 \
-mbulk-memory \
-D__ORCA__ \
-isystem ../../cstdlib/include -I ../../sdk -I../../milepost/ext -I ../../milepost -I ../../milepost/src -I ../../milepost/src/util -I ../../milepost/src/platform -I../.."
--no-standard-libraries \
-fno-builtin \
-Wl,--no-entry \
-Wl,--export-dynamic \
-g \
-O2 \
-mbulk-memory \
-D__ORCA__ \
-I $STDLIB_DIR/include \
-I $ORCA_SDK_DIR \
-I $MILEPOST_DIR/ext -I $MILEPOST_DIR -I $MILEPOST_DIR/src -I $MILEPOST_DIR/src/util -I $MILEPOST_DIR/src/platform"
$CLANG $wasmFlags -o ./module.wasm ../../sdk/orca.c ../../cstdlib/src/*.c src/main.c

View File

@ -7,16 +7,13 @@
*
*****************************************************************/
#include"keys.h"
#include"graphics.h"
#include<keys.h>
#include<graphics.h>
#include"orca.h"
#include<orca.h>
#define M_PI 3.14159265358979323846
extern float cosf(float x);
extern float sinf(float x);
const mg_color paddleColor = {1, 0, 0, 1};
mp_rect paddle = {200, 40, 200, 40};