Open JakobOvrum opened 9 years ago
Postbuildcommand? The target is exported as DUB_TARGET_PATH/DUB_TARGET_NAME.
I am using a post-build command ATM, but it is clearly a tenuous workaround. Although with two-three platform-specific versions it can be made practically portable, it will never as portable as dub itself if it can't be supported without using a shell command.
This would also be great for building python extensions, which cannot use the "lib" prefix without it being in the module name.
The "lib" prefix is often not used for plugin-style shared libraries, and it doesn't seem like dub has a way to omit it.
My current use case is for hexchatd. The default name of a plugin is the name of the shared library file without the ".so" extension, so it's better if "lib" is never part of the file name to begin with, although a user can work around it by renaming the file when deploying their plugin.