Browse Source

Merge pull request 'master' (#64) from Thomas/pEpEngine:master into master

Reviewed-on: https://gitea.pep.foundation/pEp.foundation/pEpEngine/pulls/64
IOSAD-230
Luca Saiu 6 months ago
parent
commit
bf14e2391a
2 changed files with 6 additions and 23 deletions
  1. +3
    -23
      build-windows/generate_code.cmd
  2. +3
    -0
      build-windows/pEpEngine.vcxproj

+ 3
- 23
build-windows/generate_code.cmd View File

@ -17,34 +17,14 @@ IF NOT EXIST "%ProgramData%\pEp" "MKDIR %ProgramData%\pEp"
DEL "%ProgramData%\pEp\system.db"
MOVE system.db "%ProgramData%\pEp\system.db"
:: Generate code in ...\pEpEngine\codegen
CD ..\codegen
:: Make sure YML2 is installed
PY -m pip install --upgrade pip
PY -m pip install wheel
PY -m pip install yml2
:: Generate code in ...\libpEpTransport\src
CD ..\..\libpEpTransport\src
IF NOT EXIST generated MKDIR generated
PY %YML2PROC% -E utf-8 -y gen_c.ysl2 transport_status_code.yml2 -o generated\transport_status_code.h
IF %ERRORLEVEL% NEQ 0 GOTO end
PY %YML2PROC% -E utf-8 -y gen_strings.ysl2 transport_status_code.yml2 -o generated\transport_status_code.c
IF %ERRORLEVEL% NEQ 0 GOTO end
PY %YML2PROC% -E utf-8 -y gen_objc.ysl2 transport_status_code.yml2 -o generated\PEPTransportStatusCode.h
IF %ERRORLEVEL% NEQ 0 GOTO end
PY %YML2PROC% -E utf-8 -y gen_kotlin.ysl2 transport_status_code.yml2 -o generated\TransportStatusCode.kt
IF %ERRORLEVEL% NEQ 0 GOTO end
PY %YML2PROC% -E utf-8 -y gen_cs.ysl2 transport_status_code.yml2 -o generated\TransportStatusCode.cs
IF %ERRORLEVEL% NEQ 0 GOTO end
XCOPY /y generated\*.c ..\..\pEpEngine\src\
XCOPY /y generated\*.h ..\..\pEpEngine\src\
:: Generate code in ...\pEpEngine\codegen
CD ..\..\pEpEngine\codegen


+ 3
- 0
build-windows/pEpEngine.vcxproj View File

@ -237,6 +237,9 @@
<ProjectReference Include="..\..\libetpan\build-windows\libetpan\libetpan.vcxproj">
<Project>{ba4ded3c-e56f-4484-bfc3-9c13e461a1be}</Project>
</ProjectReference>
<ProjectReference Include="..\..\libpEpTransport\build-windows\libpEpTransport.vcxproj">
<Project>{13f8fc08-53f8-4615-8445-3d713c0374e4}</Project>
</ProjectReference>
<ProjectReference Include="libpEpasn1\libpEpasn1.vcxproj">
<Project>{9a67164d-b8f8-4601-a24b-28afe774d41c}</Project>
</ProjectReference>


Loading…
Cancel
Save