Asn1 on Windows, only generate code and delete pEp folder when rebuilding
authorThomas
Thu, 30 Jul 2020 15:03:14 +0200
changeset 490910048803d2ac
parent 4908 5fb3a71cf1c1
child 4910 347f8b793204
child 4913 ceaa392217db
Asn1 on Windows, only generate code and delete pEp folder when rebuilding
build-windows/libpEpasn1/libpEpasn1.vcxproj
     1.1 --- a/build-windows/libpEpasn1/libpEpasn1.vcxproj	Thu Jul 30 14:35:33 2020 +0200
     1.2 +++ b/build-windows/libpEpasn1/libpEpasn1.vcxproj	Thu Jul 30 15:03:14 2020 +0200
     1.3 @@ -60,10 +60,6 @@
     1.4      <Link>
     1.5        <SubSystem>Windows</SubSystem>
     1.6      </Link>
     1.7 -    <PreBuildEvent>
     1.8 -      <Command>cd "$(ProjectDir)..\.." &amp;&amp; "$(ProjectDir)..\generate_code.cmd"</Command>
     1.9 -      <Message>Generating Code for pEp Sync</Message>
    1.10 -    </PreBuildEvent>
    1.11    </ItemDefinitionGroup>
    1.12    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    1.13      <ClCompile>
    1.14 @@ -81,10 +77,6 @@
    1.15        <EnableCOMDATFolding>true</EnableCOMDATFolding>
    1.16        <OptimizeReferences>true</OptimizeReferences>
    1.17      </Link>
    1.18 -    <PreBuildEvent>
    1.19 -      <Command>cd "$(ProjectDir)..\.." &amp;&amp; "$(ProjectDir)..\generate_code.cmd"</Command>
    1.20 -      <Message>Generating Code for pEp Sync</Message>
    1.21 -    </PreBuildEvent>
    1.22    </ItemDefinitionGroup>
    1.23    <ItemGroup>
    1.24      <Text Include="ReadMe.txt" />
    1.25 @@ -227,4 +219,8 @@
    1.26    </ItemGroup>
    1.27    <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
    1.28    <ImportGroup Label="ExtensionTargets" />
    1.29 +  <Target Name="BeforeRebuild">
    1.30 +    <Message Text="Generating Code for pEp Sync" />
    1.31 +    <Exec Command="CD &quot;$(ProjectDir)..\..&quot; &amp;&amp; &quot;$(ProjectDir)..\generate_code.cmd&quot;" />
    1.32 +  </Target>
    1.33  </Project>
    1.34 \ No newline at end of file