ruabmbua / enet-sys

Raw rust bindings to the enet C library
MIT License
19 stars 14 forks source link

Working build with MSVC toolchain #11

Closed spearman closed 5 years ago

spearman commented 6 years ago

This should build on Windows by issuing > cargo build command from the Windows command prompt with:

  1. Installed Rust MSVC toolchain using rustup
  2. Installed Windows Clang
  3. Installed Windows CMake

This also removes winmm from linking on Windows, as that was apparently only needed for MSYS2 which is not compatible with the MSVC toolchain. Maybe if there is a way to test whether MSYS or the GNU toolchain is being used it could be re-added but the goal was to use the MSVC toolchain so this is probably the better solution for now.

spearman commented 6 years ago

Forgot to run tests. To compile an application requires winmm.dll to be linked. This should fix it.

spearman commented 6 years ago

Fixed another error introduced with the link search path on non-windows builds. Should build on Linux again.