Relative Content

Tag Archive for c++meson-build

meson windows dll setup

i have a meson project with a an engine [compiled as a shared_library] and a game [compiled as an executable]. the setup i want is the following:
the engine gets compiled into a .dll file which is then linked at runtime by game.exe.
i’ve learned [and this might be wrong] that to do this on windows, you need to compile your library into both a dll file holding the function & class implementations, and a dll-lib which you link into your application during compilation.
i didn’t find a proper way to compile one codebase into a dll and a lib, where the lib isn’t a full version of the library but simply a means to link the dll at runtime.