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
vb@3023
     1
pushd .
vb@3023
     2
cd %1\sync
vb@3023
     3
Thomas@3099
     4
python "%YML_PATH%\yml2proc" -E utf-8 -y gen_actions.ysl2 sync.fsm
Thomas@3099
     5
python "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 sync.fsm
Thomas@3099
     6
python "%YML_PATH%\yml2proc" -E utf-8 -y gen_codec.ysl2 sync.fsm
Thomas@3099
     7
python "%YML_PATH%\yml2proc" -E utf-8 -y gen_messages.ysl2 sync.fsm
Thomas@3099
     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