pEpCOMServerAdapter.vcxproj
author Thomas
Wed, 20 Jan 2021 14:24:22 +0100
changeset 469 847bcee8c2d7
parent 465 bede77ec9270
permissions -rw-r--r--
OUT-720: Catch errors during startup to pass the correct error code to the app
     1 <?xml version="1.0" encoding="utf-8"?>
     2 <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     3   <ItemGroup Label="ProjectConfigurations">
     4     <ProjectConfiguration Include="Debug|Win32">
     5       <Configuration>Debug</Configuration>
     6       <Platform>Win32</Platform>
     7     </ProjectConfiguration>
     8     <ProjectConfiguration Include="Release|Win32">
     9       <Configuration>Release</Configuration>
    10       <Platform>Win32</Platform>
    11     </ProjectConfiguration>
    12   </ItemGroup>
    13   <PropertyGroup Label="Globals">
    14     <ProjectGuid>{A27BD6BF-63BC-473D-B8BD-84ACB085F39C}</ProjectGuid>
    15     <Keyword>AtlProj</Keyword>
    16     <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
    17   </PropertyGroup>
    18   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
    19   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
    20     <ConfigurationType>Application</ConfigurationType>
    21     <UseDebugLibraries>true</UseDebugLibraries>
    22     <PlatformToolset>v142</PlatformToolset>
    23     <CharacterSet>Unicode</CharacterSet>
    24   </PropertyGroup>
    25   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
    26     <ConfigurationType>Application</ConfigurationType>
    27     <UseDebugLibraries>false</UseDebugLibraries>
    28     <PlatformToolset>v142</PlatformToolset>
    29     <CharacterSet>Unicode</CharacterSet>
    30   </PropertyGroup>
    31   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
    32   <ImportGroup Label="ExtensionSettings">
    33   </ImportGroup>
    34   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    35     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
    36   </ImportGroup>
    37   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    38     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
    39   </ImportGroup>
    40   <PropertyGroup Label="UserMacros" />
    41   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    42     <IgnoreImportLibrary>true</IgnoreImportLibrary>
    43     <LinkIncremental>true</LinkIncremental>
    44     <IncludePath>$(SolutionDir)pEpJSONServerAdapter\server;$(ProjectDir)..\;$(ProjectDir)..\pEpEngine\src;$(IncludePath)</IncludePath>
    45     <CodeAnalysisRuleSet>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset</CodeAnalysisRuleSet>
    46     <RunCodeAnalysis>false</RunCodeAnalysis>
    47   </PropertyGroup>
    48   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    49     <IgnoreImportLibrary>true</IgnoreImportLibrary>
    50     <LinkIncremental>false</LinkIncremental>
    51     <IncludePath>$(SolutionDir)pEpJSONServerAdapter\server;$(ProjectDir)..\;$(ProjectDir)..\pEpEngine\src;$(IncludePath)</IncludePath>
    52     <CodeAnalysisRuleSet>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset</CodeAnalysisRuleSet>
    53     <RunCodeAnalysis>false</RunCodeAnalysis>
    54   </PropertyGroup>
    55   <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
    56     <PostBuildEvent>
    57       <Command>echo "generating interop assembly $(TargetDir)pEpCOMServerAdapter.Interop.dll"
    58 "$(SDK40ToolsPath)x64\TlbImp.exe" "$(TargetPath)" /out:"$(TargetDir)pEpCOMServerAdapter.Interop.dll" /namespace:pEpCOMServerAdapterLib /primary /keyfile:"$(ProjectDir)pEp_test.snk" /machine:Agnostic
    59 
    60 echo "copying required .dll file(s) to output directory"
    61 xcopy /y "..\Dependencies\zlib\zlib1.dll" "$(OutDir)"
    62 </Command>
    63     </PostBuildEvent>
    64   </ItemDefinitionGroup>
    65   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    66     <ClCompile>
    67       <PrecompiledHeader>Use</PrecompiledHeader>
    68       <WarningLevel>Level3</WarningLevel>
    69       <Optimization>Disabled</Optimization>
    70       <PreprocessorDefinitions>JSON_ADAPTER_LIBRARY;DEBUG_ENABLED;WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    71       <SDLCheck>true</SDLCheck>
    72       <EnablePREfast>false</EnablePREfast>
    73     </ClCompile>
    74     <Midl>
    75       <MkTypLibCompatible>false</MkTypLibCompatible>
    76       <TargetEnvironment>Win32</TargetEnvironment>
    77       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    78       <HeaderFileName>pEpCOMServerAdapter_i.h</HeaderFileName>
    79       <InterfaceIdentifierFileName>pEpCOMServerAdapter_i.c</InterfaceIdentifierFileName>
    80       <ProxyFileName>pEpCOMServerAdapter_p.c</ProxyFileName>
    81       <GenerateStublessProxies>true</GenerateStublessProxies>
    82       <TypeLibraryName>$(IntDir)pEpCOMServerAdapter.tlb</TypeLibraryName>
    83       <DllDataFileName />
    84       <ValidateAllParameters>true</ValidateAllParameters>
    85     </Midl>
    86     <ResourceCompile>
    87       <Culture>0x0409</Culture>
    88       <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    89       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    90       <AdditionalOptions>
    91       </AdditionalOptions>
    92     </ResourceCompile>
    93     <Link>
    94       <SubSystem>Windows</SubSystem>
    95       <GenerateDebugInformation>true</GenerateDebugInformation>
    96       <RegisterOutput>false</RegisterOutput>
    97       <AdditionalDependencies>comsuppwd.lib;%(AdditionalDependencies);Wininet.lib;bcrypt.lib;Crypt32.lib</AdditionalDependencies>
    98       <PerUserRedirection>true</PerUserRedirection>
    99     </Link>
   100   </ItemDefinitionGroup>
   101   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
   102     <ClCompile>
   103       <PrecompiledHeader>Use</PrecompiledHeader>
   104       <WarningLevel>Level3</WarningLevel>
   105       <Optimization>MaxSpeed</Optimization>
   106       <PreprocessorDefinitions>JSON_ADAPTER_LIBRARY;DEBUG_ENABLED;WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   107       <SDLCheck>true</SDLCheck>
   108       <EnablePREfast>false</EnablePREfast>
   109     </ClCompile>
   110     <Midl>
   111       <MkTypLibCompatible>false</MkTypLibCompatible>
   112       <TargetEnvironment>Win32</TargetEnvironment>
   113       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   114       <HeaderFileName>pEpCOMServerAdapter_i.h</HeaderFileName>
   115       <InterfaceIdentifierFileName>pEpCOMServerAdapter_i.c</InterfaceIdentifierFileName>
   116       <ProxyFileName>pEpCOMServerAdapter_p.c</ProxyFileName>
   117       <GenerateStublessProxies>true</GenerateStublessProxies>
   118       <TypeLibraryName>$(IntDir)pEpCOMServerAdapter.tlb</TypeLibraryName>
   119       <DllDataFileName />
   120       <ValidateAllParameters>true</ValidateAllParameters>
   121     </Midl>
   122     <ResourceCompile>
   123       <Culture>0x0409</Culture>
   124       <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   125       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   126     </ResourceCompile>
   127     <Link>
   128       <SubSystem>Windows</SubSystem>
   129       <GenerateDebugInformation>true</GenerateDebugInformation>
   130       <EnableCOMDATFolding>true</EnableCOMDATFolding>
   131       <OptimizeReferences>true</OptimizeReferences>
   132       <RegisterOutput>true</RegisterOutput>
   133       <AdditionalDependencies>comsuppw.lib;%(AdditionalDependencies);Wininet.lib;bcrypt.lib;Crypt32.lib</AdditionalDependencies>
   134     </Link>
   135   </ItemDefinitionGroup>
   136   <ItemGroup>
   137     <ClCompile Include="CMainWindow.cpp" />
   138     <ClCompile Include="CpEpEngine.cpp" />
   139     <ClCompile Include="GateKeeper.cpp" />
   140     <ClCompile Include="LocalJSONAdapter.cpp" />
   141     <ClCompile Include="pEpCOMServerAdapter.cpp" />
   142     <ClCompile Include="pEpCOMServerAdapter_i.c">
   143       <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
   144       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
   145       </PrecompiledHeader>
   146       <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
   147       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
   148       </PrecompiledHeader>
   149     </ClCompile>
   150     <ClCompile Include="pEp_utility.cpp" />
   151     <ClCompile Include="stdafx.cpp">
   152       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
   153       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
   154     </ClCompile>
   155     <ClCompile Include="utf8_helper.cpp" />
   156     <ClCompile Include="xdlldata.c">
   157       <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
   158       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
   159       </PrecompiledHeader>
   160       <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
   161       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
   162       </PrecompiledHeader>
   163     </ClCompile>
   164   </ItemGroup>
   165   <ItemGroup>
   166     <ClInclude Include="..\pEpJSONServerAdapter\server\adapter-library.hh" />
   167     <ClInclude Include="CMainWindow.h" />
   168     <ClInclude Include="CpEpEngine.h" />
   169     <ClInclude Include="GateKeeper.h" />
   170     <ClInclude Include="LocalJSONAdapter.h" />
   171     <ClInclude Include="pEpCOMServerAdapter.h" />
   172     <ClInclude Include="pEpCOMServerAdapter_i.h" />
   173     <ClInclude Include="pEp_utility.h" />
   174     <ClInclude Include="Resource.h" />
   175     <ClInclude Include="stdafx.h" />
   176     <ClInclude Include="targetver.h" />
   177     <ClInclude Include="utf8_helper.h" />
   178     <ClInclude Include="xdlldata.h" />
   179   </ItemGroup>
   180   <ItemGroup>
   181     <ResourceCompile Include="pEpCOMServerAdapter.rc" />
   182   </ItemGroup>
   183   <ItemGroup>
   184     <Text Include="LICENSE.txt" />
   185     <Text Include="ReadMe.txt" />
   186   </ItemGroup>
   187   <ItemGroup>
   188     <None Include="packages.config" />
   189     <None Include="pEpCOMServerAdapter.rgs" />
   190     <None Include="pEpEngine.rgs" />
   191     <None Include="pep_test.snk" />
   192     <None Include="updatekey.bin" />
   193   </ItemGroup>
   194   <ItemGroup>
   195     <Midl Include="pEpCOMServerAdapter.idl" />
   196   </ItemGroup>
   197   <ItemGroup>
   198     <ProjectReference Include="..\libpEpAdapter\libpEpAdapter\libpEpAdapter.vcxproj">
   199       <Project>{ec44fec9-2f3a-4a0c-b60e-0f22aa43ef58}</Project>
   200     </ProjectReference>
   201     <ProjectReference Include="..\pEpEngine\build-windows\pEpEngine.vcxproj">
   202       <Project>{146e69f8-e1da-456a-b048-6dd29d9acf6b}</Project>
   203     </ProjectReference>
   204     <ProjectReference Include="..\pEpJSONServerAdapter\build-windows\pEpJSONServerAdapter\pEpJSONServerAdapterLibrary.vcxproj">
   205       <Project>{644d1ba4-084c-47b2-8a9e-00a8d9f9a35c}</Project>
   206     </ProjectReference>
   207     <ProjectReference Include="..\pEpJSONServerAdapter\build-windows\pEp\libpEpWebserver\libpEpWebserver.vcxproj">
   208       <Project>{0d25734e-a71b-4536-8dc4-60e945382fc5}</Project>
   209     </ProjectReference>
   210   </ItemGroup>
   211   <ItemGroup>
   212     <Image Include="logo.ico" />
   213   </ItemGroup>
   214   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   215   <ImportGroup Label="ExtensionTargets">
   216     <Import Project="..\packages\boost.1.72.0.0\build\boost.targets" Condition="Exists('..\packages\boost.1.72.0.0\build\boost.targets')" />
   217     <Import Project="..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets" Condition="Exists('..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets')" />
   218     <Import Project="..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets" Condition="Exists('..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets')" />
   219     <Import Project="..\packages\boost_filesystem-vc142.1.72.0.0\build\boost_filesystem-vc142.targets" Condition="Exists('..\packages\boost_filesystem-vc142.1.72.0.0\build\boost_filesystem-vc142.targets')" />
   220     <Import Project="..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets" Condition="Exists('..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets')" />
   221     <Import Project="..\packages\boost_chrono-vc142.1.72.0.0\build\boost_chrono-vc142.targets" Condition="Exists('..\packages\boost_chrono-vc142.1.72.0.0\build\boost_chrono-vc142.targets')" />
   222     <Import Project="..\packages\boost_program_options-vc142.1.72.0.0\build\boost_program_options-vc142.targets" Condition="Exists('..\packages\boost_program_options-vc142.1.72.0.0\build\boost_program_options-vc142.targets')" />
   223   </ImportGroup>
   224   <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
   225     <PropertyGroup>
   226       <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
   227     </PropertyGroup>
   228     <Error Condition="!Exists('..\packages\boost.1.72.0.0\build\boost.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost.1.72.0.0\build\boost.targets'))" />
   229     <Error Condition="!Exists('..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets'))" />
   230     <Error Condition="!Exists('..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets'))" />
   231     <Error Condition="!Exists('..\packages\boost_filesystem-vc142.1.72.0.0\build\boost_filesystem-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_filesystem-vc142.1.72.0.0\build\boost_filesystem-vc142.targets'))" />
   232     <Error Condition="!Exists('..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets'))" />
   233     <Error Condition="!Exists('..\packages\boost_chrono-vc142.1.72.0.0\build\boost_chrono-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_chrono-vc142.1.72.0.0\build\boost_chrono-vc142.targets'))" />
   234     <Error Condition="!Exists('..\packages\boost_program_options-vc142.1.72.0.0\build\boost_program_options-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_program_options-vc142.1.72.0.0\build\boost_program_options-vc142.targets'))" />
   235   </Target>
   236 </Project>