Repository Tour
This chapter is the map of the repository: what every top-level directory holds, how an engine module
directory is laid out (and how core differs), where tests and their helpers live, and which files are
generated or downloaded and therefore never committed.
Top level
| Path | Purpose |
|---|---|
README.md |
short project description, build requirements, pointers into docs/ |
LICENSE, NOTICE, THIRD_PARTY_NOTICES.md |
the Apache-2.0 text, the copyright notice ("the Conjure contributors") and the generated list of every third-party dependency with its licence, and the licence text of each pinned one |
CMakeLists.txt |
root build: options, configurations, global compiler settings, add_subdirectory order |
CMakePresets.json |
configure, build, test and workflow presets per platform and configuration |
cmake/ |
build helpers: ConjureConfigs.cmake, ConjureModule.cmake (modules, core areas, executables, conjure_add_game_module), ConjureSharedLibrary.cmake (the umbrella conjure_shared, abi_identity.h), ConjureShaders.cmake and ConjureShaderIndex.cmake (shader compilation and index.json), ConjureTesting.cmake, ConjureWarnings.cmake, ConjureSanitizers.cmake, FindNetHost.cmake, ConjureNotices.cmake (licence notices: registration, the runtime THIRD_PARTY_NOTICES.txt, the notices.* CTest entries) and its probe ConjureNoticesProbe.cmake |
third_party/ |
CMakeLists.txt with every pinned dependency and its licence notice (conjure_third_party_notice()), the editor's fonts included (the Inter, Fira Code and JetBrains Mono release archives and Fira Code's licence file, each pinned by SHA-256, installed into bin/fonts by conjure::thirdparty::editor_fonts), jxl.cmake (libjxl and the three libraries it builds, pinned by archive SHA-256, with their four notices) and its configure checks jxl_checks.cmake, src/ with the single-file implementation units (stb_impl.c, cgltf_impl.c, miniaudio_impl.c) and licenses/ with the licence texts of software that is followed, not fetched (the two tonemap fits) |
engine/ |
the engine: include/conjure/<module>/ public headers, src/<module>/ implementation, shaders/ the engine's HLSL sources and their CMakeLists.txt (conjure_add_shaders), CMakeLists.txt with the module list |
editor/ |
the conjure_editor executable: src/main.cpp over conjure::shared (Editor module); resources/ the Windows icon resource and its generated .ico |
runtime/ |
the conjure_runtime executable: src/main.cpp over conjure::shared (Runtime); cmake/ holds ConjureMsvcRuntime.cmake (which Visual C++ redistributable folder a Distribution build ships) and its probe |
managed/ |
the C# SDK (Conjure.Managed), the test scripts and the project templates built with dotnet |
samples/ |
sample projects, first feature_test (skipped until feature_test/CMakeLists.txt exists) |
tests/ |
the test support library, one test directory per module, the style check registration |
tools/ |
Python scripts: build driver, style, export, documentation, Distribution-symbol and CI-skip checks, asset download, the native API and icon generators; tests/ holds the self-tests of the documentation checker, the icon generator and the other tools (Tools) |
docs/ |
API documentation, the engineering handbook, style reference, and generated protocol data |
.github/workflows/ |
ci.yml, the pull-request matrix, and nightly.yml, the nightly matrix (slow cases, TSan, Distribution export, golden images, benchmarks; see Continuous Integration) |
mkdocs.yml |
the documentation site (navigation, theme, plugins) |
.clang-format, .editorconfig, .gitattributes, .gitignore |
editor and git configuration: LF everywhere, binary extensions marked, build outputs ignored |
Engine modules in dependency order, as listed in engine/CMakeLists.txt (CONJURE_ENGINE_MODULES):
core, ecs, platform, rhi, assets, audio, modules, scene, renderer, physics,
scripting, engine, bindings, editor. The last returns early unless CONJURE_BUILD_EDITOR and declares
three libraries and one archive:
| Target | What it is |
|---|---|
conjure_editor_core |
commands, undo, the protocol, play mode, the headless runner and the editor application; no ImGui and no sockets in a public header |
conjure_editor_kit |
the widget kit every panel and module draws with (engine/include/conjure/editor/kit/, engine/src/editor/kit/): tokens, typography and code ligatures, icons, the painter, widgets, containers and the frame record; public dependency conjure::editor_core, ImGui private |
conjure_editor_ui |
the ImGui workspace, the panels, the property drawers and the gizmos; links the kit and the bundled fonts |
conjure_editor_kit_hooks |
a small static archive (kit/imgui_test_hooks.cpp) holding ImGui's four test-engine hooks, linked into the ImGui target's interface so every link that holds ImGui resolves them (ImGui and the widget kit's hooks) |
Every module directory is in the tree; a listed directory without its CMakeLists.txt stops the configure with a
FATAL_ERROR. editor/ and runtime/ hold the two executables'
main.cpp, tests/integration/ the cross-module scenarios, tests/benchmarks/ the benchmark harness and
scenarios, tests/support/engine/ the engine-level test fixtures. Modules that talk to
hardware keep each backend's files together: rhi under src/rhi/backends/{d3d12,vulkan,null}/, platform
under src/platform/glfw/ next to a flat null_backend.cpp, audio as flat miniaudio_backend.{h,cpp} and
null_backend.cpp.
Engine module anatomy
A module <name> is the static library conjure_<name> (alias conjure::<name>) declared with
conjure_add_module() in engine/src/<name>/CMakeLists.txt:
engine/include/conjure/<name>/<type>.h public headers, one class each, documented with <summary> blocks
engine/src/<name>/CMakeLists.txt conjure_add_module(<name> PUBLIC_HEADERS ... SOURCES ... PUBLIC_DEPS ... PRIVATE_DEPS ...)
engine/src/<name>/log_category.h CONJURE_DECLARE_LOG_CATEGORY(LOG_<NAME>);
engine/src/<name>/log_category.cpp CONJURE_DEFINE_LOG_CATEGORY(LOG_<NAME>, "<name>");
engine/src/<name>/<type>.cpp implementation; private headers stay here too
engine/src/<name>/<backend>/ a real backend's files (rhi: backends/<api>/, platform: glfw/); the null backend sits beside them
engine/src/<name>/README.md purpose, main types, threading model, dependencies, how to test
tests/<name>/CMakeLists.txt conjure_add_test_module(<name> SOURCES ...) and conjure_header_check(conjure_<name>)
tests/<name>/test_<type>.cpp one test file per public header
Rules that follow from the layout:
- Public headers include other Conjure headers with quotes (
#include "conjure/core/log.h") and never a third-party header; glm is the single exception, reachable only throughconjure/core/math/glm_types.h. Third-party code is aPRIVATE_DEPSentry and is included fromsrc/only. - Platform code lives in per-platform translation units chosen by CMake (
process_windows.cpp,process_posix.cpp), never behind#ifdef _WIN32in shared code;conjure/core/platform_detect.his the only header that reads compiler macros. - Every source file is listed explicitly; there is no globbing anywhere in the build.
How core differs
core is an umbrella: engine/src/core/CMakeLists.txt creates the INTERFACE target conjure_core
(alias conjure::core) and adds one subdirectory per area from CONJURE_CORE_AREAS, each a static library
conjure_core_<area> (alias conjure::core_<area>) declared with conjure_add_core_area(). Every area
depends on foundation; the remaining dependencies are listed in engine/src/core/README.md.
| Area | engine/src/core/<area>/ |
Public headers | Test target |
|---|---|---|---|
foundation |
assert.cpp, error.cpp, log.cpp, uuid.cpp, local_time_{windows,posix}.cpp, private local_time.h, console_output.h, build_info.h.in |
flat: conjure/core/platform_detect.h, types.h, api.h, hash.h, error.h, result.h, assert.h, log.h, uuid.h, enum_flags.h; generated build_info.h |
conjure_core_foundation_tests |
math |
aabb.cpp, frustum.cpp, ray.cpp, transform.cpp, projection.cpp, private look_rotation.{h,cpp} |
conjure/core/math.h plus conjure/core/math/*.h |
conjure_core_math_tests |
containers |
containers.cpp |
conjure/core/containers/*.h (header-only templates) |
conjure_core_containers_tests |
strings |
string_id.cpp, string_utils.cpp, bit_vector.cpp, radix_sort.cpp |
flat: conjure/core/string_id.h, string_utils.h, bit_vector.h, radix_sort.h |
conjure_core_strings_tests |
memory |
arena.cpp, pool_allocator.cpp, frame_allocator.cpp, allocation_counters.cpp, tracked_allocation.cpp |
conjure/core/memory/*.h |
conjure_core_memory_tests |
time |
clock.cpp, random.cpp, event.cpp, event_bus.cpp |
flat: conjure/core/clock.h, random.h, event.h, delegate.h, event_bus.h |
conjure_core_time_tests |
jobs |
job_system.cpp, job_handle.cpp, main_thread.cpp, dedicated_thread.cpp, private thread_name.{h,cpp} |
conjure/core/jobs/*.h |
conjure_core_jobs_tests |
json |
value.cpp, document.cpp, writer.cpp, json.cpp, private json_internal.h |
conjure/core/json/*.h |
conjure_core_json_tests |
vfs |
file_system.cpp, native_file_system.cpp, memory_file_system.cpp, mount_table.cpp, path_utils.cpp, native_platform_{windows,posix}.cpp, private native_platform.{h,cpp}, vfs_internal.{h,cpp} |
conjure/core/vfs/*.h |
conjure_core_vfs_tests |
system |
process.cpp, dynamic_library.cpp, image.cpp, *_windows.cpp / *_posix.cpp, win32_utils.{h,cpp}, private system_internal.{h,cpp} |
flat: conjure/core/process.h, dynamic_library.h, image.h |
conjure_core_system_tests |
reflect |
type_info.cpp, type_registry.cpp, field_info.cpp, json_conversion.cpp, reflect.cpp, private pointer_index.{h,cpp} |
conjure/core/reflect/*.h |
conjure_core_reflect_tests |
Small areas keep their headers flat under conjure/core/; large ones use conjure/core/<area>/ with an
umbrella header (math.h, containers.h, memory.h, jobs.h, json.h, vfs.h, reflect.h). Each area
has its own README.md with the same four sections as a module README.
Where tests live
tests/CMakeLists.txt adds support/, benchmarks/ with CONJURE_BUILD_BENCHMARKS, then one directory per
module (CONJURE_TEST_MODULES), integration/ and third_party/; a listed
directory without its CMakeLists.txt stops the configure. Registers the Python
CTest entries: style.check and docs.check, the tools' self-tests and
brand.icons_up_to_date (section 4)
tests/support/ conjure_test_support (and conjure_test_support_shared, the same sources against
conjure::shared): include/conjure/testing/*.h, src/*.cpp, src/test_main.cpp,
src/tracked_global_new.cpp; tests/ holds its self-tests (conjure_support_tests)
tests/<module>/ conjure_<module>_tests: test_<header>.cpp per public header, plus a
<module>_test_support.{h,cpp} where the suite needs a fixture or a precondition probe
tests/core/<area>/ conjure_core_<area>_tests, mirroring engine/src/core/<area>
tests/modules/fixtures/<name>/ one fixture plugin per directory (module.json and a .cpp), built with
conjure_add_game_module() into build/<preset>/test_modules/<name>/
tests/third_party/ configure probes of the third-party pin checks and of jxl.cmake
(third_party.jxl_*): no executable, no download
tests/editor/ conjure_editor_tests: the editor_core headers at the top level and in
protocol/, ui/ and ui/panels/ for the UI library, kit/ for the widget kit
tests/editor/kit/ test_<header>.cpp per public header of conjure/editor/kit; support/ (the kit's
test frame and probes), text/ (the font loader, GSUB reader and code
ligatures, private headers), golden/ (the kit goldens)
tests/editor/data/ command files, the protocol corpus, kit_mockup/ (the structural layout
references) and kit_golden/ (the golden references, lossless JPEG XL)
Conventions worth knowing when looking for something:
- Test helpers shared by one executable sit next to the tests as plain headers and are listed in the same
conjure_add_test_module()call:tests/core/containers/tracked_value.h,tests/core/math/math_test.h,tests/core/jobs/jobs_test_support.{h,cpp},tests/core/vfs/vfs_test_helpers.h,tests/core/reflect/reflect_test_types.h,tests/support/tests/support_child_runner.h. - Helper programs the tests spawn are separate targets in the same directory:
tests/core/system/buildsconjure_process_child,conjure_test_shared_libraryandconjure_test_dependent_library(the two libraries go tobin/core_system_libraries/on purpose);tests/support/tests/buildsconjure_support_child. Their paths reach the tests as compile definitions. tools/style_exceptions.jsonlists, each with its reason, the public headers that have no test file (macro-only headers), the editor sources allowed to reach ImGui (kit_only_exceptions), and the test files allowed to use otherwise forbidden constructs or to include a third-party header.tests/assets/is both theassetsmodule unit-test directory and the in-repo fixture root:projects/,scenes/andprefabs/hold the read-only fixturesconjure::testing::repo_asset()resolves throughCONJURE_TEST_REPO_ASSET_ROOT(tests/assets/README.mdlists each).tests/.downloaded/is created bytools/download_test_assets.pyand ignored (section 6). The following directories do not exist yet:tests/downloaded/,tests/golden/,tests/sanitizers/.
Tools
| Script | Role |
|---|---|
tools/build.py |
cross-platform build driver: default preset per host, MSVC environment import, --build-dir, --target, --test -R/-L, --clean |
tools/prune_builds.py |
lists the build trees directly under build/ with size and last change, and removes stale or named ones (--older-than, --all, --keep, --delete) while keeping the presets' binary directories (Private Build Directories) |
tools/check_style.py |
mechanical style rules over engine/, editor/, runtime/, tests/, samples/; --tests-mirror-headers; CTest entry style.check |
tools/style_exceptions.json |
the exception tables read by check_style.py: tests_mirror_headers, kit_only_exceptions, forbidden_in_tests, third_party_in_tests |
tools/check_exports.py |
reports public classes, free functions and extern variables without CONJURE_API; every module by default (or the modules named); CTest exports.check_annotations, exports.check_tool, exports.count_shared_library |
tools/check_docs.py |
documentation structure and coverage checks; CTest entry docs.check |
tools/tests/test_check_docs.py |
documentation checker tests over temporary repositories; CTest entry docs.check_tool |
tools/tests/test_docs.py |
documentation command and four-template tests; CTest entry docs.driver_tool |
tools/tests/test_docs_site.py |
metadata, code-link, alert, diagram, and strict site-build tests; uses the docs environment |
tools/create_doc.py, tools/docs_templates/ |
safe draft creation from wiki, scope, module, and header templates |
tools/regenerate_docs.py |
preserves existing prose while refreshing all page layouts, public-header details, metadata, and navigation; --check detects drift |
tools/tests/test_regenerate_docs.py |
regeneration, preservation, source-update, and repeatability tests; CTest entry docs.regeneration_tool |
tools/docs_site.py |
site rendering for metadata tables and linked code signatures; page-rule validation |
tools/check_distribution_symbols.py |
proves the Distribution conjure_runtime and conjure_shared carry no editor or Dear ImGui symbol; CTest runtime.distribution_symbols (labels runtime;process; registered in a Distribution tree, in a multi-config tree (where it skips with 77 unless ctest runs -C Distribution) or with CONJURE_DISTRIBUTION_BUILD_DIR) and its self-test runtime.check_distribution_symbols_tool; --self-test also runs in style-and-headers |
tools/ctest_check_skips.py |
fails a CI run when a skipped test carries no allowed label or name tag, reading the ctest JUnit output; used in ci.yml and nightly.yml, with --self-test in style-and-headers |
tools/generate_native_api.py |
generates native_api_hash.h, NativeApi.g.cs and docs/generated/native_api_manifest.json from native_api.inl, and BindingStatus.g.cs from bindings_error.inl; CTest conjure_scripting_api_generated_up_to_date runs --check |
tools/generate_brand_icons.py, tools/tests/test_generate_brand_icons.py |
the editor icon (Branding and Application Icons); CTest brand.icons_up_to_date and brand.icons_tool |
tools/kit_triptych.py, tools/tests/test_kit_triptych.py |
the widget kit's review triptychs (the approved mockup's render, the kit's render and their difference) from what a run of the kit goldens left in a build tree (Widget kit goldens); CTest kit.triptych_tool |
tools/third_party_notices.py, tools/tests/test_third_party_notices.py |
writes and checks THIRD_PARTY_NOTICES.md from a build tree's notices manifest (--build-dir, --manifest, --check); CTest notices.up_to_date and notices.tool |
tools/tests/test_build.py, test_prune_builds.py, test_check_style.py, test_download_test_assets.py, test_generate_native_api.py |
the self-tests of build.py, prune_builds.py, check_style.py, download_test_assets.py and generate_native_api.py; CTest build.driver_tool, build.prune_tool, style.check_tool, test_assets.downloader_tool, native_api.generator_tool |
tools/docs.py |
install, serve, build, check for the documentation site |
tools/docs_requirements.txt |
pinned MkDocs toolchain |
tools/download_test_assets.py, tools/test_assets.json, tools/test_assets.lock |
downloads the public fixtures listed in the manifest into tests/.downloaded/, verifies every file against the SHA-256 pinned in the committed lock (a file the lock does not know is pinned on first download and the lock is committed with the change; --verify and --locked fail on an unpinned asset), writes the .assets_ready stamp |
Documentation
| Path | Content |
|---|---|
docs/index.md |
landing page of the site: pick your document set |
docs/api/ |
📘 Public API wiki, one directory per module |
docs/handbook/ |
🛠 Engineering handbook (this set); engine/ and editor/ contain scoped module/header pages, module-system/ is the module system chapter |
docs/assets/ |
images, SVG diagrams, editable stylesheets/ and javascripts/; brand/ holds the logo masters and per-size icon drawings (Branding and Application Icons) |
Generated and ignored files
Nothing in this table is committed; .gitignore covers all of it.
| Path | Produced by | Notes |
|---|---|---|
build/, out/, install/, export/ |
CMake presets, tools/build.py --build-dir, future export |
every build tree, including private ones |
build/<preset>/generated/include/conjure/core/build_info.h |
configure_file() in engine/src/core/CMakeLists.txt |
edit build_info.h.in or the project() version, never the output |
build/<preset>/generated/include/conjure/modules/abi_identity.h |
the conjure_abi_identity target (cmake/ConjureSharedLibrary.cmake) |
header hash, compiler major and runtime facts; rewritten at build time when a public header changes |
build/<preset>/bin/shaders/ (*.dxil, *.spv, index.json) |
conjure_add_shaders() from engine/shaders/CMakeLists.txt |
read by rhi::shader_library from next to the executable; depfiles make a changed .hlsli rebuild its permutations |
build/<preset>/bin/fonts/ (*.ttf, LICENSE-<Family>.txt) |
conjure_thirdparty_editor_font_files in third_party/CMakeLists.txt (editor builds only) |
the editor's bundled fonts, read by its font loader from next to the executable; never in a Distribution tree or an export |
build/<preset>/test_modules/<name>/ |
tests/modules/CMakeLists.txt |
the fixture plugins' module.json copies and bin/<platform>-<arch>-<config>/ binaries |
build/<preset>/_deps/ |
FetchContent | cached in CI keyed by the hash of third_party/CMakeLists.txt and third_party/*.cmake; libjxl unpacks into libjxl-<version>-src with Highway, Brotli and skcms inside its third_party/ |
build/<preset>/notices/ |
every configure (cmake/ConjureNotices.cmake) |
the notices manifest third_party_notices.json and the runtime notices |
build/<preset>/bin/THIRD_PARTY_NOTICES.txt |
building conjure_runtime |
the licence notices placed next to the runtime; export step 5 ships the file |
build/<preset>/tests/.../header_check/<target>/*.cpp |
conjure_header_check() |
one stub per public header, regenerated only when the header list changes |
build/<preset>/tests/.../<target>_labels.cmake, <target>_tests-*.cmake |
conjure_add_test_module(), doctest discovery |
the CTest entries and their labels |
build/<preset>/test_output/<executable>/, test_tmp/<executable>/ |
test executables | temp_directory lives under test_tmp; per executable so parallel CTest processes never share a directory |
CMakeUserPresets.json |
you | personal presets, ignored |
tests/.downloaded/ and tests/.assets_ready |
tools/download_test_assets.py |
ignored by .gitignore; the hash lock tools/test_assets.lock is committed |
**/bin/, **/obj/, *.nupkg |
dotnet |
managed build outputs |
*.dxil, *.spv, *.cso |
dxc, glslang |
compiled shaders, wherever they land |
.venv-docs/, site/ |
tools/docs.py install / build |
documentation toolchain and site output |
__pycache__/, *.pyc |
Python | |
.vs/, .vscode/, .idea/, *.user, *.log, *.dmp, /logs/ |
IDEs, the engine | editor state, logs, crash dumps |
Generator outputs that the build needs on every machine are committed instead and checked by CTest: the editor's
icon (editor/resources/conjure_editor.ico, engine/src/editor/ui/editor_icon_data.cpp) comes from
tools/generate_brand_icons.py, and brand.icons_up_to_date fails while either differs from the drawings;
THIRD_PARTY_NOTICES.md comes from tools/third_party_notices.py, and notices.up_to_date fails while it
differs from the licence files the tree fetched.
.gitattributes normalises every text file to LF and marks .png.ico.jpg.jxl.hdr.glb.bin.wav.ogg.mp3
.ttf.dxil.spv as binary; tools/check_style.py rejects a CRLF source file, so configure your editor rather than git.
Related
- Architecture: module map and dependency graph
engine/src/<module>/README.mdfor every module and the core area READMEs- Building and Configuration, Testing and Benchmarks, the Engine and Editor scope pages