Nabla icon indicating copy to clipboard operation
Nabla copied to clipboard

Make Nabla build as shared library, change the default cmake config to shared lib

Open devshgraphicsprogramming opened this issue 4 years ago • 5 comments

Description

Shared libs config for Win32, Linux and Android.

Description of the related problem

Currently builds of Nabla incl. samples can be in excess of 50 GB, using .dll could cut it down by an order of magnitude,

Solution proposal

Produce 1 .dll/.so per namespace (also split up the static libs like this).

Dependencies are still to be linked statically into Nabla namespace libs (don't want DLL hell).

Additional context

To complete after appsincadd contract is finalized.

should there be a CMake switch between static/shared?

AnastaZIuk avatar Jul 12 '21 20:07 AnastaZIuk

should there be a CMake switch between static/shared?

I believe CMake already has this option, we just need to respect it.

Produce 1 .dll/.so per namespace (also split up the static libs like this).

Could you describe it a little more?

AnastaZIuk avatar Jul 12 '21 20:07 AnastaZIuk

this is the old DLL/so issue https://github.com/buildaworldnet/IrrlichtBAW/issues/91

that's the 6-lib old part https://github.com/buildaworldnet/IrrlichtBAW/issues/196

getting done (at least on Windows)