libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

libmicrohttpd2-build-settings.props (3202B)


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