Update VS copy files stage to include DLLs
This commit is contained in:
@@ -164,7 +164,7 @@
|
||||
<NoEntryPoint>false</NoEntryPoint>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>call $(ProjectDir)CopyFiles.bat $(SolutionDir)$(Configuration)</Command>
|
||||
<Command>call "$(ProjectDir)CopyFiles.bat" "$(SolutionDir)" "$(Configuration)" "$(VCInstallDir)"</Command>
|
||||
<Message>Copy resource files</Message>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
@@ -188,7 +188,7 @@
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>call $(ProjectDir)CopyFiles.bat $(SolutionDir)$(Configuration)</Command>
|
||||
<Command>call "$(ProjectDir)CopyFiles.bat" "$(SolutionDir)" "$(Configuration)" "$(VCInstallDir)"</Command>
|
||||
<Message>Copy resource files</Message>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
|
@@ -1,9 +1,14 @@
|
||||
|
||||
@echo off
|
||||
echo Copying files...
|
||||
set ResourceDir=%1\..\..\..\rsrc
|
||||
set TargetDir=%1
|
||||
set SolutionDir=%1
|
||||
set Config=%2
|
||||
set VCDir=%~f3
|
||||
|
||||
set ResourceDir=%SolutionDir%%Config%\..\..\..\rsrc
|
||||
set TargetDir=%SolutionDir%%Config%
|
||||
set ScenEdDir=%TargetDir%\"Scenario Editor"
|
||||
set DllSrcDir=%VCDir%bin
|
||||
@echo on
|
||||
|
||||
@echo Copying graphics...
|
||||
@@ -28,4 +33,21 @@ xcopy %1\..\..\tools\mask.* %TargetDir%\data\shaders /s /y /i /d
|
||||
xcopy %ResourceDir%\"Blades of Exile Bases" %ScenEdDir%\"Blades of Exile Base" /s /y /i /d
|
||||
|
||||
@echo Copying scenario files...
|
||||
xcopy %ResourceDir%\"Blades of Exile Scenarios" %TargetDir%\"Blades of Exile Scenarios" /s /y /i /d
|
||||
xcopy %ResourceDir%\"Blades of Exile Scenarios"\*.exs %TargetDir%\"Blades of Exile Scenarios" /s /y /i /d
|
||||
xcopy %ResourceDir%\"Blades of Exile Scenarios"\*.bmp %TargetDir%\"Blades of Exile Scenarios" /s /y /i /d
|
||||
|
||||
@echo Copying required DLLs...
|
||||
if %Config% == "Debug" (
|
||||
xcopy "%DllSrcDir%\sfml-audio-d-2.dll" %TargetDir% /s /y /i /d
|
||||
xcopy "%DllSrcDir%\sfml-graphics-d-2.dll" %TargetDir% /s /y /i /d
|
||||
xcopy "%DllSrcDir%\sfml-system-d-2.dll" %TargetDir% /s /y /i /d
|
||||
xcopy "%DllSrcDir%\sfml-window-d-2.dll" %TargetDir% /s /y /i /d
|
||||
) else (
|
||||
xcopy "%DllSrcDir%\sfml-audio-2.dll" %TargetDir% /s /y /i /d
|
||||
xcopy "%DllSrcDir%\sfml-graphics-2.dll" %TargetDir% /s /y /i /d
|
||||
xcopy "%DllSrcDir%\sfml-system-2.dll" %TargetDir% /s /y /i /d
|
||||
xcopy "%DllSrcDir%\sfml-window-2.dll" %TargetDir% /s /y /i /d
|
||||
)
|
||||
|
||||
xcopy "%DllSrcDir%\zlib1.dll" %TargetDir% /s /y /i /d
|
||||
xcopy "%DllSrcDir%\libsndfile-1.dll" %TargetDir% /s /y /i /d
|
@@ -42,6 +42,7 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<TargetName>Character Editor</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
|
@@ -42,6 +42,7 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<TargetName>Scenario Editor</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
|
Reference in New Issue
Block a user