Browse Source

build: fix for a fucking batch file limitation that won't let me iterate

through a list of files containing spaces or parens.
legacy
Sam Hocevar sam 12 years ago
parent
commit
aa1e17d95f
1 changed files with 16 additions and 2 deletions
  1. +16
    -2
      win32/Lol.Rules.props

+ 16
- 2
win32/Lol.Rules.props View File

@@ -48,10 +48,24 @@
<!-- FIXME: not for the static library! --> <!-- FIXME: not for the static library! -->
<PostBuildEvent Condition="'$(Platform)'=='Win32'"> <PostBuildEvent Condition="'$(Platform)'=='Win32'">
<Command>for %%I in ($(SdlLibs)) do xcopy /y /c /d %%I\*.dll "$(TargetDir)"</Command>
<Command>
set A=$(SdlLibs)
:again
for /f "tokens=1* delims=;" %%I in ("%A%") do (
if not "%%I" == "" xcopy /y /c /d "%%I"\*.dll "$(TargetDir)" &amp;&amp; set A=%%J
if not "%%I" == "" goto again
)
</Command>
</PostBuildEvent> </PostBuildEvent>
<PostBuildEvent Condition="'$(Platform)'=='x64'"> <PostBuildEvent Condition="'$(Platform)'=='x64'">
<Command>for %%I in ($(SdlLibs)) do xcopy /y /c /d %%I\*.dll "$(TargetDir)"</Command>
<Command>
set A=$(SdlLibs)
:again
for /f "tokens=1* delims=;" %%I in ("%A%") do (
if not "%%I" == "" xcopy /y /c /d "%%I"\*.dll "$(TargetDir)" &amp;&amp; set A=%%J
if not "%%I" == "" goto again
)
</Command>
</PostBuildEvent> </PostBuildEvent>
<!-- FIXME: not for the static library! --> <!-- FIXME: not for the static library! -->


Loading…
Cancel
Save