filament icon indicating copy to clipboard operation
filament copied to clipboard

Is there any options to build shared libraries of filament?

Open runchen0518 opened this issue 5 years ago • 2 comments

  • Describe problem?

Look at the build output files as usual, they are static libraries, and, it will cost around 25MB.

image

I wanna build shared libraries of filament, it may be smaller on package size.

  • Describe the solution you'd like

I want to modify some many CMakeLists.txt, and change the config STATIC to SHARED in add_library but, i am not sure there will cause new problem. And, I want to know why the usual build configuration is static libraries?

  • Describe alternatives you've considered Is there any options to build shared libraries based on android platform?

  • OS and backend Android Platform, I want to output files: hpp header files + many so binary files.

In addition, build output binary files and put into github releases may be a good way lol.

related: #1075

runchen0518 avatar Apr 23 '21 02:04 runchen0518

Note that you do not need to link against all those libraries and the final binary will be smaller since your linker can get rid of what you are not using. Anyway this feature has been requested and we're tracking it in issue #1075

romainguy avatar Apr 23 '21 03:04 romainguy

Yep! Later, I thought about it, it's just like what you say. But I forgot to close the issue. Sorry..😀

runchen0518 avatar Apr 23 '21 15:04 runchen0518