summaryrefslogtreecommitdiff
path: root/msvc/Configuration.DynamicLibrary.props
diff options
context:
space:
mode:
authorSonatique <sylvain@sonatique.net>2023-01-11 12:50:19 -0500
committerTormod Volden <debian.tormod@gmail.com>2023-01-18 13:45:23 +0100
commit285b292d738eaabd9ff7e3bbec02a26736c7d50b (patch)
treec7b18be4fa6abb091ce1c2112e4e4a533537e750 /msvc/Configuration.DynamicLibrary.props
parent17bf45baee1db40ff01e8070549c341663298c5c (diff)
downloadlibusb-285b292d738eaabd9ff7e3bbec02a26736c7d50b.tar.gz
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
Diffstat (limited to 'msvc/Configuration.DynamicLibrary.props')
-rw-r--r--msvc/Configuration.DynamicLibrary.props6
1 files changed, 6 insertions, 0 deletions
diff --git a/msvc/Configuration.DynamicLibrary.props b/msvc/Configuration.DynamicLibrary.props
index 6d02940..e93e6a8 100644
--- a/msvc/Configuration.DynamicLibrary.props
+++ b/msvc/Configuration.DynamicLibrary.props
@@ -8,8 +8,14 @@
<ClCompile Condition="'$(Configuration)'=='Debug'">
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
+ <ClCompile Condition="'$(Configuration)'=='Debug-MT'">
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+ </ClCompile>
<ClCompile Condition="'$(Configuration)'=='Release'">
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
+ <ClCompile Condition="'$(Configuration)'=='Release-MT'">
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+ </ClCompile>
</ItemDefinitionGroup>
</Project> \ No newline at end of file