Skip to content

Commit

Permalink
server: restructurized rest of entities (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
APAmk2 authored Nov 30, 2023
1 parent e264daa commit 09b8dca
Show file tree
Hide file tree
Showing 127 changed files with 9,680 additions and 8,174 deletions.
21 changes: 5 additions & 16 deletions server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,20 @@ include(CompilerRuntime)
check_include_file("tgmath.h" HAVE_TGMATH_H)

list(APPEND SVDLL_SOURCES
"bmodels.cpp"
"buttons.cpp"
"cbase.cpp"
"client.cpp"
"combat.cpp"
"ggrenade.cpp"
"base_tank.cpp"
"dll_int.cpp"
"doors.cpp"
"effects.cpp"
"explode.cpp"
"func_break.cpp"
"func_monitor.cpp"
"func_tank.cpp"
"game.cpp"
"gamerules.cpp"
"ggrenade.cpp"
"globals.cpp"
"h_battery.cpp"
"h_cycler.cpp"
"items.cpp"
"lights.cpp"
"mapents.cpp"
"maprules.cpp"
"mortar.cpp"
"multiplay_gamerules.cpp"
"novodex.cpp"
"pathcorner.cpp"
"physents.cpp"
"physic.cpp"
"physics/NxUserStream.cpp"
Expand All @@ -41,15 +29,13 @@ list(APPEND SVDLL_SOURCES
"ropes/CRope.cpp"
"ropes/CRopeSegment.cpp"
"saverestore.cpp"
"singleplay_gamerules.cpp"
"skill.cpp"
"sound.cpp"
"spectator.cpp"
"stats.cpp"
"strings.cpp"
"subs.cpp"
"sv_materials.cpp"
"teamplay_gamerules.cpp"
"triggers.cpp"
"user_messages.cpp"
"util.cpp"
Expand Down Expand Up @@ -81,6 +67,7 @@ list(APPEND SVDLL_SOURCES
file(GLOB ENTITIES_SOURCES "entities/*.cpp")
file(GLOB MONSTERS_SOURCES "monsters/*.cpp")
file(GLOB WEAPONS_SOURCES "weapons/*.cpp")
file(GLOB GAMERULES_SOURCES "gamerules/*.cpp")

# add .def file to sources
if(MSVC)
Expand All @@ -90,6 +77,7 @@ endif()
list(APPEND SVDLL_SOURCES ${ENTITIES_SOURCES})
list(APPEND SVDLL_SOURCES ${MONSTERS_SOURCES})
list(APPEND SVDLL_SOURCES ${WEAPONS_SOURCES})
list(APPEND SVDLL_SOURCES ${GAMERULES_SOURCES})
add_library(${PROJECT_NAME} SHARED ${SVDLL_SOURCES})

target_include_directories(${PROJECT_NAME} PRIVATE
Expand All @@ -98,6 +86,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE
"physics"
"weapons"
"entities"
"gamerules"
"wpn_shared"
"${CMAKE_SOURCE_DIR}/external/novodex"
"${CMAKE_SOURCE_DIR}/common"
Expand Down
Loading

0 comments on commit 09b8dca

Please sign in to comment.