code generation script sync
authorVolker Birk <vb@pep.foundation>
Fri, 05 Oct 2018 20:37:52 +0200
branchsync
changeset 302455f2f165526e
parent 3023 a195bf49201f
child 3025 6a07370f2d78
code generation script
build-windows/generate_code.cmd
build-windows/pEpEngine.vcxproj
     1.1 --- a/build-windows/generate_code.cmd	Fri Oct 05 20:33:34 2018 +0200
     1.2 +++ b/build-windows/generate_code.cmd	Fri Oct 05 20:37:52 2018 +0200
     1.3 @@ -13,6 +13,11 @@
     1.4  
     1.5  cd %1\asn.1
     1.6  
     1.7 +del *.h*
     1.8 +del *.c*
     1.9 +
    1.10  ..\..\Tools\asn1c\bin\asn1c -S ../../Tools/asn1c/share/asn1c -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 sync.asn1
    1.11  
    1.12 +del *-sample.c
    1.13 +
    1.14  popd
     2.1 --- a/build-windows/pEpEngine.vcxproj	Fri Oct 05 20:33:34 2018 +0200
     2.2 +++ b/build-windows/pEpEngine.vcxproj	Fri Oct 05 20:37:52 2018 +0200
     2.3 @@ -68,7 +68,7 @@
     2.4        <AdditionalDependencies>$(TargetDir)\pEpEngineASN1.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
     2.5      </Link>
     2.6      <PreBuildEvent>
     2.7 -      <Command>cmd /c "$(ProjectDir)build_windows\generate_code.cmd" "$(ProjectDir)"
     2.8 +      <Command>"$(SysProjectDir)generate_code.cmd" "$(ProjectDir).."
     2.9  </Command>
    2.10      </PreBuildEvent>
    2.11    </ItemDefinitionGroup>
    2.12 @@ -95,7 +95,7 @@
    2.13        <AdditionalDependencies>$(TargetDir)\pEpEngineASN1.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
    2.14      </Link>
    2.15      <PreBuildEvent>
    2.16 -      <Command>cmd /c "$(ProjectDir)build_windows\generate_code.cmd" "$(ProjectDir)"
    2.17 +      <Command>"$(SysProjectDir)generate_code.cmd" "$(ProjectDir).."
    2.18  </Command>
    2.19      </PreBuildEvent>
    2.20    </ItemDefinitionGroup>