Browse Source

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
doc_update_sequoia
Unknown author 6 years ago
parent
commit
9192f3455c
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      build-windows/pEpEngine.vcxproj

+ 5
- 2
build-windows/pEpEngine.vcxproj View File

@ -68,8 +68,11 @@
<AdditionalDependencies>$(TargetDir)\pEpEngineASN1.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PreBuildEvent>
<Command>
</Command>
<Command>cd "$(ProjectDir)..\sync" &amp;&amp; python "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 devicegroup.fsm -o .statemachines
cd "$(ProjectDir)..\sync" &amp;&amp; python "%YML_PATH%\yml2proc" -E utf-8 -ygen_actions_skeleton.ysl2 devicegroup.fsm -o .skeletons
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
cd "$(ProjectDir)..\asn.1" &amp;&amp; del converter-sample.c
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">


Loading…
Cancel
Save