pEpCOMServerAdapter.vcxproj
author Markus Schaber <markus@pep-security.net>
Wed, 20 Apr 2016 23:14:03 +0200
changeset 63 e6e8d27aa9a1
parent 33 39c7fbbbe028
child 64 4eb297e99140
permissions -rw-r--r--
issue #140: Register via commandline, generate interop assembly explicitly.
     1 <?xml version="1.0" encoding="utf-8"?>
     2 <Project DefaultTargets="Build" ToolsVersion="12.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   </PropertyGroup>
    17   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
    18   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
    19     <ConfigurationType>Application</ConfigurationType>
    20     <UseDebugLibraries>true</UseDebugLibraries>
    21     <PlatformToolset>v120</PlatformToolset>
    22     <CharacterSet>Unicode</CharacterSet>
    23   </PropertyGroup>
    24   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
    25     <ConfigurationType>Application</ConfigurationType>
    26     <UseDebugLibraries>false</UseDebugLibraries>
    27     <PlatformToolset>v120</PlatformToolset>
    28     <CharacterSet>Unicode</CharacterSet>
    29   </PropertyGroup>
    30   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
    31   <ImportGroup Label="ExtensionSettings">
    32   </ImportGroup>
    33   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    34     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
    35   </ImportGroup>
    36   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    37     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
    38   </ImportGroup>
    39   <PropertyGroup Label="UserMacros" />
    40   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    41     <IgnoreImportLibrary>true</IgnoreImportLibrary>
    42     <LinkIncremental>true</LinkIncremental>
    43   </PropertyGroup>
    44   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    45     <IgnoreImportLibrary>true</IgnoreImportLibrary>
    46     <LinkIncremental>false</LinkIncremental>
    47   </PropertyGroup>
    48   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    49     <ClCompile>
    50       <PrecompiledHeader>Use</PrecompiledHeader>
    51       <WarningLevel>Level3</WarningLevel>
    52       <Optimization>Disabled</Optimization>
    53       <PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    54       <SDLCheck>true</SDLCheck>
    55     </ClCompile>
    56     <Midl>
    57       <MkTypLibCompatible>false</MkTypLibCompatible>
    58       <TargetEnvironment>Win32</TargetEnvironment>
    59       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    60       <HeaderFileName>pEpCOMServerAdapter_i.h</HeaderFileName>
    61       <InterfaceIdentifierFileName>pEpCOMServerAdapter_i.c</InterfaceIdentifierFileName>
    62       <ProxyFileName>pEpCOMServerAdapter_p.c</ProxyFileName>
    63       <GenerateStublessProxies>true</GenerateStublessProxies>
    64       <TypeLibraryName>$(IntDir)pEpCOMServerAdapter.tlb</TypeLibraryName>
    65       <DllDataFileName />
    66       <ValidateAllParameters>true</ValidateAllParameters>
    67     </Midl>
    68     <ResourceCompile>
    69       <Culture>0x0409</Culture>
    70       <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    71       <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    72     </ResourceCompile>
    73     <Link>
    74       <SubSystem>Windows</SubSystem>
    75       <GenerateDebugInformation>true</GenerateDebugInformation>
    76       <RegisterOutput>false</RegisterOutput>
    77       <AdditionalDependencies>comsuppwd.lib;%(AdditionalDependencies)</AdditionalDependencies>
    78       <PerUserRedirection>true</PerUserRedirection>
    79     </Link>
    80     <PostBuildEvent>
    81       <Command>echo "registering server $(TargetPath)"
    82 "$(TargetPath)" /Regserver
    83 
    84 echo "generating interop assembly $(TargetDir)\pEpCOMServerAdapter.Interop.dll"
    85 "$(SDK40ToolsPath)x64\TlbImp.exe" $(TargetPath) /out:$(TargetDir)\pEpCOMServerAdapter.Interop.dll /namespace:pEpCOMServerAdapterLib /primary /keyfile:"$(SolutionDir)\pep\pEp_test.snk" /machine:Agnostic
    86 
    87 </Command>
    88     </PostBuildEvent>
    89   </ItemDefinitionGroup>
    90   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    91     <ClCompile>
    92       <PrecompiledHeader>Use</PrecompiledHeader>
    93       <WarningLevel>Level3</WarningLevel>
    94       <Optimization>MaxSpeed</Optimization>
    95       <PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    96       <SDLCheck>true</SDLCheck>
    97     </ClCompile>
    98     <Midl>
    99       <MkTypLibCompatible>false</MkTypLibCompatible>
   100       <TargetEnvironment>Win32</TargetEnvironment>
   101       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   102       <HeaderFileName>pEpCOMServerAdapter_i.h</HeaderFileName>
   103       <InterfaceIdentifierFileName>pEpCOMServerAdapter_i.c</InterfaceIdentifierFileName>
   104       <ProxyFileName>pEpCOMServerAdapter_p.c</ProxyFileName>
   105       <GenerateStublessProxies>true</GenerateStublessProxies>
   106       <TypeLibraryName>$(IntDir)pEpCOMServerAdapter.tlb</TypeLibraryName>
   107       <DllDataFileName />
   108       <ValidateAllParameters>true</ValidateAllParameters>
   109     </Midl>
   110     <ResourceCompile>
   111       <Culture>0x0409</Culture>
   112       <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   113       <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   114     </ResourceCompile>
   115     <Link>
   116       <SubSystem>Windows</SubSystem>
   117       <GenerateDebugInformation>true</GenerateDebugInformation>
   118       <EnableCOMDATFolding>true</EnableCOMDATFolding>
   119       <OptimizeReferences>true</OptimizeReferences>
   120       <RegisterOutput>true</RegisterOutput>
   121       <AdditionalDependencies>comsuppw.lib;%(AdditionalDependencies)</AdditionalDependencies>
   122     </Link>
   123   </ItemDefinitionGroup>
   124   <ItemGroup>
   125     <ClCompile Include="CpEpEngine.cpp" />
   126     <ClCompile Include="pEpCOMServerAdapter.cpp" />
   127     <ClCompile Include="pEpCOMServerAdapter_i.c">
   128       <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
   129       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
   130       </PrecompiledHeader>
   131       <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
   132       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
   133       </PrecompiledHeader>
   134     </ClCompile>
   135     <ClCompile Include="pEp_utitlity.cpp" />
   136     <ClCompile Include="stdafx.cpp">
   137       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
   138       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
   139     </ClCompile>
   140     <ClCompile Include="utf8_helper.cpp" />
   141     <ClCompile Include="xdlldata.c">
   142       <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
   143       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
   144       </PrecompiledHeader>
   145       <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
   146       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
   147       </PrecompiledHeader>
   148     </ClCompile>
   149   </ItemGroup>
   150   <ItemGroup>
   151     <ClInclude Include="CpEpEngine.h" />
   152     <ClInclude Include="locked_queue.hh" />
   153     <ClInclude Include="pEpCOMServerAdapter_i.h" />
   154     <ClInclude Include="pEp_utility.h" />
   155     <ClInclude Include="Resource.h" />
   156     <ClInclude Include="stdafx.h" />
   157     <ClInclude Include="targetver.h" />
   158     <ClInclude Include="utf8_helper.h" />
   159     <ClInclude Include="xdlldata.h" />
   160     <ClInclude Include="_IpEpEngineEvents_CP.h" />
   161   </ItemGroup>
   162   <ItemGroup>
   163     <ResourceCompile Include="pEpCOMServerAdapter.rc" />
   164   </ItemGroup>
   165   <ItemGroup>
   166     <Text Include="ReadMe.txt" />
   167   </ItemGroup>
   168   <ItemGroup>
   169     <None Include="..\..\pep_for_outlook\pep\pep_test.snk" />
   170     <None Include="pEpCOMServerAdapter.rgs" />
   171     <None Include="pEpEngine.rgs" />
   172   </ItemGroup>
   173   <ItemGroup>
   174     <Midl Include="pEpCOMServerAdapter.idl" />
   175   </ItemGroup>
   176   <ItemGroup>
   177     <ProjectReference Include="..\..\pEpEngine\pEpEngine.vcxproj">
   178       <Project>{146e69f8-e1da-456a-b048-6dd29d9acf6b}</Project>
   179     </ProjectReference>
   180   </ItemGroup>
   181   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   182   <ImportGroup Label="ExtensionTargets">
   183   </ImportGroup>
   184 </Project>