build-windows/generate_code.cmd
author Volker Birk <vb@pep.foundation>
Sun, 21 Oct 2018 11:53:09 +0200
branchsync
changeset 3076 feab4daed302
parent 3056 924a5dfb5367
child 3099 67f66e9a47fc
permissions -rw-r--r--
in case of out of memory break
vb@3023
     1
pushd .
vb@3023
     2
cd %1\sync
vb@3023
     3
vb@3023
     4
python %YML_PATH%\yml2proc -E utf-8 -y gen_actions.ysl2 sync.fsm
vb@3023
     5
python %YML_PATH%\yml2proc -E utf-8 -y gen_statemachine.ysl2 sync.fsm
vb@3023
     6
python %YML_PATH%\yml2proc -E utf-8 -y gen_codec.ysl2 sync.fsm
vb@3025
     7
python %YML_PATH%\yml2proc -E utf-8 -y gen_messages.ysl2 sync.fsm
vb@3025
     8
python %YML_PATH%\yml2proc -E utf-8 -y gen_message_func.ysl2 sync.fsm
vb@3023
     9
vb@3023
    10
xcopy /y generated\*.asn1 ..\asn.1\
vb@3023
    11
xcopy /y generated\*.c ..\src\
vb@3023
    12
xcopy /y generated\*.h ..\src\
vb@3023
    13
vb@3023
    14
cd %1\asn.1
vb@3023
    15
vb@3024
    16
del *.h*
vb@3024
    17
del *.c*
vb@3024
    18
vb@3023
    19
..\..\Tools\asn1c\bin\asn1c -S ../../Tools/asn1c/share/asn1c -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 sync.asn1
vb@3023
    20
vb@3024
    21
del *-sample.c
vb@3024
    22
vb@3056
    23
cd %1\..
vb@3056
    24
if not exist pEp mklink /d pEp pEpEngine\src
vb@3056
    25
vb@3023
    26
popd