c++ - how to wrap an external library in a conan package, adding support for building as a shared library -


i attempting wrap google's gumbo parser conan package. have succeed supporting linux mac , windows, having issues creating (and consuming) shared library in windows (.dll + .lib).

my current progress here. have decided bypass gumbo's autoconf build system provide cmakelists.txt copy when fetching sources. way hoped able support windows.

i not familiar visual c++, understand visual c++ different other compilers in not export symbols default, gcc , clang export everything.

this causing conan package fail build in scenarios, because in shared mode generating .dll (and no corresponding .lib).

tried using cmake's generate_export_header module, did little help, since i'd have use macros generated in methods should exported. i'm trying wrap library without having fork , adapt it.

another option use .def file. might work in case (not many symbols export), not helpful me (harder test if exported should have, harder maintain, not helpful solving same issue in other situations far more symbols export).

is there recommended way of doing this?


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo