build-windows/pEpEngine.vcxproj
author <name>
Fri, 14 Oct 2016 12:59:02 +0200
changeset 1278 a85f999bb41b
parent 1265 a5426d97673e
child 1279 1102ae77edb1
permissions -rw-r--r--
Windows build including asn1c and yml2proc

Two environment variables are needed:

YML_HOME must be set to the directory with YML2 in
ASN1C must be set to the directory with bin\asn1c in

Python 2.7 must be installed, and python.exe must in in PATH
krista@1265
     1
<?xml version="1.0" encoding="utf-8"?>
krista@1265
     2
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
krista@1265
     3
  <ItemGroup Label="ProjectConfigurations">
krista@1265
     4
    <ProjectConfiguration Include="Debug|Win32">
krista@1265
     5
      <Configuration>Debug</Configuration>
krista@1265
     6
      <Platform>Win32</Platform>
krista@1265
     7
    </ProjectConfiguration>
krista@1265
     8
    <ProjectConfiguration Include="Release|Win32">
krista@1265
     9
      <Configuration>Release</Configuration>
krista@1265
    10
      <Platform>Win32</Platform>
krista@1265
    11
    </ProjectConfiguration>
krista@1265
    12
  </ItemGroup>
krista@1265
    13
  <PropertyGroup Label="Globals">
krista@1265
    14
    <ProjectGuid>{146E69F8-E1DA-456A-B048-6DD29D9ACF6B}</ProjectGuid>
krista@1265
    15
    <Keyword>Win32Proj</Keyword>
krista@1265
    16
    <RootNamespace>pEpEngine</RootNamespace>
krista@1265
    17
    <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
krista@1265
    18
  </PropertyGroup>
krista@1265
    19
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
krista@1265
    20
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
krista@1265
    21
    <ConfigurationType>DynamicLibrary</ConfigurationType>
krista@1265
    22
    <UseDebugLibraries>true</UseDebugLibraries>
krista@1265
    23
    <PlatformToolset>v140</PlatformToolset>
krista@1265
    24
    <CharacterSet>Unicode</CharacterSet>
krista@1265
    25
  </PropertyGroup>
krista@1265
    26
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
krista@1265
    27
    <ConfigurationType>DynamicLibrary</ConfigurationType>
krista@1265
    28
    <UseDebugLibraries>false</UseDebugLibraries>
krista@1265
    29
    <PlatformToolset>v140</PlatformToolset>
krista@1265
    30
    <WholeProgramOptimization>true</WholeProgramOptimization>
krista@1265
    31
    <CharacterSet>Unicode</CharacterSet>
krista@1265
    32
  </PropertyGroup>
krista@1265
    33
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
krista@1265
    34
  <ImportGroup Label="ExtensionSettings">
krista@1265
    35
  </ImportGroup>
krista@1265
    36
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
krista@1265
    37
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
krista@1265
    38
  </ImportGroup>
krista@1265
    39
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
krista@1265
    40
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
krista@1265
    41
  </ImportGroup>
krista@1265
    42
  <PropertyGroup Label="UserMacros" />
krista@1265
    43
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
krista@1265
    44
    <LinkIncremental>true</LinkIncremental>
krista@1265
    45
    <IncludePath>$(ProjectDir)\..\..\libetpan\build-windows\include;C:\Program Files %28x86%29\GNU\GnuPG\include;$(IncludePath)</IncludePath>
krista@1265
    46
    <RunCodeAnalysis>false</RunCodeAnalysis>
krista@1265
    47
    <LibraryPath>$(ProjectDir)\..\..\libetpan\build-windows\Debug;$(LibraryPath)</LibraryPath>
krista@1265
    48
  </PropertyGroup>
krista@1265
    49
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
krista@1265
    50
    <LinkIncremental>false</LinkIncremental>
krista@1265
    51
    <IncludePath>$(ProjectDir)\..\..\libetpan\build-windows\include;C:\Program Files %28x86%29\GNU\GnuPG\include;$(IncludePath)</IncludePath>
krista@1265
    52
    <LibraryPath>$(ProjectDir)\..\..\libetpan\build-windows\Release;$(LibraryPath)</LibraryPath>
krista@1265
    53
  </PropertyGroup>
krista@1265
    54
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
krista@1265
    55
    <ClCompile>
krista@1265
    56
      <PrecompiledHeader>NotUsing</PrecompiledHeader>
krista@1265
    57
      <WarningLevel>Level3</WarningLevel>
krista@1265
    58
      <Optimization>Disabled</Optimization>
krista@1265
    59
      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;PEPENGINE_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
krista@1265
    60
      <SDLCheck>true</SDLCheck>
