]> granicus.if.org Git - graphviz/commitdiff
Windows: Added BISON and SED to gvc pre-build step.
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 20 Jun 2016 20:36:08 +0000 (22:36 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Mon, 20 Jun 2016 20:36:08 +0000 (22:36 +0200)
lib/gvc.vcxproj

index 38dc483b72c389a168cc66b5e98c8f74ef91ae10..86ff1c79b8fc24a3d7c5ab29b6ec2f509c534770 100644 (file)
       <TargetMachine>MachineX86</TargetMachine>
     </Link>
     <PreBuildEvent>
-      <Command>%BISON% -dy common\htmlparse.y -o common\htmlparse.c</Command>
+      <Command>%BISON% -dy common\htmlparse.y -o common\htmlparse-intermediate.c
+"%SED%" "s/yy/html/g" &lt; common\htmlparse-intermediate.c &gt; common\htmlparse.c
+"%SED%" "s/yy/html/g" &lt; common\htmlparse-intermediate.h &gt; common\htmlparse.h
+del common\htmlparse-intermediate.c
+del common\htmlparse-intermediate.h</Command>
     </PreBuildEvent>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
       <TargetMachine>MachineX86</TargetMachine>
     </Link>
     <PreBuildEvent>
-      <Command>%BISON% -dy common\htmlparse.y -o common\htmlparse.c</Command>
+      <Command>%BISON% -dy common\htmlparse.y -o common\htmlparse-intermediate.c
+"%SED%" "s/yy/html/g" &lt; common\htmlparse-intermediate.c &gt; common\htmlparse.c
+"%SED%" "s/yy/html/g" &lt; common\htmlparse-intermediate.h &gt; common\htmlparse.h
+del common\htmlparse-intermediate.c
+del common\htmlparse-intermediate.h</Command>
     </PreBuildEvent>
   </ItemDefinitionGroup>
   <ItemGroup>