pEpCOMServerAdapter.vcxproj
author Dean Looyengoed
Thu, 21 Apr 2016 18:16:34 +0200
changeset 64 4eb297e99140
parent 63 e6e8d27aa9a1
child 69 8e47cec9271b
permissions -rw-r--r--
Update the post build event to work across different computers/configurations
-> Move PostBuildEvent into it's own ItemDefinitionGroup that supports both Debug/Release configuration
-> Add double quotes around variables in command line arguments (so spaces are supported in paths)
-> Change the keyfile path folder to be \pEp\ instead of \pep\ (supports original folder structure)
-> Remove extra backslashes in paths
vb@0
     1
<?xml version="1.0" encoding="utf-8"?>
vb@0
     2
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
vb@0
     3
  <ItemGroup Label="ProjectConfigurations">
vb@0
     4
    <ProjectConfiguration Include="Debug|Win32">
vb@0
     5
      <Configuration>Debug</Configuration>
vb@0
     6
      <Platform>Win32</Platform>
vb@0
     7
    </ProjectConfiguration>
vb@0
     8
    <ProjectConfiguration Include="Release|Win32">
vb@0
     9
      <Configuration>Release</Configuration>
vb@0
    10
      <Platform>Win32</Platform>
vb@0
    11
    </ProjectConfiguration>
vb@0
    12
  </ItemGroup>
vb@0
    13
  <PropertyGroup Label="Globals">
vb@0
    14
    <ProjectGuid>{A27BD6BF-63BC-473D-B8BD-84ACB085F39C}</ProjectGuid>
vb@0
    15
    <Keyword>AtlProj</Keyword>
vb@0
    16
  </PropertyGroup>
vb@0
    17
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
vb@0
    18
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
vb@0
    19
    <ConfigurationType>Application</ConfigurationType>
vb@0
    20
    <UseDebugLibraries>true</UseDebugLibraries>
vb@0
    21
    <PlatformToolset>v120</PlatformToolset>
vb@0
    22
    <CharacterSet>Unicode</CharacterSet>
vb@0
    23
  </PropertyGroup>
vb@0
    24
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
vb@0
    25
    <ConfigurationType>Application</ConfigurationType>
vb@0
    26
    <UseDebugLibraries>false</UseDebugLibraries>
vb@0
    27
    <PlatformToolset>v120</PlatformToolset>
vb@0
    28
    <CharacterSet>Unicode</CharacterSet>
vb@0
    29
  </PropertyGroup>
vb@0
    30
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
vb@0
    31
  <ImportGroup Label="ExtensionSettings">
vb@0
    32
  </ImportGroup>
vb@0
    33
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
vb@0
    34
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
vb@0
    35
  </ImportGroup>
vb@0
    36
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
vb@0
    37
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
vb@0
    38
  </ImportGroup>
vb@0
    39
  <PropertyGroup Label="UserMacros" />
vb@0
    40
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
vb@0
    41
    <IgnoreImportLibrary>true</IgnoreImportLibrary>
vb@0
    42
    <LinkIncremental>true</LinkIncremental>
vb@0
    43
  </PropertyGroup>
vb@0
    44
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
vb@0
    45
    <IgnoreImportLibrary>true</IgnoreImportLibrary>
vb@0
    46
    <LinkIncremental>false</LinkIncremental>
vb@0
    47
  </PropertyGroup>
Dean@64
    48
  <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
Dean@64
    49
    <PostBuildEvent>
Dean@64
    50
      <Command>echo "registering server $(TargetPath)"
Dean@64
    51
"$(TargetPath)" /Regserver
Dean@64
    52
Dean@64
    53
echo "generating interop assembly $(TargetDir)pEpCOMServerAdapter.Interop.dll"
Dean@64
    54
"$(SDK40ToolsPath)x64\TlbImp.exe" "$(TargetPath)" /out:"$(TargetDir)pEpCOMServerAdapter.Interop.dll" /namespace:pEpCOMServerAdapterLib /primary /keyfile:"$(SolutionDir)pEp\pEp_test.snk" /machine:Agnostic
Dean@64
    55
