Open MrcSnm opened 1 year ago
I've been considering if we should make staticLibrary target type for root packages to be this.
It's also related to introducing a new targetType for objectFiles all related to shared library support, currently waiting to see how @kinke's work does in practice before revisiting it.
How to reproduce?
"targetType": "staticLibraryBundle"
Expected Behavior
It will compile all the dependencies as if it were an executable or a dynamic library, but it will output a single .lib/.a file.
I want that because there is a bunch of platforms I use where I have external tool/language which actually produces the executable. The solution have been using a 3 pass dub build.
I'm currently working with Xcode and including the static library is the best way to get my project running right now. This approach is also used for the PS Vita as I cant't build the executable nor dynamically load libraries on it.
Logs