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
|
|
|
|
|
2022-09-29 18:11:47 +00:00
|
|
|
src/models/assets.c
|
2022-09-29 14:16:06 +00:00
|
|
|
src/models/components.c
|
|
|
|
src/models/items.c
|
|
|
|
src/models/entity.c
|
|
|
|
src/models/device.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
|
|
|
|
src/models/prefabs/storage.c
|
|
|
|
src/models/prefabs/furnace.c
|
2022-09-29 17:28:56 +00:00
|
|
|
src/models/prefabs/blueprint.c
|
2022-09-27 12:56:48 +00:00
|
|
|
|
|
|
|
src/pkt/packet.c
|
|
|
|
|
|
|
|
src/debug/debug_ui.c
|
|
|
|
src/debug/debug_draw.c
|
|
|
|
|
|
|
|
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)
|
|
|
|
target_link_libraries(eco2d-foundation raylib cwpack flecs-bundle vendors-bundle)
|
|
|
|
|
|
|
|
link_system_libs(eco2d-foundation)
|