build-windows/generate_code.cmd
author Thomas
Thu, 14 Nov 2019 16:06:38 +0100
branchsync
changeset 4169 d605633f9a6f
parent 3112 ceb9d2a2b9cb
child 4292 91bd76bcb978
permissions -rw-r--r--
Update generate_code script for Windows
     1 pushd .
     2 cd %1\sync
     3 
     4 if not exist generated mkdir generated
     5 
     6 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_actions.ysl2 sync.fsm
     7 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 sync.fsm
     8 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_codec.ysl2 sync.fsm
     9 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_messages.ysl2 sync.fsm
    10 py "%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