krista@1265
    61
      <EnablePREfast>false</EnablePREfast>
krista@1265
    62
      <AdditionalIncludeDirectories>C:\Users\vb\share\asn1c;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
krista@1265
    63
      <CompileAs>Default</CompileAs>
krista@1265
    64
    </ClCompile>
krista@1265
    65
    <Link>
krista@1265
    66
      <SubSystem>Windows</SubSystem>
krista@1265
    67
      <GenerateDebugInformation>true</GenerateDebugInformation>
krista@1265
    68
      <AdditionalDependencies>$(TargetDir)\pEpEngineASN1.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
krista@1265
    69
    </Link>
krista@1265
    70
    <PreBuildEvent>
name>@1278
    71
      <Command>cd "$(ProjectDir)..\sync" &amp;&amp; python "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 devicegroup.fsm -o .statemachines
name>@1278
    72
cd "$(ProjectDir)..\sync" &amp;&amp; python "%YML_PATH%\yml2proc" -E utf-8 -ygen_actions_skeleton.ysl2 devicegroup.fsm -o .skeletons
name>@1278
    73
cd "$(ProjectDir)..\asn.1" &amp;&amp; "%ASN1C%\bin\asn1c" -S "%ASN1C%\share\asn1c" -gen-PER -fincludes-quoted -fcompound-names -pdu=PEP.Message pEp.asn1 devicegroup.asn1 protocols.asn1
name>@1278
    74
cd "$(ProjectDir)..\asn.1" &amp;&amp; del converter-sample.c
name>@1278
    75
</Command>
krista@1265
    76
    </PreBuildEvent>
krista@1265
    77
  </ItemDefinitionGroup>
krista@1265
    78
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
krista@1265
    79
    <ClCompile>
krista@1265
    80
      <WarningLevel>Level3</WarningLevel>
krista@1265
    81
      <PrecompiledHeader>NotUsing</PrecompiledHeader>
krista@1265
    82
      <Optimization>MaxSpeed</Optimization>
krista@1265
    83
      <FunctionLevelLinking>true</FunctionLevelLinking>
krista@1265
    84
      <IntrinsicFunctions>true</IntrinsicFunctions>
krista@1265
    85
      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;PEPENGINE_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
krista@1265
    86
      <SDLCheck>false</SDLCheck>
krista@1265
    87
      <TreatWarningAsError>false</TreatWarningAsError>
krista@1265
    88
      <AdditionalIncludeDirectories>C:\Users\vb\share\asn1c;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
krista@1265
    89
      <CompileAs>Default</CompileAs>
krista@1265
    90
      <MultiProcessorCompilation>true</MultiProcessorCompilation>
krista@1265
    91
      <ControlFlowGuard>Guard</ControlFlowGuard>
krista@1265
    92
    </ClCompile>
krista@1265
    93
    <Link>
krista@1265
    94
      <SubSystem>Windows</SubSystem>
krista@1265
    95
      <GenerateDebugInformation>true</GenerateDebugInformation>
krista@1265
    96
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
krista@1265
    97
      <OptimizeReferences>true</OptimizeReferences>
krista@1265
    98
      <AdditionalDependencies>$(TargetDir)\pEpEngineASN1.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
krista@1265
    99
    </Link>
krista@1265
   100
    <PreBuildEvent>
krista@1265
   101
      <Command>
krista@1265
   102
      </Command>
krista@1265
   103
    </PreBuildEvent>
krista@1265
   104
  </ItemDefinitionGroup>
krista@1265
   105
  <ItemGroup>
krista@1265
   106
    <ClCompile Include="..\src\asn1_helper.c" />
krista@1265
   107
    <ClCompile Include="..\src\baseprotocol.c" />
krista@1265
   108
    <ClCompile Include="..\src\blacklist.c" />
krista@1265
   109
    <ClCompile Include="..\src\bloblist.c" />
krista@1265
   110
    <ClCompile Include="..\src\cryptotech.c" />
krista@1265
   111
    <ClCompile Include="..\src\email.c" />
krista@1265
   112
    <ClCompile Include="..\src\etpan_mime.c" />
krista@1265
   113
    <ClCompile Include="..\src\identity_list.c" />
krista@1265
   114
    <ClCompile Include="..\src\keymanagement.c" />
krista@1265
   115
    <ClCompile Include="..\src\map_asn1.c" />
krista@1265
   116
    <ClCompile Include="..\src\message.c" />
krista@1265
   117
    <ClCompile Include="..\src\message_api.c" />
krista@1265
   118
    <ClCompile Include="..\src\mime.c" />
krista@1265
   119
    <ClCompile Include="..\src\openpgp_compat.c" />
krista@1265
   120
    <ClCompile Include="..\src\pEpEngine.c" />
