[CMake] New compoments MbedTLS and wolfSSL#2360
[CMake] New compoments MbedTLS and wolfSSL#2360Spixmaster wants to merge 18 commits intoyhirose:masterfrom
MbedTLS and wolfSSL#2360Conversation
New component MbedTLS.
|
I researched regarding my question. This should be the behaviour if I understood correctly. Therefore, this pull request should be completely valid. I am not best friends with CMake. I do not like all the silent error and failures. Moreover, there are multiple ways to do the same thing. |
|
Yes,
Just a random thought, but The cmake seems fine, although I'm wondering if more of its targets need to be consumed, such as Line 398 in 14e37bd MbedTLS::tfpsacrypto too that seems unrelated, but I know nothing about MbedTLS so ignore me if wrong.
If I expected all this extra stuff to be added in the future maybe I would've put everything through a macro/function from the start to de-dupe all this work though. Looking back, I also don't think the various |
|
So, I am done with the testing of your thoughts. I reverting the test commit. 8682189 was correct and HEAD has the same content. I also find the options
|
|
@sum01, I had to switch from cpp-httplib-compiled to cpp-httplib due to |
The humble swap partition: |
wolfSSL support. Partly solve yhirose#2371. Only meson is missing.
Solve yhirose#2361. Apply `WARNING`.
MbedTLSMbedTLS and wolfSSL
Fix variable.
Solve incompatibilities with loop.
|
I am done. Additionally, this fixes #2361 and #2371. Beforehand, the working of the incompatibilities was tested separately. I did the following testing all with Moreover, build and linking with my consuming project was done. However, linking was not tested with OpenSSL wolfSSL MbedTLS compilation linking Arch Linux does not enable the proper option needed for the package wolfssl. |
Remove debug prints.
|
#2371 should still be open. @DarthGandalf, can you add support for meson? Merely, for the reason of completeness. |
I have no good way to test wolfssl, as it's not currently packaged in Gentoo Also for the ebuild I switched back to cmake for now. Meson makes |
Prevent a bug aus the required and if available libraries are checked independently from each other. A could be chosen in required but B could be chosen in if available and everything would pass.
Remove debug print.
Restore change.
New CMake component
MbedTLS. Fixes #2345.A decision I needed to make. Use OpenSSL primarily and MbedTLS secondly. As OpenSSL is activated if available, this means that MbedTLS needs to be deactivated even if available.
I tested all four cases
HTTPLIB_USE_OPENSSL_IF_AVAILABLEwithHTTPLIB_USE_MBEDTLS_IF_AVAILABLE(ONorOFF) .Also, four cases of
HTTPLIB_REQUIRE_OPENSSLwithHTTPLIB_REQUIRE_MBEDTLS(ONorOFF).Each with
HTTPLIB_COMPILE=ON.I have a question regarding CMake. Is the exported target even compatible with ceratainly compiled targets?
Consider build
and usage
find_package(httplib COMPONENTS MbedTLS).
What would happen?
Moreover, this was quiet tedious. I want a pay rise.