The engine as one shared library #11
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
#13 Layers, the game API boundary and the error-handling rules
UnflavoredMeson/Primal_Plus_Plus
#16 Job system module primal.jobs
UnflavoredMeson/Primal_Plus_Plus
#21 Reflection generator PrimalReflectGen
UnflavoredMeson/Primal_Plus_Plus
#2 CMake build for Linux next to MSBuild, warnings as errors, pinned downloads
UnflavoredMeson/Primal_Plus_Plus
#5 Unit tests with doctest
UnflavoredMeson/Primal_Plus_Plus
Reference
No Branch/Tag specified
Notifications
1 participant
Due date
No due date set.
Reference
UnflavoredMeson/Primal_Plus_Plus#11
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
Game code, the editor and the tests must share one world, one reflection registry and one log in a process. The fork found that out at the actor work and converted late. Doing it now means every later export is marked as it is written.
Decided
PrimalEngine.dll/libPrimalEngine.so; programs find it throughRUNPATH $ORIGINon Linux and by sitting next to it on Windows.EngineMain, a static library with itsmain()/WinMain.PRIMAL_API(inCommonDefinitions.h), in front, member by member, never on a class (that triggers MSVC C4251). Not on inline,constexpror template functions.Read first
Steps
PRIMAL_APIand switch CMake and MSBuild to a sharedPrimalEngine.EngineMainout ofCore/MainWin32.cpp(and a Linuxmain()).dlopen/LoadLibraryand sees the engine's state (proves one copy).Done when
PrimalEngineon both OSes with 0 warnings (C4251 stays on).Claude can help with
Learn
-fvisibility=hiddendoes, and why it makes Linux behave like Windows DLLs.