adding generate_code.cmd for Windoze sync
authorVolker Birk <vb@pep.foundation>
Fri, 05 Oct 2018 20:33:34 +0200
branchsync
changeset 3023a195bf49201f
parent 3020 0b732f55530a
child 3024 55f2f165526e
adding generate_code.cmd for Windoze
build-windows/generate_code.cmd
build-windows/pEpEngine.vcxproj
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build-windows/generate_code.cmd	Fri Oct 05 20:33:34 2018 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +pushd .
     1.5 +cd %1\sync
     1.6 +
     1.7 +python %YML_PATH%\yml2proc -E utf-8 -y gen_actions.ysl2 sync.fsm
     1.8 +python %YML_PATH%\yml2proc -E utf-8 -y gen_statemachine.ysl2 sync.fsm
     1.9 +python %YML_PATH%\yml2proc -E utf-8 -y gen_codec.ysl2 sync.fsm
    1.10 +python %YML_PATH%\yml2proc -E utf-8 -y gen_messages sync.fsm
    1.11 +python %YML_PATH%\yml2proc -E utf-8 -y gen_message_func sync.fsm
    1.12 +
    1.13 +xcopy /y generated\*.asn1 ..\asn.1\
    1.14 +xcopy /y generated\*.c ..\src\
    1.15 +xcopy /y generated\*.h ..\src\
    1.16 +
    1.17 +cd %1\asn.1
    1.18 +
    1.19 +..\..\Tools\asn1c\bin\asn1c -S ../../Tools/asn1c/share/asn1c -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 sync.asn1
    1.20 +
    1.21 +popd
     2.1 --- a/build-windows/pEpEngine.vcxproj	Fri Oct 05 19:56:02 2018 +0200
     2.2 +++ b/build-windows/pEpEngine.vcxproj	Fri Oct 05 20:33:34 2018 +0200
     2.3 @@ -43,12 +43,12 @@
     2.4    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
     2.5      <LinkIncremental>true</LinkIncremental>
     2.6      <RunCodeAnalysis>false</RunCodeAnalysis>
     2.7 -	<IncludePath>$(ProjectDir)\..\..\libetpan\build-windows\include;C:\Program Files %28x86%29\GnuPG\include;$(IncludePath);$(ProjectDir)\asn.1;%ASN1C%\share\asn1c</IncludePath>
     2.8 +    <IncludePath>$(ProjectDir)\..\..\libetpan\build-windows\include;C:\Program Files %28x86%29\GnuPG\include;$(IncludePath);$(ProjectDir)\asn.1;%ASN1C%\share\asn1c</IncludePath>
     2.9      <LibraryPath>$(ProjectDir)\..\..\libetpan\build-windows\Debug;$(LibraryPath)</LibraryPath>
    2.10    </PropertyGroup>
    2.11    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    2.12      <LinkIncremental>false</LinkIncremental>
    2.13 -	<IncludePath>$(ProjectDir)\..\..\libetpan\build-windows\include;C:\Program Files %28x86%29\GnuPG\include;$(IncludePath);$(ProjectDir)\asn.1;%ASN1C%\share\asn1c</IncludePath>
    2.14 +    <IncludePath>$(ProjectDir)\..\..\libetpan\build-windows\include;C:\Program Files %28x86%29\GnuPG\include;$(IncludePath);$(ProjectDir)\asn.1;%ASN1C%\share\asn1c</IncludePath>
    2.15      <LibraryPath>$(ProjectDir)\..\..\libetpan\build-windows\Release;$(LibraryPath)</LibraryPath>
    2.16    </PropertyGroup>
    2.17    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    2.18 @@ -68,10 +68,7 @@
    2.19        <AdditionalDependencies>$(TargetDir)\pEpEngineASN1.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
    2.20      </Link>
    2.21      <PreBuildEvent>
    2.22 -      <Command>cd "$(ProjectDir)..\sync" &amp;&amp; python "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 devicegroup.fsm -o .statemachines
    2.23 -cd "$(ProjectDir)..\sync" &amp;&amp; python "%YML_PATH%\yml2proc" -E utf-8 -ygen_actions.ysl2 devicegroup.fsm -o .skeletons
    2.24 -cd "$(ProjectDir)..\sync" &amp;&amp; xcopy generated\*.c ..\src\ /y
    2.25 -cd "$(ProjectDir)..\sync" &amp;&amp; xcopy generated\*.h ..\src\ /y
    2.26 +      <Command>cmd /c "$(ProjectDir)build_windows\generate_code.cmd" "$(ProjectDir)"
    2.27  </Command>
    2.28      </PreBuildEvent>
    2.29    </ItemDefinitionGroup>
    2.30 @@ -98,10 +95,7 @@
    2.31        <AdditionalDependencies>$(TargetDir)\pEpEngineASN1.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
    2.32      </Link>
    2.33      <PreBuildEvent>
    2.34 -      <Command>cd "$(ProjectDir)..\sync" &amp;&amp; python "%YML_PATH%\yml2proc" -E utf-8 -y gen_statemachine.ysl2 devicegroup.fsm -o .statemachines
    2.35 -cd "$(ProjectDir)..\sync" &amp;&amp; python "%YML_PATH%\yml2proc" -E utf-8 -ygen_actions.ysl2 devicegroup.fsm -o .skeletons
    2.36 -cd "$(ProjectDir)..\sync" &amp;&amp; xcopy generated\*.c ..\src\ /y
    2.37 -cd "$(ProjectDir)..\sync" &amp;&amp; xcopy generated\*.h ..\src\ /y
    2.38 +      <Command>cmd /c "$(ProjectDir)build_windows\generate_code.cmd" "$(ProjectDir)"
    2.39  </Command>
    2.40      </PreBuildEvent>
    2.41    </ItemDefinitionGroup>