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