~spiral/fantasy_console

ref: 2edc810f07c26769186d373fbe7817c0ee3f381b fantasy_console/build -rwxr-xr-x 492 bytes
2edc810fspiral fix: don't load a new texture every time we update the screen 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# mostly just because i have no idea how to use makefiles
# I can't guarantee any of this will work on your system, but it should... i think?

(cd quickjs && make -j12)

quickjs/qjsc -c -o lib/js_gen.c lib/run.js
sed -i 's/"quickjs-libc.h"/"quickjs\/quickjs-libc.h"/' lib/js_gen.c

gcc -Wno-array-bounds -Wno-format-truncation -D_GNU_SOURCE -DCONFIG_BIGNUM -Wall -fPIC -L$(pwd)/quickjs -lpthread -lm -ldl -lraylib -o run quickjs/.obj/quickjs-libc.o quickjs/libquickjs.a lib/main.c