Modified the meson build declaration to#149
Modified the meson build declaration to#149clauderobi wants to merge 3 commits intolatchset:masterfrom
Conversation
clauderobi
commented
Feb 16, 2024
- support to optionally create a static library
- allow the binary to use the non system library (libjose.so) when buildng a debug version
- support to optionally create a static library - allow the binary to use the non system library (libjose.so) when buildng a debug version
|
I am not 100% sure I did this correctly. Anyway ninja test ran successfully. Also, the behavior of meson setup .. --prefix=/usr/local is slightly different since it appears that the default build type is debugoptimized (to my surprise) and I changed the behaviour for that type. If needed I suggest to change the default build type to release. |
|
I may be mistaken, but I think this doesn't correctly build a static library if the shared library isn't being built. Trying to run it with: causes a failure in cmd/meson.build with |
|
Thanks for reporting. My intent is to use the library as .... a library so I went too quick on actual executable generation. But before spending on fixing I have 2 questions:
|
|
Hopefully someone else will answer. I'm just a contributor. I don't make decisions. 😄 |
control if the executable is built. The default is true. When build_execute is true, then build_dynmaic is forced true as well since, ATM, the executable is built with dynamic linkage. Consequently, to only build a static library, you need both build_dynamic and build_executable set to false.
|
Ok, I added new commits to my master branch. According to the message above, I understand that the PR will include them. But I may be wrong... tell me. I added an explicit option to build or not the executable. The default is true and will force build_dynamic to be true. |
…ilers that are more strict.