CMake build for Linux next to MSBuild, warnings as errors, pinned downloads #2
No assignees
Labels
No labels
area/build
area/content
area/editor
area/engine
area/graphics
area/platform
area/repo-wide
area/tests
area/tools
bug
optional
roadmap
size/L
size/M
size/S
No project
No milestone
Blocks
Depends on
#3 clang-tidy at zero warnings, no C-style casts, Windows compile databases
UnflavoredMeson/Primal_Plus_Plus
#4 Self-contained headers and no include cycles
UnflavoredMeson/Primal_Plus_Plus
#5 Unit tests with doctest
UnflavoredMeson/Primal_Plus_Plus
#9 Freeze the WPF editor
UnflavoredMeson/Primal_Plus_Plus
#8 Windows VM for build and test checks
UnflavoredMeson/Primal_Plus_Plus
#10 Platform detection and the Linux platform layer (SDL3)
UnflavoredMeson/Primal_Plus_Plus
#11 The engine as one shared library
UnflavoredMeson/Primal_Plus_Plus
#24 ShaderCompilerTool at build time
UnflavoredMeson/Primal_Plus_Plus
#1 Repository conventions: preferences, CLAUDE.md, headers, formatting
UnflavoredMeson/Primal_Plus_Plus
Reference
No Branch/Tag specified
Notifications
1 participant
Due date
No due date set.
Reference
UnflavoredMeson/Primal_Plus_Plus#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Linux needs a build system, and Windows keeps MSBuild for the solution. Every later issue builds on both, so both have to exist and agree before any engine code changes. Warnings as errors from the first day keep the code clean on three compilers without a later cleanup pass.
Decided
linux-debug,linux-release(clang) andlinux-gcc-debug,linux-gcc-release; Ninja. Output goes tox64/<Config>/like MSBuild.cxx_std_23in CMake;stdcpp23and toolset v145 in every.vcxproj(notstdcpplatest).-Wall -Wextra -Wpedanticwith-Werror(PRIMAL_WARNINGS_AS_ERRORS, default ON); MSVC/W4 /WX /permissive-(PrimalWarningsAsErrors, default on).cmake/PrimalDependencies.cmake(FetchContent with URL + SHA-256) and an MSBuild.targetsfile with the same version and hash. vcpkg is not used.PRIMAL_ENABLE_SANITIZERS=ONturns on ASan and UBSan.Read first
.vcxprojfiles" and "Phase 2".Engine/Engine.vcxprojandEngineTest/EngineTest.vcxprojonmaster.Steps
CMakeLists.txtandCMakePresets.jsonforEngine(static for now; S1 makes it shared) andEngineTest.Enginecompile on Linux: platform detection stubs,#ifaround Win32-only files. Keep every change small enough to review..vcxprojfiles to v145 andstdcpp23, with/W4 /WX /permissive-, and build the four configurations on Windows.cmake/PrimalDependencies.cmakeand the matching MSBuild.targetsfile, with DirectXMath as the first download.CLAUDE.md.Done when
cmake --build --preset linux-debugandlinux-gcc-debugbuildEngineandEngineTestwith 0 warnings.Claude can help with
.vcxprojdiff.Learn
/permissive-matters for code that has to build on clang and GCC.