forked from pEp.foundation/libpEpTransport
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
Batchfile
38 lines
1.2 KiB
Batchfile
:: The script is located in ...\pEpForWindowsAdapterSolution\libpEpTransport\build-windows\
|
|
SET current_directory=%~dp0
|
|
|
|
:: YML2 directory is ...\pEpForWindowsAdapterSolution\yml2\
|
|
SET yml2_directory=%current_directory%..\..\..\pEpForWindowsAdapterSolution\yml2
|
|
|
|
SET YML2PROC="%yml2_directory%\yml2proc"
|
|
|
|
:: Generate the code
|
|
PUSHD ..\src
|
|
IF NOT EXIST generated MKDIR generated
|
|
|
|
PY %YML2PROC% -E utf-8 -y gen_c.ysl2 transport_status_code.yml2 -o transport_status_code.h
|
|
IF %ERRORLEVEL% NEQ 0 GOTO end
|
|
|
|
PY %YML2PROC% -E utf-8 -y gen_strings.ysl2 transport_status_code.yml2 -o transport_status_code.c
|
|
IF %ERRORLEVEL% NEQ 0 GOTO end
|
|
|
|
PY %YML2PROC% -E utf-8 -y gen_objc.ysl2 transport_status_code.yml2 -o PEPTransportStatusCode.h
|
|
IF %ERRORLEVEL% NEQ 0 GOTO end
|
|
|
|
PY %YML2PROC% -E utf-8 -y gen_kotlin.ysl2 transport_status_code.yml2 -o TransportStatusCode.kt
|
|
IF %ERRORLEVEL% NEQ 0 GOTO end
|
|
|
|
PY %YML2PROC% -E utf-8 -y gen_cs.ysl2 transport_status_code.yml2 -o TransportStatusCode.cs
|
|
IF %ERRORLEVEL% NEQ 0 GOTO end
|
|
|
|
PY %YML2PROC% -E utf-8 -P transport_status_code.yml2 -o transport_status_code.xml
|
|
IF %ERRORLEVEL% NEQ 0 GOTO end
|
|
|
|
IF NOT EXIST ..\..\pEp MKDIR ..\..\pEp
|
|
XCOPY /y *.c ..\..\pEp\
|
|
XCOPY /y *.h ..\..\pEp\
|
|
|
|
:end
|
|
|
|
POPD
|
|
EXIT /B %ERRORLEVEL% |