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
vb@3023
     1
pushd .
vb@4292
     2
set pwd=%cd%
vb@4292
     3
cd %pwd%\sync
vb@3023
     4
Thomas@3112
     5
if not exist generated mkdir generated
Thomas@3112
     6
Thomas@4169
     7
py "%YML_PATH%\yml2proc" -E utf-8 -y gen_actions.ysl2 sync.fsm
Thomas@4311
     8
py "%YML_PATH%\yml2proc" -E utf-8 -y gen_codec.ysl2 distribution.fsm
Thomas@4311
     9
py "%YML_PATH%\yml2proc" -E utf-8 -y gen_codec.ysl2 sync.fsm
Thomas@4311
    10
py "%YML_PATH%\yml2proc" -E utf-8 -y gen_messages.ysl2 sync.fsm
Thomas@4311
    11
py "%YML_PATH%\yml2proc" -E utf-8 -y gen_messages.ysl2 distribution.fsm
Thomas@4311
    12
py "%YML_PATH%\yml2proc" -E utf-8 -y gen_message_func.ysl2 sync.fsm
Thomas@4169
    13
py "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 sync.fsm
vb@3023
    14
vb@3023
    15
xcopy /y generated\*.asn1 ..\asn.1\
vb@3023
    16
xcopy /y generated\*.c ..\src\
vb@3023
    17
xcopy /y generated\*.h ..\src\
vb@3023
    18
vb@4292
    19
cd %pwd%\asn.1
vb@3023
    20
vb@4292
    21
del *.h
vb@4292
    22
del *.c
vb@3024
    23
vb@3023
    24
..\..\Tools\asn1c\bin\asn1c -S ../../Tools/asn1c/share/asn1c -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 sync.asn1
vb@4292
    25
..\..\Tools\asn1c\bin\asn1c -S ../../Tools/asn1c/share/asn1c -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keyreset.asn1 distribution.asn1
vb@3023
    26
vb@3024
    27
del *-sample.c
vb@3024
    28
vb@4292
    29
cd %pwd%\..
vb@3056
    30
if not exist pEp mklink /d pEp pEpEngine\src
vb@3056
    31
vb@3023
    32
popd