Viktor Szakats
4e2580628d
cmake: allow building static + shared libs in a single pass
...
- `BUILD_SHARED_LIBS=ON` no longer disables building static lib.
When set, we build the static lib with PIC enabled.
For shared lib only, set `BUILD_STATIC_LIBS=OFF`. For static lib
without PIC, leave this option disabled.
- new setting: `BUILD_STATIC_LIBS`. `ON` by default.
Force-enabled when building examples or tests (we build those in
static mode always.)
- fix to exclude Windows Resource from the static lib.
- fix to not overwrite static lib with shared implib on Windows
platforms using identical suffix for them (MSVS). By using
`libssh2_imp<.ext>` implib filename.
- add support for `STATIC_LIB_SUFFIX` setting to set an optional suffix
(e.g. `_static`) for the static lib. (experimental, not documented).
Overrides the above when set.
- fix to set `dllexport` when building shared lib.
- set `TrackFileAccess=false` for MSVS.
For faster builds, shorter verbose logs.
- tests: new test linking against shared libssh2: `test_warmup_shared`
- tests: simplify 'runner' lib by merging 3 libs into a single one.
- tests: drop hack from `test_keyboard_interactive_auth_info_request`
build.
We no longer need to compile `src/misc.c` because we always link
libssh2 statically.
- tests: limit `FIXTURE_WORKDIR=` to the `runner` target.
TL;DR: Default behavior unchanged: static (no-PIC), no shared.
Enabling shared unchanged, but now also builds a static (PIC)
lib by default.
Based-on: b60dca8b64 #547 by berney on github
Fixes : #547
Fixes : #675
Closes : #863
2023-03-22 02:47:58 +00:00
..
2009-09-04 02:23:28 +02:00
2015-03-07 11:42:14 +01:00
2016-02-24 23:44:13 +01:00
2022-01-13 15:35:29 +01:00
2015-03-07 11:42:14 +01:00
2022-01-06 10:06:02 -08:00
2023-03-14 13:38:28 +01:00
2023-03-22 02:47:58 +00:00
2009-12-23 09:12:02 +09:00
2009-12-23 09:12:02 +09:00
2009-12-23 09:12:02 +09:00
2019-04-11 10:11:38 -07:00
2009-12-23 09:12:02 +09:00
2009-12-23 09:12:02 +09:00
2009-12-23 09:12:02 +09:00
2019-04-11 10:11:38 -07:00
2009-12-23 09:12:02 +09:00
2014-07-28 23:55:34 +02:00
2014-05-19 10:24:58 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2022-08-09 17:05:35 -07:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2014-05-19 10:24:58 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2019-08-12 14:23:19 -07:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2016-11-05 21:05:20 +00:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2014-07-28 23:55:34 +02:00
2014-07-28 23:55:34 +02:00
2022-08-16 09:13:51 -07:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2022-01-06 10:06:02 -08:00
2010-05-22 08:30:42 +02:00
2010-10-13 15:24:18 +02:00
2019-02-25 10:06:24 -08:00
2010-05-01 23:49:45 +02:00
2011-04-13 00:11:41 +02:00
2011-09-09 16:12:04 +02:00
2014-07-28 23:55:34 +02:00
2014-07-28 23:55:34 +02:00
2014-07-28 23:55:34 +02:00
2014-07-28 23:55:34 +02:00
2009-05-28 14:35:13 +02:00
2009-12-25 10:26:51 +09:00
2009-05-29 14:08:24 +02:00
2009-10-18 03:03:55 +02:00
2011-02-26 10:57:56 +01:00
2009-05-29 10:12:22 +02:00
2009-05-28 19:57:54 +02:00
2010-04-24 23:43:07 +07:00
2011-09-09 16:12:04 +02:00
2014-07-28 23:55:34 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2015-09-21 18:01:23 +01:00
2015-09-21 18:01:23 +01:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2014-07-28 23:55:34 +02:00
2011-09-09 23:11:42 +02:00
2014-07-28 23:55:34 +02:00
2011-09-09 16:12:04 +02:00
2020-09-28 17:45:13 +02:00
2014-07-28 23:55:34 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-05-13 22:47:22 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 23:17:04 +02:00
2011-09-09 16:12:04 +02:00
2015-11-02 14:50:15 +01:00
2015-11-02 14:50:15 +01:00
2014-07-28 23:55:34 +02:00
2022-01-06 09:50:58 -08:00
2011-09-09 16:12:04 +02:00
2015-11-02 14:50:15 +01:00
2011-05-13 22:47:22 +02:00
2011-09-09 16:12:04 +02:00
2019-03-20 23:50:42 +01:00
2014-07-28 23:55:34 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2014-07-28 23:55:34 +02:00
2011-09-09 16:12:04 +02:00
2010-05-24 07:05:23 +02:00
2013-04-09 16:25:54 +02:00
2016-03-15 21:55:56 +00:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2014-07-28 23:55:34 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2014-07-28 23:55:34 +02:00
2011-09-09 16:12:04 +02:00
2014-07-28 23:55:34 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2014-07-28 23:55:34 +02:00
2010-05-28 17:25:42 +02:00
2014-07-28 23:55:34 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2022-09-29 09:05:34 -07:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2022-01-13 15:35:29 +01:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2022-02-03 10:13:36 -08:00
2011-09-12 15:41:28 +02:00
2014-07-28 23:55:34 +02:00
2022-02-03 10:13:36 -08:00
2011-09-09 16:12:04 +02:00
2013-10-16 23:19:14 +02:00
2011-09-09 16:12:04 +02:00
2015-03-15 12:04:10 +01:00
2022-09-29 09:05:34 -07:00
2011-09-09 16:12:04 +02:00
2011-09-09 16:12:04 +02:00
2023-01-06 10:47:32 -08:00
2018-03-12 21:03:07 +01:00
2011-09-09 16:12:04 +02:00
2015-03-07 11:42:14 +01:00