Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support plugins available at link time #14

Closed
frutiger opened this issue Feb 2, 2015 · 2 comments
Closed

Support plugins available at link time #14

frutiger opened this issue Feb 2, 2015 · 2 comments

Comments

@frutiger
Copy link
Owner

frutiger commented Feb 2, 2015

A plugin available at link time is a static library that is provided as a link-time dependency of some other code. This other code may then freely use functions from the library as long the name of the exported symbols are known (e.g. through header files).

The code may also then be deployed without any further requirements. This stands in contrast to #13, which requires the using code and the shared library to be deployed together.

This would implement option (3) from #7.

@cppguru
Copy link

cppguru commented Feb 2, 2015

Same as for the dynamic one. The code linking the plugin in is not the
user. As it has no specific dependencies whatsoever to the plugin at all.
It's a third piece of code that uses the plugin, and that code should be
able to require the headers without creating a link time dependency. Why?
Because the user must not be aware if the module is dynamic or static.

On Mon, Feb 2, 2015 at 2:45 AM, Masud Rahman notifications@github.com
wrote:

A plugin available at link time is a static library that is provided as a
link-time dependency of some other code. This other code may then freely
use functions from the library as long the name of the exported symbols are
known (e.g. through header files).

The code may also then be deployed without any further requirements. This
stands in contrast to #13 #13,
which requires the using code and the shared library to be deployed
together.

This would implement option (3) from #7
#7.


Reply to this email directly or view it on GitHub
#14.

@frutiger
Copy link
Owner Author

frutiger commented Sep 2, 2018

All generated libraries have unspecified CMake library type; so static vs. dynamic libraries can be specified at CMake generation time using the BUILD_SHARED_LIBS flag. Either type of library can be linked to at link time.

@frutiger frutiger closed this as completed Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants