clamav/win32/compat
Micah Snyder c81968d3a7 GitHub Actions testing on Ubuntu, Mac, & Windows
Updates to fix issues in the CMake install instructions.

Updates the README.md to indicate that CMake is now preferred

Adds a GitHub Actions badge, Discord badge, and logo to the README.md.

CMake:

- Renamed ENABLE_DOCS to ENABLE_MAN_PAGES.

- Fixed build issue when milter isn't enabled on Linux. Changed the
default to build milter on non-macOS, non-Windows operating systems.

- Fix LD_LIBRARY_PATH for tests including on macOS where LD_LIBRARY_PATH
  and DYLD_LIBRARY_PATH must be manually propagated to subprocesses.

- Use UNKNOWN IMPORTED library instead of INTERFACE IMPORTED library for
  pdcurses, but still use INTERFACE IMPORTED for ncurses.
  UNKNOWN IMPORTED appears to be required so that we can use
  $<TARGET_FILE_DIR:Curses::curses> to collected the pdcurses library at
  install time on Windows.

- When building with vcpkg on Windows, CMake will automatically install
  your app local dependencies (aka the DLL runtime dependencies).
  Meanwhile, file(GET_RUNTIME_DEPENDENCIES ...) doesn't appear to work
  correctly with vcpkg packages. The solution is to use a custom target
  that has CMake perform a local install to the unit_tests directory
  when using vcpkg.
  This is in fact far easier than using GET_RUNTIME_DEPENDENCIES in the
  unit_tests for assembling the test environment but we can't use this
  method for the non-vcpkg install because it won't collect
  checkDynamic.dll for us because we don't install our tests.
  We also can't link with the static check.lib because the static
  check.lib has pthreads symbols linked in and will conflict with our
  pthread.dll.

  TL;DR: We'll continue to use file(GET_RUNTIME_DEPENDENCIES ...) for
  assembling the test enviornment on non-vcpkg builds, and use the local
  install method for vcpkg builds.

testcase.py: Wrapped a Pathlib.unlink() call in exception handling as
the missing_ok optional parameter requires a Python version too new for
common use.

Remove localtime_r from win32 compat lib.
localtime_r may be present in libcheck when building with vcpkg and
while making it a static function would also solve the issue, using
localtime_s instead like we do everywhere else should work just fine.

check_clamd: Limited the max # of connections for the stress test on Mac
to 850, to address issues found testing on macos-latest on GitHub Actions.
2021-02-25 11:41:28 -08:00
..
CMakeLists.txt CMake: Add CTest support to match Autotools checks 2021-02-25 11:41:26 -08:00
dirent.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
dirent.h Add newlines at end of sources to satisfy strict warnings (C/C++ standard requires them) 2020-08-21 04:56:33 +02:00
gettimeofday.c Add newlines at end of sources to satisfy strict warnings (C/C++ standard requires them) 2020-08-21 04:56:33 +02:00
gettimeofday.h Add newlines at end of sources to satisfy strict warnings (C/C++ standard requires them) 2020-08-21 04:56:33 +02:00
glob.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
libgen.c Update copyright dates for 2020 2020-01-03 15:44:07 -05:00
libgen.h Add newlines at end of sources to satisfy strict warnings (C/C++ standard requires them) 2020-08-21 04:56:33 +02:00
net.c Update copyright dates for 2020 2020-01-03 15:44:07 -05:00
net.h Add CMake build tooling 2020-08-13 00:25:34 -07:00
random.c Update copyright dates for 2020 2020-01-03 15:44:07 -05:00
random.h Update copyright dates for 2020 2020-01-03 15:44:07 -05:00
referrno.txt preliminary winsock support files 2009-10-14 18:59:38 +02:00
regen_errno_defs.sh clamd-win32 - WIP 2010-01-28 23:54:20 +01:00
resolv.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
resolv.h Update copyright dates for 2020 2020-01-03 15:44:07 -05:00
snprintf.c Add newlines at end of sources to satisfy strict warnings (C/C++ standard requires them) 2020-08-21 04:56:33 +02:00
snprintf.h Add newlines at end of sources to satisfy strict warnings (C/C++ standard requires them) 2020-08-21 04:56:33 +02:00
strptime.c GitHub Actions testing on Ubuntu, Mac, & Windows 2021-02-25 11:41:28 -08:00
utf8_util.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
utf8_util.h Add newlines at end of sources to satisfy strict warnings (C/C++ standard requires them) 2020-08-21 04:56:33 +02:00
w32_errno.c Update copyright dates for 2020 2020-01-03 15:44:07 -05:00
w32_errno.h Add newlines at end of sources to satisfy strict warnings (C/C++ standard requires them) 2020-08-21 04:56:33 +02:00
w32_errno_defs.c clang-format'd using new .clang-format rules. 2019-10-02 16:08:16 -04:00
w32_stat.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
w32_stat.h Update copyright dates for 2020 2020-01-03 15:44:07 -05:00