refactor: decouple sim from framework, remove voxel geometry
This commit is contained in:
parent
c538641ec8
commit
5a565844dd
41 changed files with 477 additions and 2407 deletions
12
pxl8.sh
12
pxl8.sh
|
|
@ -302,6 +302,7 @@ setup_sdl3() {
|
|||
|
||||
CFLAGS="$CFLAGS $SDL3_CFLAGS"
|
||||
LIBS="$LIBS $SDL3_LIBS $SDL3_RPATH"
|
||||
HAS_SDL3=1
|
||||
}
|
||||
|
||||
timestamp() {
|
||||
|
|
@ -476,7 +477,7 @@ case "$COMMAND" in
|
|||
print_info "Compiler cache: ccache enabled"
|
||||
fi
|
||||
|
||||
INCLUDES="-Isrc/asset -Isrc/bsp -Isrc/core -Isrc/gfx -Isrc/gui -Isrc/hal -Isrc/math -Isrc/net -Isrc/procgen -Isrc/script -Isrc/shader -Isrc/sfx -Isrc/sim -Isrc/vxl -Isrc/world -Ilib/linenoise -Ilib/luajit/src -Ilib/miniz -I.build/shaders/c"
|
||||
INCLUDES="-Isrc/asset -Isrc/bsp -Isrc/core -Isrc/gfx -Isrc/gui -Isrc/hal -Isrc/math -Isrc/net -Isrc/procgen -Isrc/script -Isrc/shader -Isrc/sfx -Isrc/sim -Isrc/world -Ilib/linenoise -Ilib/luajit/src -Ilib/miniz -I.build/shaders/c"
|
||||
COMPILE_FLAGS="$CFLAGS $INCLUDES"
|
||||
DEP_COMPILE_FLAGS="$DEP_CFLAGS $INCLUDES"
|
||||
|
||||
|
|
@ -518,7 +519,6 @@ case "$COMMAND" in
|
|||
src/gfx/pxl8_transition.c
|
||||
src/gui/pxl8_gui.c
|
||||
src/hal/pxl8_hal_sdl3.c
|
||||
src/hal/pxl8_mem_sdl3.c
|
||||
src/hal/pxl8_thread_sdl3.c
|
||||
src/math/pxl8_math.c
|
||||
src/math/pxl8_noise.c
|
||||
|
|
@ -529,14 +529,18 @@ case "$COMMAND" in
|
|||
src/script/pxl8_script.c
|
||||
src/sfx/pxl8_sfx.c
|
||||
src/sim/pxl8_sim.c
|
||||
src/vxl/pxl8_vxl.c
|
||||
src/vxl/pxl8_vxl_render.c
|
||||
src/world/pxl8_entity.c
|
||||
src/world/pxl8_world.c
|
||||
src/world/pxl8_world_chunk.c
|
||||
src/world/pxl8_world_chunk_cache.c
|
||||
"
|
||||
|
||||
if [[ "$HAS_SDL3" -eq 1 ]]; then
|
||||
PXL8_SOURCE_FILES="$PXL8_SOURCE_FILES src/hal/pxl8_mem_sdl3.c"
|
||||
else
|
||||
PXL8_SOURCE_FILES="$PXL8_SOURCE_FILES src/hal/pxl8_mem.c"
|
||||
fi
|
||||
|
||||
LUAJIT_LIB="lib/luajit/src/libluajit.a"
|
||||
OBJECT_DIR="$BUILDDIR/obj"
|
||||
mkdir -p "$OBJECT_DIR"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue