build-windows/generate_code.cmd
author Volker Birk <vb@pep-project.org>
Fri, 07 Jun 2019 18:33:00 +0200
branchsync
changeset 3820 3763eb3c915b
parent 3112 ceb9d2a2b9cb
child 4169 d605633f9a6f
permissions -rw-r--r--
...
     1 pushd .
     2 cd %1\sync
     3 
     4 if not exist generated mkdir generated
     5 
     6 python "%YML_PATH%\yml2proc" -E utf-8 -y gen_actions.ysl2 sync.fsm
     7 python "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 sync.fsm
     8 python "%YML_PATH%\yml2proc" -E utf-8 -y gen_codec.ysl2 sync.fsm
     9 python "%YML_PATH%\yml2proc" -E utf-8 -y gen_messages.ysl2 sync.fsm
    10 python "%YML_PATH%\yml2proc" -E utf-8 -y gen_message_func.ysl2 sync.fsm
    11 
    12 xcopy /y generated\*.asn1 ..\asn.1\
    13 xcopy /y generated\*.c ..\src\
    14 xcopy /y generated\*.h ..\src\
    15 
    16 cd %1\asn.1
    17 
    18 del *.h*
    19 del *.c*
    20 
    21 ..\..\Tools\asn1c\bin\asn1c -S ../../Tools/asn1c/share/asn1c -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 sync.asn1
    22 
    23 del *-sample.c
    24 
    25 cd %1\..
    26 if not exist pEp mklink /d pEp pEpEngine\src
    27 
    28 popd