build-windows/generate_code.cmd
author Krista Bennett <krista@pep.foundation>
Wed, 06 Feb 2019 18:21:04 +0100
branchkrista-netpgp-sync
changeset 3276 c0b3430f1f1d
parent 3112 ceb9d2a2b9cb
child 4169 d605633f9a6f
permissions -rwxr-xr-x
ENGINE-511: fixed file uris for decrypt_in_pieces
vb@3023
     1
pushd .
vb@3023
     2
cd %1\sync
vb@3023
     3
Thomas@3112
     4
if not exist generated mkdir generated
Thomas@3112
     5
Thomas@3099
     6
python "%YML_PATH%\yml2proc" -E utf-8 -y gen_actions.ysl2 sync.fsm
Thomas@3099
     7
python "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 sync.fsm
Thomas@3099
     8
python "%YML_PATH%\yml2proc" -E utf-8 -y gen_codec.ysl2 sync.fsm
Thomas@3099
     9
python "%YML_PATH%\yml2proc" -E utf-8 -y gen_messages.ysl2 sync.fsm
Thomas@3099
    10
python "%YML_PATH%\yml2proc" -E utf-8 -y gen_message_func.ysl2 sync.fsm
vb@3023
    11
vb@3023
    12
xcopy /y generated\*.asn1 ..\asn.1\
vb@3023
    13
xcopy /y generated\*.c ..\src\
vb@3023
    14
xcopy /y generated\*.h ..\src\
vb@3023
    15
vb@3023
    16
cd %1\asn.1
vb@3023
    17
vb@3024
    18
del *.h*
vb@3024
    19
del *.c*
vb@3024
    20
vb@3023
    21
..\..\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
    22
vb@3024
    23
del *-sample.c
vb@3024
    24
vb@3056
    25
cd %1\..
vb@3056
    26
if not exist pEp mklink /d pEp pEpEngine\src
vb@3056
    27
vb@3023
    28
popd