libmicrohttpd-build-settings.props 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. <DisableSpecificWarnings>4746;%(DisableSpecificWarnings)</DisableSpecificWarnings>
  18. </ClCompile>
  19. <Link>
  20. <Subsystem>WINDOWS</Subsystem>
  21. </Link>
  22. <Lib>
  23. <SubSystem>Windows</SubSystem>
  24. </Lib>
  25. <CustomBuildStep>
  26. <Message>Copy headers to output</Message>
  27. <Command>xcopy /F /I /Y "$(MhdSrc)include\microhttpd.h" "$(OutputPath)"</Command>
  28. <Outputs>$(OutputPath)microhttpd.h;%(Outputs)</Outputs>
  29. <Inputs>$(MhdSrc)include\microhttpd.h</Inputs>
  30. </CustomBuildStep>
  31. </ItemDefinitionGroup>
  32. <ItemDefinitionGroup Condition="'$(ConfigurationType)'=='StaticLibrary'">
  33. <ClCompile>
  34. <PreprocessorDefinitions>_LIB;MHD_W32LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  35. <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='true'">MultiThreadedDebug</RuntimeLibrary>
  36. <RuntimeLibrary Condition="'$(UseDebugLibraries)'!='true'">MultiThreaded</RuntimeLibrary>
  37. </ClCompile>
  38. <Lib>
  39. <AdditionalDependencies>Ws2_32.lib</AdditionalDependencies>
  40. </Lib>
  41. <PostBuildEvent>
  42. <Command>xcopy /F /I /Y "$(IntermediateOutputPath)$(TargetName).pdb" "$(OutputPath)"</Command>
  43. <Message>Copy .pdb to output directory</Message>
  44. </PostBuildEvent>
  45. </ItemDefinitionGroup>
  46. <ItemDefinitionGroup Condition="'$(ConfigurationType)'=='DynamicLibrary'">
  47. <ClCompile>
  48. <PreprocessorDefinitions>_USRDLL;MHD_W32DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  49. <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='true'">MultiThreadedDebugDLL</RuntimeLibrary>
  50. <RuntimeLibrary Condition="'$(UseDebugLibraries)'!='true'">MultiThreadedDLL</RuntimeLibrary>
  51. </ClCompile>
  52. <Link>
  53. <AdditionalDependencies>Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
  54. </Link>
  55. </ItemDefinitionGroup>
  56. </Project>