krista@1265
   121
    <ClCompile Include="..\src\pgp_gpg.c" />
krista@1265
   122
    <ClCompile Include="..\src\platform_windows.cpp" />
krista@1265
   123
    <ClCompile Include="..\src\sqlite3.c" />
krista@1265
   124
    <ClCompile Include="..\src\stringlist.c" />
krista@1265
   125
    <ClCompile Include="..\src\stringpair.c" />
krista@1265
   126
    <ClCompile Include="..\src\sync.c" />
krista@1265
   127
    <ClCompile Include="..\src\sync_actions.c" />
krista@1265
   128
    <ClCompile Include="..\src\sync_driver.c" />
krista@1265
   129
    <ClCompile Include="..\src\sync_fsm.c" />
krista@1265
   130
    <ClCompile Include="..\src\sync_impl.c" />
krista@1265
   131
    <ClCompile Include="..\src\sync_send_actions.c" />
krista@1265
   132
    <ClCompile Include="..\src\timestamp.c" />
krista@1265
   133
    <ClCompile Include="..\src\transport.c" />
krista@1265
   134
    <ClCompile Include="..\src\trans_auto.c" />
krista@1265
   135
  </ItemGroup>
krista@1265
   136
  <ItemGroup>
krista@1265
   137
    <ClInclude Include="..\src\asn1_helper.h" />
krista@1265
   138
    <ClInclude Include="..\src\baseprotocol.h" />
krista@1265
   139
    <ClInclude Include="..\src\blacklist.h" />
krista@1265
   140
    <ClInclude Include="..\src\bloblist.h" />
krista@1265
   141
    <ClInclude Include="..\src\cryptotech.h" />
krista@1265
   142
    <ClInclude Include="..\src\dynamic_api.h" />
krista@1265
   143
    <ClInclude Include="..\src\email.h" />
krista@1265
   144
    <ClInclude Include="..\src\etpan_mime.h" />
krista@1265
   145
    <ClInclude Include="..\src\identity_list.h" />
krista@1265
   146
    <ClInclude Include="..\src\keymanagement.h" />
krista@1265
   147
    <ClInclude Include="..\src\map_asn1.h" />
krista@1265
   148
    <ClInclude Include="..\src\message.h" />
krista@1265
   149
    <ClInclude Include="..\src\message_api.h" />
krista@1265
   150
    <ClInclude Include="..\src\mime.h" />
krista@1265
   151
    <ClInclude Include="..\src\openpgp_compat.h" />
krista@1265
   152
    <ClInclude Include="..\src\pEpEngine.h" />
krista@1265
   153
    <ClInclude Include="..\src\pEp_internal.h" />
krista@1265
   154
    <ClInclude Include="..\src\pgp_gpg.h" />
krista@1265
   155
    <ClInclude Include="..\src\pgp_gpg_internal.h" />
krista@1265
   156
    <ClInclude Include="..\src\platform.h" />
krista@1265
   157
    <ClInclude Include="..\src\platform_windows.h" />
krista@1265
   158
    <ClInclude Include="..\src\resource.h" />
krista@1265
   159
    <ClInclude Include="..\src\sqlite3.h" />
krista@1265
   160
    <ClInclude Include="..\src\stringlist.h" />
krista@1265
   161
    <ClInclude Include="..\src\stringpair.h" />
krista@1265
   162
    <ClInclude Include="..\src\sync.h" />
krista@1265
   163
    <ClInclude Include="..\src\sync_fsm.h" />
krista@1265
   164
    <ClInclude Include="..\src\sync_impl.h" />
krista@1265
   165
    <ClInclude Include="..\src\timestamp.h" />
krista@1265
   166
    <ClInclude Include="..\src\transport.h" />
krista@1265
   167
    <ClInclude Include="..\src\trans_auto.h" />
krista@1265
   168
    <ClInclude Include="..\src\wrappers.h" />
krista@1265
   169
  </ItemGroup>
krista@1265
   170
  <ItemGroup>
krista@1265
   171
    <Text Include="..\LICENSE.txt" />
krista@1265
   172
  </ItemGroup>
krista@1265
   173
  <ItemGroup>
krista@1265
   174
    <ProjectReference Include="..\..\libetpan\build-windows\libetpan\libetpan.vcxproj">
krista@1265
   175
      <Project>{ba4ded3c-e56f-4484-bfc3-9c13e461a1be}</Project>
krista@1265
   176
    </ProjectReference>
krista@1265
   177
  </ItemGroup>
krista@1265
   178
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
krista@1265
   179
  <ImportGroup Label="ExtensionTargets">
krista@1265
   180
  </ImportGroup>
krista@1265
   181
</Project>