Windows build including asn1c and yml2proc
author<name>
Fri, 14 Oct 2016 12:59:02 +0200
changeset 1278a85f999bb41b
parent 1276 a926b9e401ee
child 1279 1102ae77edb1
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
build-windows/pEpEngine.vcxproj
     1.1 --- a/build-windows/pEpEngine.vcxproj	Thu Oct 13 16:24:40 2016 +0200
     1.2 +++ b/build-windows/pEpEngine.vcxproj	Fri Oct 14 12:59:02 2016 +0200
     1.3 @@ -68,8 +68,11 @@
     1.4        <AdditionalDependencies>$(TargetDir)\pEpEngineASN1.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
     1.5      </Link>
     1.6      <PreBuildEvent>
     1.7 -      <Command>
     1.8 -      </Command>
     1.9 +      <Command>cd "$(ProjectDir)..\sync" &amp;&amp; python "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 devicegroup.fsm -o .statemachines
    1.10 +cd "$(ProjectDir)..\sync" &amp;&amp; python "%YML_PATH%\yml2proc" -E utf-8 -ygen_actions_skeleton.ysl2 devicegroup.fsm -o .skeletons
    1.11 +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
    1.12 +cd "$(ProjectDir)..\asn.1" &amp;&amp; del converter-sample.c
    1.13 +</Command>
    1.14      </PreBuildEvent>
    1.15    </ItemDefinitionGroup>
    1.16    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">