16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 00:49:19 +02:00

Reorganize source files into logical subdirectories

Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-14 19:01:57 +00:00
parent f981f81d55
commit 0531086bb9
221 changed files with 131 additions and 108 deletions

View File

@@ -45,7 +45,19 @@ file(GLOB HEADERS "*.h"
"widgets/*.h" "widgets/*.h"
"launcher/*.h" "launcher/*.h"
"extras/*.h" "extras/*.h"
"global_include/*.h") "global_include/*.h"
"simulation/*.h"
"scene/*.h"
"rendering/*.h"
"audio/*.h"
"environment/*.h"
"application/*.h"
"input/*.h"
"scripting/*.h"
"model/*.h"
"utilities/*.h"
"world/*.h"
"vehicle/*.h")
set(GLOBAL_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}") set(GLOBAL_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(GLOBAL_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/global_include") set(GLOBAL_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/global_include")
@@ -79,101 +91,100 @@ list(APPEND CMAKE_PREFIX_PATH "${VCPKG_INSTALLED_PATH}")
list(APPEND CMAKE_MODULE_PATH "${VCPKG_INSTALLED_PATH}/share") list(APPEND CMAKE_MODULE_PATH "${VCPKG_INSTALLED_PATH}/share")
set(SOURCES set(SOURCES
"Texture.cpp" "model/Texture.cpp"
"Timer.cpp" "utilities/Timer.cpp"
"Track.cpp" "world/Track.cpp"
"Traction.cpp" "world/Traction.cpp"
"TractionPower.cpp" "world/TractionPower.cpp"
"Train.cpp" "vehicle/Train.cpp"
"TrkFoll.cpp" "world/TrkFoll.cpp"
"AirCoupler.cpp" "vehicle/AirCoupler.cpp"
"AnimModel.cpp" "model/AnimModel.cpp"
"Button.cpp" "vehicle/Button.cpp"
"Camera.cpp" "vehicle/Camera.cpp"
"Driver.cpp" "vehicle/Driver.cpp"
"driverhints.cpp" "application/driverhints.cpp"
"dumb3d.cpp" "utilities/dumb3d.cpp"
"DynObj.cpp" "vehicle/DynObj.cpp"
"EU07.cpp" "EU07.cpp"
"export_e3d_standalone.cpp" "export_e3d_standalone.cpp"
"Event.cpp" "world/Event.cpp"
"EvLaunch.cpp" "world/EvLaunch.cpp"
"Float3d.cpp" "utilities/Float3d.cpp"
"Gauge.cpp" "vehicle/Gauge.cpp"
"Globals.cpp" "utilities/Globals.cpp"
"Logs.cpp" "utilities/Logs.cpp"
"McZapkie/friction.cpp" "McZapkie/friction.cpp"
"McZapkie/hamulce.cpp" "McZapkie/hamulce.cpp"
"McZapkie/Mover.cpp" "McZapkie/Mover.cpp"
"McZapkie/Oerlikon_ESt.cpp" "McZapkie/Oerlikon_ESt.cpp"
"MdlMngr.cpp" "model/MdlMngr.cpp"
"MemCell.cpp" "world/MemCell.cpp"
"Model3d.cpp" "model/Model3d.cpp"
"mtable.cpp" "world/mtable.cpp"
"parser.cpp" "utilities/parser.cpp"
"nullrenderer.cpp" "rendering/nullrenderer.cpp"
"renderer.cpp" "rendering/renderer.cpp"
"ResourceManager.cpp" "model/ResourceManager.cpp"
"sn_utils.cpp" "scene/sn_utils.cpp"
"Segment.cpp" "world/Segment.cpp"
"sky.cpp" "environment/sky.cpp"
"sun.cpp" "environment/sun.cpp"
"stars.cpp" "environment/stars.cpp"
"lightarray.cpp" "rendering/lightarray.cpp"
"skydome.cpp" "environment/skydome.cpp"
"sound.cpp" "audio/sound.cpp"
"Spring.cpp" "world/Spring.cpp"
"frustum.cpp" "rendering/frustum.cpp"
"uilayer.cpp" "application/uilayer.cpp"
"openglmatrixstack.cpp" "rendering/openglmatrixstack.cpp"
"moon.cpp" "environment/moon.cpp"
"command.cpp" "input/command.cpp"
"keyboardinput.cpp" "input/keyboardinput.cpp"
"gamepadinput.cpp" "input/gamepadinput.cpp"
"drivermouseinput.cpp" "input/drivermouseinput.cpp"
"translation.cpp" "utilities/translation.cpp"
"material.cpp" "model/material.cpp"
"stdafx.cpp" "stdafx.cpp"
"messaging.cpp" "input/messaging.cpp"
"scene.cpp" "scene/scene.cpp"
"scenenode.cpp" "scene/scenenode.cpp"
"simulation.cpp" "simulation/simulation.cpp"
"vertex.cpp" "model/vertex.cpp"
"audio.cpp" "audio/audio.cpp"
"audiorenderer.cpp" "audio/audiorenderer.cpp"
"motiontelemetry.cpp" "utilities/motiontelemetry.cpp"
"utilities.cpp" "utilities/utilities.cpp"
"uitranscripts.cpp" "application/uitranscripts.cpp"
"station.cpp" "world/station.cpp"
"application.cpp" "application/application.cpp"
"simulationtime.cpp" "simulation/simulationtime.cpp"
"sceneeditor.cpp" "scene/sceneeditor.cpp"
"screenshot.cpp" "rendering/screenshot.cpp"
"driverkeyboardinput.cpp" "input/driverkeyboardinput.cpp"
"drivermode.cpp" "application/drivermode.cpp"
"driveruilayer.cpp" "application/driveruilayer.cpp"
"driveruipanels.cpp" "application/driveruipanels.cpp"
"editorkeyboardinput.cpp" "input/editorkeyboardinput.cpp"
"editormode.cpp" "application/editormode.cpp"
"editormouseinput.cpp" "input/editormouseinput.cpp"
"editoruilayer.cpp" "application/editoruilayer.cpp"
"editoruipanels.cpp" "application/editoruipanels.cpp"
"scenarioloadermode.cpp" "application/scenarioloadermode.cpp"
"scenarioloaderuilayer.cpp" "application/scenarioloaderuilayer.cpp"
"scenenodegroups.cpp" "scene/scenenodegroups.cpp"
"simulationenvironment.cpp" "simulation/simulationenvironment.cpp"
"simulationstateserializer.cpp" "simulation/simulationstateserializer.cpp"
"precipitation.cpp" "rendering/precipitation.cpp"
"pythonscreenviewer.cpp" "scripting/pythonscreenviewer.cpp"
"dictionary.cpp" "utilities/dictionary.cpp"
"particles.cpp" "rendering/particles.cpp"
"headtrack.cpp" "utilities/headtrack.cpp"
"headtrack.h" "scripting/ladderlogic.cpp"
"ladderlogic.cpp" "rendering/geometrybank.cpp"
"geometrybank.cpp" "rendering/openglcolor.cpp"
"openglcolor.cpp" "simulation/simulationsounds.cpp"
"simulationsounds.cpp" "rendering/openglcamera.cpp"
"openglcamera.cpp"
"network/network.cpp" "network/network.cpp"
"network/message.cpp" "network/message.cpp"
@@ -232,7 +243,7 @@ set_source_files_properties("imgui/imgui_impl_opengl2.cpp" PROPERTIES SKIP_PRECO
if (WITH_CRASHPAD) if (WITH_CRASHPAD)
set(DEFINITIONS ${DEFINITIONS} "WITH_CRASHPAD") set(DEFINITIONS ${DEFINITIONS} "WITH_CRASHPAD")
set(SOURCES ${SOURCES} "crashreporter.cpp") set(SOURCES ${SOURCES} "utilities/crashreporter.cpp")
if (WIN32) if (WIN32)
include_directories("${DEPS_DIR}/crashpad/include" "${DEPS_DIR}/crashpad/include/mini_chromium") include_directories("${DEPS_DIR}/crashpad/include" "${DEPS_DIR}/crashpad/include/mini_chromium")
else() else()
@@ -242,19 +253,19 @@ endif()
if (WITH_PYTHON) if (WITH_PYTHON)
set(DEFINITIONS ${DEFINITIONS} "WITH_PYTHON") set(DEFINITIONS ${DEFINITIONS} "WITH_PYTHON")
set(SOURCES ${SOURCES} "PyInt.cpp") set(SOURCES ${SOURCES} "scripting/PyInt.cpp")
else() else()
set(SOURCES ${SOURCES} "PyIntStub.cpp") set(SOURCES ${SOURCES} "scripting/PyIntStub.cpp")
endif() endif()
if (WITH_UART) if (WITH_UART)
set(DEFINITIONS ${DEFINITIONS} "WITH_UART") set(DEFINITIONS ${DEFINITIONS} "WITH_UART")
set(SOURCES ${SOURCES} "uart.cpp") set(SOURCES ${SOURCES} "utilities/uart.cpp")
endif() endif()
if (WITH_ZMQ) if (WITH_ZMQ)
set(DEFINITIONS ${DEFINITIONS} "WITH_ZMQ") set(DEFINITIONS ${DEFINITIONS} "WITH_ZMQ")
set(SOURCES ${SOURCES} "zmq_input.cpp") set(SOURCES ${SOURCES} "input/zmq_input.cpp")
endif() endif()
if (WITH_OPENVR) if (WITH_OPENVR)
@@ -264,7 +275,7 @@ endif()
if (WITH_LUA) if (WITH_LUA)
set(DEFINITIONS ${DEFINITIONS} "WITH_LUA") set(DEFINITIONS ${DEFINITIONS} "WITH_LUA")
set(SOURCES ${SOURCES} "lua.cpp") set(SOURCES ${SOURCES} "scripting/lua.cpp")
endif() endif()
if (WITHDUMPGEN) if (WITHDUMPGEN)
@@ -273,23 +284,23 @@ endif()
if (WITH_OPENGL_MODERN) if (WITH_OPENGL_MODERN)
set(SOURCES ${SOURCES} set(SOURCES ${SOURCES}
"opengl33geometrybank.cpp" "rendering/opengl33geometrybank.cpp"
"opengl33light.cpp" "rendering/opengl33light.cpp"
"opengl33skydome.cpp" "rendering/opengl33skydome.cpp"
"opengl33precipitation.cpp" "rendering/opengl33precipitation.cpp"
"opengl33particles.cpp" "rendering/opengl33particles.cpp"
"opengl33renderer.cpp") "rendering/opengl33renderer.cpp")
set(DEFINITIONS ${DEFINITIONS} "WITH_OPENGL_MODERN") set(DEFINITIONS ${DEFINITIONS} "WITH_OPENGL_MODERN")
endif() endif()
if (WITH_OPENGL_LEGACY) if (WITH_OPENGL_LEGACY)
set(SOURCES ${SOURCES} set(SOURCES ${SOURCES}
"openglgeometrybank.cpp" "rendering/openglgeometrybank.cpp"
"opengllight.cpp" "rendering/opengllight.cpp"
"openglskydome.cpp" "rendering/openglskydome.cpp"
"openglprecipitation.cpp" "rendering/openglprecipitation.cpp"
"openglparticles.cpp" "rendering/openglparticles.cpp"
"openglrenderer.cpp") "rendering/openglrenderer.cpp")
set(DEFINITIONS ${DEFINITIONS} "WITH_OPENGL_LEGACY") set(DEFINITIONS ${DEFINITIONS} "WITH_OPENGL_LEGACY")
endif() endif()
@@ -393,7 +404,19 @@ target_include_directories(${PROJECT_NAME} PRIVATE
"${DEPS_DIR}/glad/include" "${DEPS_DIR}/glad/include"
"${DEPS_DIR}/dds-ktx/include" "${DEPS_DIR}/dds-ktx/include"
"${CMAKE_BINARY_DIR}/geninc" "${CMAKE_BINARY_DIR}/geninc"
"${GLOBAL_INCLUDE_DIR}") "${GLOBAL_INCLUDE_DIR}"
"simulation"
"scene"
"rendering"
"audio"
"environment"
"application"
"input"
"scripting"
"model"
"utilities"
"world"
"vehicle")
if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC) if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
# override cmake defaults # override cmake defaults

Some files were not shown because too many files have changed in this diff Show More