1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-29 13:01:14 +03:00

build: drop crypto.c umbrella source

Instead build all crypto backend sources always, and exclude inactive
ones with guards.

To play better with code checkers and compilers that are blind to
included C sources, e.g. clang with certain compiler warnings and
clang-tidy.

We continue to include `blowfish.c`.

Follow-up to 4f0f4bff5a #941
Cherry-picked from #1561
This commit is contained in:
Viktor Szakats
2025-03-19 12:32:40 +01:00
parent ddc4cf34da
commit e0681cdba9
8 changed files with 31 additions and 43 deletions

View File

@ -33,16 +33,14 @@ LTLIBNEWNAME variable on success.
0.3) Add new header to src/Makefile.inc
0.4) Include new source in src/crypto.c
0.5) Add a new block in configure.ac
0.4) Add a new block in configure.ac
```
elif test "$found_crypto" = "newname"; then
LIBS="${LIBS} ${LTLIBNEWNAME}"
```
0.6) Add CMake detection logic to CMakeLists.txt
0.5) Add CMake detection logic to CMakeLists.txt
1) Crypto library initialization/termination.