A little build script cleanup
This commit is contained in:
parent
b792476d36
commit
071e8560d4
|
@ -18,4 +18,8 @@ Debug/*
|
||||||
|
|
||||||
src/bindgen_core_api.c
|
src/bindgen_core_api.c
|
||||||
src/bindgen_gles_api.c
|
src/bindgen_gles_api.c
|
||||||
|
sdk/io_stubs.c
|
||||||
|
sdk/orca_surface.c
|
||||||
*bind_gen.c
|
*bind_gen.c
|
||||||
|
|
||||||
|
.vscode/settings.json
|
||||||
|
|
2
milepost
2
milepost
|
@ -1 +1 @@
|
||||||
Subproject commit 21aa1bef68c3590c1898a539da4c38e3854a5a9d
|
Subproject commit 23984e8370816c3f324af6ae58172c7be9ada32f
|
|
@ -11,16 +11,22 @@ else
|
||||||
CLANG=clang
|
CLANG=clang
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
STDLIB_DIR=../../cstdlib
|
||||||
|
ORCA_SDK_DIR=../../sdk
|
||||||
|
MILEPOST_DIR=../../milepost
|
||||||
|
|
||||||
wasmFlags="--target=wasm32 \
|
wasmFlags="--target=wasm32 \
|
||||||
--no-standard-libraries \
|
--no-standard-libraries \
|
||||||
-fno-builtin \
|
-fno-builtin \
|
||||||
-Wl,--no-entry \
|
-Wl,--no-entry \
|
||||||
-Wl,--export-dynamic \
|
-Wl,--export-dynamic \
|
||||||
-g \
|
-g \
|
||||||
-O2 \
|
-O2 \
|
||||||
-mbulk-memory \
|
-mbulk-memory \
|
||||||
-D__ORCA__ \
|
-D__ORCA__ \
|
||||||
-isystem ../../cstdlib/include -I ../../sdk -I../../milepost/ext -I ../../milepost -I ../../milepost/src -I ../../milepost/src/util -I ../../milepost/src/platform -I../.."
|
-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
|
$CLANG $wasmFlags -o ./module.wasm ../../sdk/orca.c ../../cstdlib/src/*.c src/main.c
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,13 @@
|
||||||
*
|
*
|
||||||
*****************************************************************/
|
*****************************************************************/
|
||||||
|
|
||||||
#include"keys.h"
|
#include<keys.h>
|
||||||
#include"graphics.h"
|
#include<graphics.h>
|
||||||
|
|
||||||
#include"orca.h"
|
#include<orca.h>
|
||||||
|
|
||||||
#define M_PI 3.14159265358979323846
|
#define M_PI 3.14159265358979323846
|
||||||
|
|
||||||
extern float cosf(float x);
|
|
||||||
extern float sinf(float x);
|
|
||||||
|
|
||||||
const mg_color paddleColor = {1, 0, 0, 1};
|
const mg_color paddleColor = {1, 0, 0, 1};
|
||||||
mp_rect paddle = {200, 40, 200, 40};
|
mp_rect paddle = {200, 40, 200, 40};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue