Commit Graph
2 Commits
Author SHA1 Message Date
Sonatique 285b292d73 msvc: Add configurations with /MT compilation flag
Allows statically linking vc++ runtime dependencies inside libusb-1.0
Windows libraries.

'Release' and 'Debug' configurations produce /MD compiled binaries while
the new 'Release-MT' and 'Debug-MT" configurations produce /MT compiled
binaries.

The /MT flag causes the application to include the multithread, static
version of the vc++ run-time library, whereas the default flag /MD will
cause the vc++ run-time library to be dynamically linked run-time. Using
/MT thus builds a standalone libusb DLL that doesn't require a vc++
runtime DLL to be shipped along with it.

For the official description of /MT see:
https://docs.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library

Closes #1188
2023-01-18 13:45:23 +01:00
Shawn Hoffman aa633daaac msvc: Rework msbuild files
Refactor common settings into .props files. Enables building full
PlatformToolset, Platform, Configuration matrix easily.

Also update the appveyor file. Technically we no longer need different
images (could just have a single vs2022 image which is executed multiple
times in parallel, or so)

Closes #1116
2022-06-26 17:09:14 +02:00