Skip to content

Commit

Permalink
Build: fix paths to bison in MSVC projects x64 config
Browse files Browse the repository at this point in the history
  • Loading branch information
aras-p committed Oct 20, 2024
1 parent 98210e7 commit ebc14f9
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions hlslang.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,17 @@ rename gen_hlslang.cpp Gen_hlslang.cpp
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(RootDir)%(Directory)..\..\tools\flex.exe %(FullPath)
if EXIST %(RootDir)%(Directory)gen_hlslang.cpp del %(RootDir)%(Directory)gen_hlslang.cpp
move gen_hlslang.cpp %(RootDir)%(Directory)gen_hlslang.cpp
cd %(RootDir)%(Directory)
rename gen_hlslang.cpp Gen_hlslang.cpp
</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">hlslang_tab.h;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(RootDir)%(Directory)Gen_hlslang.cpp;%(Outputs)</Outputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Executing flex on %(FullPath)</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(RootDir)%(Directory)..\..\tools\flex.exe %(FullPath)
if EXIST %(RootDir)%(Directory)gen_hlslang.cpp del %(RootDir)%(Directory)gen_hlslang.cpp
move gen_hlslang.cpp %(RootDir)%(Directory)gen_hlslang.cpp
cd %(RootDir)%(Directory)
rename gen_hlslang.cpp Gen_hlslang.cpp
</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">hlslang_tab.h;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(RootDir)%(Directory)Gen_hlslang.cpp;%(Outputs)</Outputs>
Expand All @@ -304,12 +308,13 @@ rename %(RootDir)%(Directory)%(Filename).tab.h %(Filename)_tab.h
</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(RootDir)%(Directory)Gen_%(Filename)_tab.cpp;%(Outputs)</Outputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Executing Bison on %(FullPath)</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">SET BISON_SIMPLE=%(RootDir)%(Directory)..\..\tools\bison.simple
SET BISON_HAIRY=%(RootDir)%(Directory)..\..\tools\bison.simple
cd %(RootDir)%(Directory)
%(RootDir)%(Directory)..\..\tools\bison.exe -d -t -v %(Filename).y
if EXIST %(RootDir)%(Directory)Gen_%(Filename)_tab.cpp del %(RootDir)%(Directory)Gen_%(Filename)_tab.cpp
rename %(RootDir)%(Directory)%(Filename)_tab.c Gen_%(Filename)_tab.cpp
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">cd %(RootDir)%(Directory)
set PATH=%PATH%;"%(RootDir)%(Directory)..\..\tools\bin\"
%(RootDir)%(Directory)..\..\tools\bin\bison.exe -d -t -v %(Filename).y
del /s /q %(RootDir)%(Directory)Gen_%(Filename)_tab.cpp
del /s /q %(RootDir)%(Directory)%(Filename)_tab.h
rename %(RootDir)%(Directory)%(Filename).tab.c Gen_%(Filename)_tab.cpp
rename %(RootDir)%(Directory)%(Filename).tab.h %(Filename)_tab.h
</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(RootDir)%(Directory)Gen_%(Filename)_tab.cpp;%(Outputs)</Outputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Executing Bison on %(FullPath)</Message>
Expand All @@ -323,12 +328,13 @@ rename %(RootDir)%(Directory)%(Filename).tab.h %(Filename)_tab.h
</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(RootDir)%(Directory)Gen_%(Filename)_tab.cpp;%(Outputs)</Outputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Executing Bison on %(FullPath)</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">SET BISON_SIMPLE=%(RootDir)%(Directory)..\..\tools\bison.simple
SET BISON_HAIRY=%(RootDir)%(Directory)..\..\tools\bison.simple
cd %(RootDir)%(Directory)
%(RootDir)%(Directory)..\..\tools\bison.exe -d -t -v %(Filename).y
if EXIST %(RootDir)%(Directory)Gen_%(Filename)_tab.cpp del %(RootDir)%(Directory)Gen_%(Filename)_tab.cpp
rename %(RootDir)%(Directory)%(Filename)_tab.c Gen_%(Filename)_tab.cpp
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">cd %(RootDir)%(Directory)
set PATH=%PATH%;"%(RootDir)%(Directory)..\..\tools\bin\"
%(RootDir)%(Directory)..\..\tools\bin\bison.exe -d -t -v %(Filename).y
del /s /q %(RootDir)%(Directory)Gen_%(Filename)_tab.cpp
del /s /q %(RootDir)%(Directory)%(Filename)_tab.h
rename %(RootDir)%(Directory)%(Filename).tab.c Gen_%(Filename)_tab.cpp
rename %(RootDir)%(Directory)%(Filename).tab.h %(Filename)_tab.h
</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(RootDir)%(Directory)Gen_%(Filename)_tab.cpp;%(Outputs)</Outputs>
</CustomBuild>
Expand Down

0 comments on commit ebc14f9

Please sign in to comment.