libmicrohttpd-build-settings.vcxproj 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup>
  4. <CustomBuildBeforeTargets>ResourceCompile</CustomBuildBeforeTargets>
  5. </PropertyGroup>
  6. <PropertyGroup Condition="'$(ConfigurationType)'=='StaticLibrary'">
  7. <TargetName Condition="'$(UseDebugLibraries)'=='true'">$(ProjectName)_d</TargetName>
  8. <TargetName Condition="'$(UseDebugLibraries)'!='true'">$(ProjectName)</TargetName>
  9. </PropertyGroup>
  10. <PropertyGroup Condition="'$(ConfigurationType)'=='DynamicLibrary'">
  11. <TargetName Condition="'$(UseDebugLibraries)'=='true'">$(ProjectName)-dll_d</TargetName>
  12. <TargetName Condition="'$(UseDebugLibraries)'!='true'">$(ProjectName)-dll</TargetName>
  13. </PropertyGroup>
  14. <ItemDefinitionGroup>
  15. <ClCompile>
  16. <PreprocessorDefinitions>BUILDING_MHD_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  17. </ClCompile>
  18. <Link>
  19. <Subsystem>WINDOWS</Subsystem>
  20. </Link>
  21. <Lib>
  22. <SubSystem>Windows</SubSystem>
  23. </Lib>
  24. <CustomBuildStep>
  25. <Message>Copy headers to output</Message>
  26. <Command>xcopy /F /I /Y "$(MhdSrc)include\microhttpd.h" "$(OutputPath)"</Command>
  27. <Outputs>$(OutputPath)microhttpd.h;%(Outputs)</Outputs>
  28. <Inputs>$(MhdSrc)include\microhttpd.h</Inputs>
  29. </CustomBuildStep>
  30. </ItemDefinitionGroup>
  31. <ItemDefinitionGroup Condition="'$(ConfigurationType)'=='StaticLibrary'">
  32. <ClCompile>
  33. <PreprocessorDefinitions>_LIB;MHD_W32LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  34. <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='true'">MultiThreadedDebug</RuntimeLibrary>
  35. <RuntimeLibrary Condition="'$(UseDebugLibraries)'!='true'">MultiThreaded</RuntimeLibrary>
  36. </ClCompile>
  37. <Lib>
  38. <AdditionalDependencies>Ws2_32.lib</AdditionalDependencies>
  39. </Lib>
  40. <PostBuildEvent>
  41. <Command>xcopy /F /I /Y "$(IntermediateOutputPath)$(TargetName).pdb" "$(OutputPath)"</Command>
  42. <Message>Copy .pdb to output directory</Message>
  43. </PostBuildEvent>
  44. </ItemDefinitionGroup>
  45. <ItemDefinitionGroup Condition="'$(ConfigurationType)'=='DynamicLibrary'">
  46. <ClCompile>
  47. <PreprocessorDefinitions>_USRDLL;MHD_W32DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  48. <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='true'">MultiThreadedDebugDLL</RuntimeLibrary>
  49. <RuntimeLibrary Condition="'$(UseDebugLibraries)'!='true'">MultiThreadedDLL</RuntimeLibrary>
  50. </ClCompile>
  51. <Link>
  52. <AdditionalDependencies>Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
  53. </Link>
  54. </ItemDefinitionGroup>
  55. </Project>