add custom build to generate files in ./tmp-bison

parse-bison.c and *.h, inpptree-parser.c and *.h
This commit is contained in:
Holger Vogt 2020-08-09 20:03:09 +02:00
parent b6318b2f51
commit e87d3abb9c
1 changed files with 12 additions and 0 deletions

View File

@ -2790,6 +2790,18 @@
<ItemGroup>
<Image Include="ngspice.ico" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="..\src\frontend\parse-bison.y">
<Message>invoke win_bison.exe for %(Identity)</Message>
<Command>..\..\flex-bison\win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
<Outputs>.\tmp-bison\%(Filename).c;.\tmp-bison\%(Filename).h</Outputs>
</CustomBuild>
<CustomBuild Include="..\src\spicelib\parser\inpptree-parser.y">
<Message>invoke win_bison.exe for %(Identity)</Message>
<Command>..\..\flex-bison\win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
<Outputs>.\tmp-bison\%(Filename).c;.\tmp-bison\%(Filename).h</Outputs>
</CustomBuild>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>