libsrt.props 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Visual Studio or MSBuild property file to use SRT static library -->
  3. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  4. <!-- Normalize platform name to x64 and Win32 (some projects use x86 or Win64) -->
  5. <Choose>
  6. <When Condition="'$(Platform)' == 'x86'">
  7. <PropertyGroup Label="UserMacros">
  8. <SrtPlatform>Win32</SrtPlatform>
  9. </PropertyGroup>
  10. </When>
  11. <When Condition="'$(Platform)' == 'Win64'">
  12. <PropertyGroup Label="UserMacros">
  13. <SrtPlatform>x64</SrtPlatform>
  14. </PropertyGroup>
  15. </When>
  16. <Otherwise>
  17. <PropertyGroup Label="UserMacros">
  18. <SrtPlatform>$(Platform)</SrtPlatform>
  19. </PropertyGroup>
  20. </Otherwise>
  21. </Choose>
  22. <!-- Compilation and link options -->
  23. <ItemDefinitionGroup>
  24. <ClCompile>
  25. <AdditionalIncludeDirectories>$(LIBSRT)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  26. </ClCompile>
  27. <Link>
  28. <AdditionalDependencies>srt.lib;libssl.lib;libcrypto.lib;crypt32.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
  29. <AdditionalLibraryDirectories>$(LIBSRT)\lib\$(Configuration)-$(SrtPlatform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  30. <AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
  31. </Link>
  32. </ItemDefinitionGroup>
  33. </Project>