Dean@64
    56
</Command>
Dean@64
    57
    </PostBuildEvent>
Dean@64
    58
  </ItemDefinitionGroup>
vb@0
    59
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
vb@0
    60
    <ClCompile>
vb@0
    61
      <PrecompiledHeader>Use</PrecompiledHeader>
vb@0
    62
      <WarningLevel>Level3</WarningLevel>
vb@0
    63
      <Optimization>Disabled</Optimization>
vb@0
    64
      <PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
vb@0
    65
      <SDLCheck>true</SDLCheck>
vb@0
    66
    </ClCompile>
vb@0
    67
    <Midl>
vb@0
    68
      <MkTypLibCompatible>false</MkTypLibCompatible>
vb@0
    69
      <TargetEnvironment>Win32</TargetEnvironment>
vb@0
    70
      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
vb@0
    71
      <HeaderFileName>pEpCOMServerAdapter_i.h</HeaderFileName>
vb@0
    72
      <InterfaceIdentifierFileName>pEpCOMServerAdapter_i.c</InterfaceIdentifierFileName>
vb@0
    73
      <ProxyFileName>pEpCOMServerAdapter_p.c</ProxyFileName>
vb@0
    74
      <GenerateStublessProxies>true</GenerateStublessProxies>
vb@0
    75
      <TypeLibraryName>$(IntDir)pEpCOMServerAdapter.tlb</TypeLibraryName>
vb@0
    76
      <DllDataFileName />
vb@0
    77
      <ValidateAllParameters>true</ValidateAllParameters>
vb@0
    78
    </Midl>
vb@0
    79
    <ResourceCompile>
vb@0
    80
      <Culture>0x0409</Culture>
vb@0
    81
      <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
vb@0
    82
      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
vb@0
    83
    </ResourceCompile>
vb@0
    84
    <Link>
vb@0
    85
      <SubSystem>Windows</SubSystem>
vb@0
    86
      <GenerateDebugInformation>true</GenerateDebugInformation>
markus@63
    87
      <RegisterOutput>false</RegisterOutput>
vb@0
    88
      <AdditionalDependencies>comsuppwd.lib;%(AdditionalDependencies)</AdditionalDependencies>
vb@0
    89
      <PerUserRedirection>true</PerUserRedirection>
vb@0
    90
    </Link>
vb@0
    91
  </ItemDefinitionGroup>
vb@0
    92
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
vb@0
    93
    <ClCompile>
vb@0
    94
      <PrecompiledHeader>Use</PrecompiledHeader>
vb@0
    95
      <WarningLevel>Level3</WarningLevel>
vb@0
    96
      <Optimization>MaxSpeed</Optimization>
vb@0
    97
      <PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
vb@0
    98
      <SDLCheck>true</SDLCheck>
vb@0
    99
    </ClCompile>
vb@0
   100
    <Midl>
vb@0
   101
      <MkTypLibCompatible>false</MkTypLibCompatible>
vb@0
   102
      <TargetEnvironment>Win32</TargetEnvironment>
vb@0
   103
      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
vb@0
   104
      <HeaderFileName>pEpCOMServerAdapter_i.h</HeaderFileName>
vb@0
   105
      <InterfaceIdentifierFileName>pEpCOMServerAdapter_i.c</InterfaceIdentifierFileName>
vb@0
   106
      <ProxyFileName>pEpCOMServerAdapter_p.c</ProxyFileName>
vb@0
   107
      <GenerateStublessProxies>true</GenerateStublessProxies>
vb@0
   108
      <TypeLibraryName>$(IntDir)pEpCOMServerAdapter.tlb</TypeLibraryName>
vb@0
   109
      <DllDataFileName />
vb@0
   110
      <ValidateAllParameters>true</ValidateAllParameters>
vb@0
   111
    </Midl>
vb@0
   112
    <ResourceCompile>
vb@0
   113
      <Culture>0x0409</Culture>
vb@0
   114
      <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
vb@0
   115
      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
vb@0
   116
    </ResourceCompile>
vb@0
   117
    <Link>
