Replies: 2 comments 1 reply
-
Absolutly no idea, but try using 'static_library' instead of 'library'! Then only a static version is built! |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My program is using the
loguru
wrap, which provides a library withlibrary()
. It installs it and a header file. I'm not sure whether the header file should be installed but whatever.The library must be installed alongside the program for the program to execute, because the library is dynamic.
Loguru is a small logging library, it doesn't make much sense for it to be a dynamic library, so I want a static library. I have passed
static: true
todependency()
. It is working well, but the library (with the header file) is still getting installed alongside my program (when invokingmeson install
). This is not tolerable behavior.I see that the
loguru
wrap hasn't been built with static libraries in mind, but it should still be handled correctly, because Meson holds the responsibility for deciding which library is used. My question is, how can this be solved? Is the correct approach to check whether it's a static library and then makeinstall
depend on that? That's hacky. I can also patch out the installation using a diff file, but that is also not a great solution. It works around the problem.Beta Was this translation helpful? Give feedback.
All reactions