浏览代码

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 年前
父节点
当前提交
aa1e17d95f
共有 1 个文件被更改,包括 16 次插入2 次删除
  1. +16
    -2
      win32/Lol.Rules.props

+ 16
- 2
win32/Lol.Rules.props 查看文件

@@ -48,10 +48,24 @@
<!-- FIXME: not for the static library! -->
<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 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>
<!-- FIXME: not for the static library! -->


正在加载...
取消
保存