build-windows/generate_code.cmd
author Thomas
Wed, 08 Jan 2020 17:18:50 +0100
branchsync
changeset 4311 d86602e53471
parent 4292 91bd76bcb978
child 4428 d93b2e27ed9a
permissions -rw-r--r--
Fix Windows build
     1 pushd .
     2 set pwd=%cd%
     3 cd %pwd%\sync
     4 
     5 if not exist generated mkdir generated
     6 
     7 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_actions.ysl2 sync.fsm
     8 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_codec.ysl2 distribution.fsm
     9 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_codec.ysl2 sync.fsm
    10 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_messages.ysl2 sync.fsm
    11 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_messages.ysl2 distribution.fsm
    12 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_message_func.ysl2 sync.fsm
    13 py "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 sync.fsm
    14 
    15 xcopy /y generated\*.asn1 ..\asn.1\
    16 xcopy /y generated\*.c ..\src\
    17 xcopy /y generated\*.h ..\src\
    18 
    19 cd %pwd%\asn.1
    20 
    21 del *.h
    22 del *.c
    23 
    24 ..\..\Tools\asn1c\bin\asn1c -S ../../Tools/asn1c/share/asn1c -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 sync.asn1
    25 ..\..\Tools\asn1c\bin\asn1c -S ../../Tools/asn1c/share/asn1c -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keyreset.asn1 distribution.asn1
    26 
    27 del *-sample.c
    28 
    29 cd %pwd%\..
    30 if not exist pEp mklink /d pEp pEpEngine\src
    31 
    32 popd