build-windows/generate_code.cmd
author Thomas
Tue, 23 Oct 2018 15:05:00 +0200
branchsync
changeset 3099 67f66e9a47fc
parent 3056 924a5dfb5367
child 3112 ceb9d2a2b9cb
permissions -rw-r--r--
Adjust file paths for Windows build
     1 pushd .
     2 cd %1\sync
     3 
     4 python "%YML_PATH%\yml2proc" -E utf-8 -y gen_actions.ysl2 sync.fsm
     5 python "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 sync.fsm
     6 python "%YML_PATH%\yml2proc" -E utf-8 -y gen_codec.ysl2 sync.fsm
     7 python "%YML_PATH%\yml2proc" -E utf-8 -y gen_messages.ysl2 sync.fsm
     8 python "%YML_PATH%\yml2proc" -E utf-8 -y gen_message_func.ysl2 sync.fsm
     9 
    10 xcopy /y generated\*.asn1 ..\asn.1\
    11 xcopy /y generated\*.c ..\src\
    12 xcopy /y generated\*.h ..\src\
    13 
    14 cd %1\asn.1
    15 
    16 del *.h*
    17 del *.c*
    18 
    19 ..\..\Tools\asn1c\bin\asn1c -S ../../Tools/asn1c/share/asn1c -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 sync.asn1
    20 
    21 del *-sample.c
    22 
    23 cd %1\..
    24 if not exist pEp mklink /d pEp pEpEngine\src
    25 
    26 popd