Browse Source

code generation script

generate_api
Volker Birk 4 years ago
parent
commit
d3c1df4300
2 changed files with 7 additions and 2 deletions
  1. +5
    -0
      build-windows/generate_code.cmd
  2. +2
    -2
      build-windows/pEpEngine.vcxproj

+ 5
- 0
build-windows/generate_code.cmd View File

@ -13,6 +13,11 @@ xcopy /y generated\*.h ..\src\
cd %1\asn.1
del *.h*
del *.c*
..\..\Tools\asn1c\bin\asn1c -S ../../Tools/asn1c/share/asn1c -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 sync.asn1
del *-sample.c
popd

+ 2
- 2
build-windows/pEpEngine.vcxproj View File

@ -68,7 +68,7 @@
<AdditionalDependencies>$(TargetDir)\pEpEngineASN1.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PreBuildEvent>
<Command>cmd /c "$(ProjectDir)build_windows\generate_code.cmd" "$(ProjectDir)"
<Command>"$(SysProjectDir)generate_code.cmd" "$(ProjectDir).."
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
@ -95,7 +95,7 @@
<AdditionalDependencies>$(TargetDir)\pEpEngineASN1.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PreBuildEvent>
<Command>cmd /c "$(ProjectDir)build_windows\generate_code.cmd" "$(ProjectDir)"
<Command>"$(SysProjectDir)generate_code.cmd" "$(ProjectDir).."
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>


Loading…
Cancel
Save