msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.3k stars 1.22k forks source link

Add static compilation to Bullet #15960

Open Tokrat opened 1 year ago

Tokrat commented 1 year ago

Package name

mingw-w64-bullet

New version number

3.25

Other information that may be useful

Is it possible to add static library compilation with this package ? I cannot have shared library and thus cannot use this. Also does this package use "USE_DOUBLE_PRECISION" by default ?

Are you willing to submit a PR?

No response

Biswa96 commented 1 year ago

The bullet package is already a big one. So, adding static libraries will make the package even more bigger.

Tokrat commented 1 year ago

I understand, I am currently compiling Bullet myself so it's not a big problem, it's just that it's the only dependency which need me to do it so I thought it was just forgotten.

revelator commented 1 year ago

is it possible to disable the demos ? that might give some space.

Biswa96 commented 1 year ago

Package build time and hardware resource is also another concern.

revelator commented 1 year ago

could split the package one for static one for shared then it would be upto the user to decide which he prefers if not both but yeah it would probably be rather massive.

Tokrat commented 1 year ago

i compiled mine avoiding any test and benchmark:

cmake -H. -Bbuild/linux64 \
    -DUSE_DOUBLE_PRECISION=ON \
    -DUSE_GRAPHICAL_BENCHMARK=OFF -DBUILD_UNIT_TESTS=OFF \
    -DBUILD_CPU_DEMOS=OFF -DBUILD_BULLET2_DEMOS=OFF -DBUILD_OPENGL3_DEMOS=OFF \
    -DBUILD_ENET=ON -DBUILD_CLSOCKET=ON -DBUILD_EXTRAS=ON \
    -DUSE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD=ON -DBULLET2_MULTITHREADING=ON

I know a standard repo would be a bit different, but I get only 24.5Mo of builds, (for static only) it doesn't seems that bad, did I forget something important ?