vb@0
   118
      <SubSystem>Windows</SubSystem>
vb@0
   119
      <GenerateDebugInformation>true</GenerateDebugInformation>
vb@0
   120
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
vb@0
   121
      <OptimizeReferences>true</OptimizeReferences>
vb@0
   122
      <RegisterOutput>true</RegisterOutput>
vb@0
   123
      <AdditionalDependencies>comsuppw.lib;%(AdditionalDependencies)</AdditionalDependencies>
vb@0
   124
    </Link>
vb@0
   125
  </ItemDefinitionGroup>
vb@0
   126
  <ItemGroup>
vb@0
   127
    <ClCompile Include="CpEpEngine.cpp" />
vb@0
   128
    <ClCompile Include="pEpCOMServerAdapter.cpp" />
vb@0
   129
    <ClCompile Include="pEpCOMServerAdapter_i.c">
vb@0
   130
      <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
vb@0
   131
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
vb@0
   132
      </PrecompiledHeader>
vb@0
   133
      <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
vb@0
   134
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
vb@0
   135
      </PrecompiledHeader>
vb@0
   136
    </ClCompile>
vb@33
   137
    <ClCompile Include="pEp_utitlity.cpp" />
vb@0
   138
    <ClCompile Include="stdafx.cpp">
vb@0
   139
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
vb@0
   140
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
vb@0
   141
    </ClCompile>
vb@0
   142
    <ClCompile Include="utf8_helper.cpp" />
vb@0
   143
    <ClCompile Include="xdlldata.c">
vb@0
   144
      <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
vb@0
   145
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
vb@0
   146
      </PrecompiledHeader>
vb@0
   147
      <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
vb@0
   148
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
vb@0
   149
      </PrecompiledHeader>
vb@0
   150
    </ClCompile>
vb@0
   151
  </ItemGroup>
vb@0
   152
  <ItemGroup>
vb@0
   153
    <ClInclude Include="CpEpEngine.h" />
vb@0
   154
    <ClInclude Include="locked_queue.hh" />
vb@0
   155
    <ClInclude Include="pEpCOMServerAdapter_i.h" />
vb@33
   156
    <ClInclude Include="pEp_utility.h" />
vb@0
   157
    <ClInclude Include="Resource.h" />
vb@0
   158
    <ClInclude Include="stdafx.h" />
vb@0
   159
    <ClInclude Include="targetver.h" />
vb@0
   160
    <ClInclude Include="utf8_helper.h" />
vb@0
   161
    <ClInclude Include="xdlldata.h" />
vb@0
   162
    <ClInclude Include="_IpEpEngineEvents_CP.h" />
vb@0
   163
  </ItemGroup>
vb@0
   164
  <ItemGroup>
vb@0
   165
    <ResourceCompile Include="pEpCOMServerAdapter.rc" />
vb@0
   166
  </ItemGroup>
vb@0
   167
  <ItemGroup>
vb@0
   168
    <Text Include="ReadMe.txt" />
vb@0
   169
  </ItemGroup>
vb@0
   170
  <ItemGroup>
markus@63
   171
    <None Include="..\..\pep_for_outlook\pep\pep_test.snk" />
vb@0
   172
    <None Include="pEpCOMServerAdapter.rgs" />
vb@0
   173
    <None Include="pEpEngine.rgs" />
vb@0
   174
  </ItemGroup>
vb@0
   175
  <ItemGroup>
vb@0
   176
    <Midl Include="pEpCOMServerAdapter.idl" />
vb@0
   177
  </ItemGroup>
vb@0
   178
  <ItemGroup>
vb@0
   179
    <ProjectReference Include="..\..\pEpEngine\pEpEngine.vcxproj">
vb@0
   180
      <Project>{146e69f8-e1da-456a-b048-6dd29d9acf6b}</Project>
vb@0
   181
    </ProjectReference>
vb@0
   182
  </ItemGroup>
vb@0
   183
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
vb@0
   184
  <ImportGroup Label="ExtensionTargets">
vb@0
   185
  </ImportGroup>
vb@0
   186
</Project>