ilimination of system code, removal of x-watcher and replacement of it by dmon, fixes in audio code, dynamic asset reload
This commit is contained in:
@ -64,18 +64,6 @@ set(PHYSFS_ARCHIVE_7Z OFF CACHE INTERNAL "")
|
||||
add_subdirectory(third-party/physfs ${CMAKE_CURRENT_BINARY_DIR}/third-party/physfs SYSTEM)
|
||||
add_subdirectory(third-party/libxm ${CMAKE_CURRENT_BINARY_DIR}/third-party/libxm SYSTEM)
|
||||
|
||||
|
||||
if(LINUX)
|
||||
set(SYSTEM_SOURCE_FILES
|
||||
src/system/linux/twn_timer.c
|
||||
$<$<BOOL:${TWN_FEATURE_DYNLIB_GAME}>:src/game_object/twn_linux_game_object.c>)
|
||||
elseif(WIN32)
|
||||
set(SYSTEM_SOURCE_FILES
|
||||
$<$<BOOL:${TWN_FEATURE_DYNLIB_GAME}>:src/game_object/twn_win32_game_object.c>)
|
||||
else()
|
||||
set(SYSTEM_SOURCE_FILES)
|
||||
endif()
|
||||
|
||||
if(EMSCRIPTEN)
|
||||
set(TWN_RENDERING_API WEBGL1)
|
||||
else()
|
||||
@ -96,15 +84,19 @@ set(TWN_THIRD_PARTY_SOURCE_FILES
|
||||
|
||||
set(TWN_NONOPT_SOURCE_FILES
|
||||
src/twn_stb.c
|
||||
src/twn_loop.c
|
||||
src/twn_main.c
|
||||
src/twn_context.c include/twn_context.h
|
||||
src/twn_audio.c include/twn_audio.h
|
||||
src/twn_util.c include/twn_util.h
|
||||
src/twn_input.c include/twn_input.h
|
||||
src/twn_camera.c src/twn_camera_c.h
|
||||
src/twn_textures.c src/twn_textures_c.h
|
||||
src/twn_filewatch.c src/twn_filewatch_c.h
|
||||
|
||||
src/twn_context.c include/twn_context.h
|
||||
src/twn_audio.c include/twn_audio.h
|
||||
src/twn_util.c include/twn_util.h
|
||||
src/twn_input.c include/twn_input.h
|
||||
|
||||
src/twn_loop.c src/twn_loop_c.h
|
||||
src/twn_camera.c src/twn_camera_c.h
|
||||
src/twn_textures.c src/twn_textures_c.h
|
||||
src/twn_filewatch.c src/twn_filewatch_c.h
|
||||
src/twn_filewatch.c src/twn_filewatch_c.h
|
||||
src/twn_timer.c src/twn_timer_c.h
|
||||
|
||||
src/rendering/twn_draw.c src/rendering/twn_draw_c.h
|
||||
src/rendering/twn_quads.c
|
||||
@ -114,12 +106,14 @@ set(TWN_NONOPT_SOURCE_FILES
|
||||
src/rendering/twn_triangles.c
|
||||
src/rendering/twn_billboards.c
|
||||
src/rendering/twn_circles.c
|
||||
src/rendering/twn_skybox.c)
|
||||
src/rendering/twn_skybox.c
|
||||
)
|
||||
|
||||
set(TWN_SOURCE_FILES
|
||||
$<IF:$<BOOL:${TWN_USE_AMALGAM}>,src/twn_amalgam.c src/twn_stb.c,${TWN_NONOPT_SOURCE_FILES}>
|
||||
|
||||
# for dynamic load based solution main is compiled in a separate target
|
||||
$<$<BOOL:${TWN_FEATURE_DYNLIB_GAME}>:src/game_object/twn_dynamic_game_object.c>
|
||||
$<$<NOT:$<BOOL:${TWN_FEATURE_DYNLIB_GAME}>>:src/twn_main.c
|
||||
src/game_object/twn_static_game_object.c>
|
||||
|
||||
@ -258,7 +252,7 @@ function(include_deps target)
|
||||
third-party/physfs/extras
|
||||
third-party/libxm/include
|
||||
third-party/stb
|
||||
third-party/x-watcher
|
||||
third-party/dmon
|
||||
third-party/tomlc99
|
||||
$<$<NOT:$<BOOL:${EMSCRIPTEN}>>:third-party/glad/include>)
|
||||
|
||||
|
Reference in New Issue
Block a user