2022-09-27 12:56:48 +00:00
|
|
|
file(GLOB PKT_SRCS src/packets/*.h src/packets/*.c)
|
|
|
|
|
|
|
|
add_library(eco2d-foundation STATIC
|
|
|
|
src/core/game.c
|
|
|
|
src/core/camera.c
|
2022-09-28 05:29:32 +00:00
|
|
|
src/core/rules_default.c
|
2022-09-27 12:56:48 +00:00
|
|
|
|
|
|
|
src/platform/signal_handling.c
|
|
|
|
src/platform/profiler.c
|
2023-01-14 09:24:57 +00:00
|
|
|
src/platform/input.c
|
2022-09-27 12:56:48 +00:00
|
|
|
|
2022-09-29 18:11:47 +00:00
|
|
|
src/models/assets.c
|
2022-10-18 06:57:43 +00:00
|
|
|
src/models/components.c
|
2022-09-29 14:16:06 +00:00
|
|
|
src/models/items.c
|
|
|
|
src/models/entity.c
|
|
|
|
src/models/device.c
|
2022-10-18 06:57:43 +00:00
|
|
|
src/models/crafting.c
|
2022-09-29 14:05:07 +00:00
|
|
|
|
2022-09-29 14:16:06 +00:00
|
|
|
src/models/prefabs/player.c
|
|
|
|
src/models/prefabs/vehicle.c
|
2022-09-27 12:56:48 +00:00
|
|
|
|
|
|
|
src/pkt/packet.c
|
|
|
|
|
2022-10-15 11:48:05 +00:00
|
|
|
src/gen/texgen_fallback.c
|
|
|
|
|
2023-01-15 15:59:33 +00:00
|
|
|
src/dev/debug_ui.c
|
|
|
|
src/dev/debug_draw.c
|
2022-09-27 12:56:48 +00:00
|
|
|
|
|
|
|
src/utils/options.c
|
|
|
|
src/utils/compress.c
|
|
|
|
|
|
|
|
src/net/network_enet.c
|
|
|
|
|
|
|
|
src/world/blocks.c
|
|
|
|
src/world/perlin.c
|
|
|
|
src/world/world.c
|
|
|
|
src/world/world_view.c
|
|
|
|
src/world/entity_view.c
|
|
|
|
src/world/prediction.c
|
|
|
|
|
2022-09-29 14:16:06 +00:00
|
|
|
src/systems/systems.c
|
2022-09-27 12:56:48 +00:00
|
|
|
|
|
|
|
${PKT_SRCS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(eco2d-foundation PRIVATE CLIENT)
|
|
|
|
include_directories(src ../modules ../../art/gen)
|
2023-01-31 22:51:39 +00:00
|
|
|
target_link_libraries(eco2d-foundation raylib raylib_nuklear cwpack flecs-bundle vendors-bundle)
|
2022-09-27 12:56:48 +00:00
|
|
|
|
|
|
|
link_system_libs(eco2d-foundation)
|