Sort src/ into subsystem folders (engine, game, level, level/grid, entity with player, npc, boss, familiar, effect, pickup and weapon, ui, ui/menu, lua, online), drop each folder's prefix from file names, include by path from src/, glob src/ recursively

This commit is contained in:
shweet committed 2026-11-23 16:41:49 -05:00
1 parent 9254158eef
commit 7d3cf33c20
706 files changed
+5337 -5336

No files matched your search

+3 -2
View File
@@ -65,11 +65,12 @@ target_include_directories(theora SYSTEM PUBLIC external/theora/include)
target_link_libraries(theora PUBLIC ogg)
target_compile_options(theora PRIVATE -w)
# The curated game: src/*.cpp, written on top of the declarations generated-src/classes.h holds for every class.
# The curated game: every .cpp under src/, sorted into subsystem folders and including each other by path from src/,
# written on top of the declarations generated-src/classes.h holds for every class.
# generated-src/'s own bodies stay out until they compile (scripts/source_tree.py --check reports how many do).
# generated-src/stubs.cpp defines everything not curated yet as a stub that stops the game where it is reached, so the
# executable always links and runs exactly as far as src/ goes.
file(GLOB SOURCES CONFIGURE_DEPENDS src/*.cpp)
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS src/*.cpp)
add_executable(isaac ${SOURCES} generated-src/stubs.cpp)
target_include_directories(isaac PRIVATE src)
target_include_directories(isaac SYSTEM PRIVATE generated-src external/stb)