diff options
-rw-r--r-- | protocols/Tox/Tox.vcxproj | 8 | ||||
-rw-r--r-- | protocols/Tox/copydll.cmd | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/protocols/Tox/Tox.vcxproj b/protocols/Tox/Tox.vcxproj index a6bc2422b8..622d96816b 100644 --- a/protocols/Tox/Tox.vcxproj +++ b/protocols/Tox/Tox.vcxproj @@ -33,12 +33,10 @@ <AdditionalDependencies>Winmm.lib;dnsapi.lib;comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent Condition="'$(Platform)'=='Win32'">
- <Command>xcopy bin\x86\libtox.* "$(SolutionDir)$(Configuration)\Libs\libtox.*" /y
-tools\cv2pdb.exe "$(SolutionDir)$(Configuration)\Libs\libtox.dll"</Command>
+ <Command>call copydll.cmd x86 "$(OutputPath)..\Libs"</Command>
</PostBuildEvent>
<PostBuildEvent Condition="'$(Platform)'=='x64'">
- <Command>xcopy bin\x64\libtox.* "$(SolutionDir)$(Configuration)64\Libs\libtox.*" /y
-tools\cv2pdb.exe "$(SolutionDir)$(Configuration)64\Libs\libtox.dll"</Command>
+ <Command>call copydll.cmd x64 "$(OutputPath)..\Libs"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
@@ -55,4 +53,4 @@ tools\cv2pdb.exe "$(SolutionDir)$(Configuration)64\Libs\libtox.dll"</Command> <Project>{f6a9340e-b8d9-4c75-be30-47dc66d0abc7}</Project>
</ProjectReference>
</ItemGroup>
-</Project>
+</Project>
\ No newline at end of file diff --git a/protocols/Tox/copydll.cmd b/protocols/Tox/copydll.cmd new file mode 100644 index 0000000000..4b1f0fb50c --- /dev/null +++ b/protocols/Tox/copydll.cmd @@ -0,0 +1,5 @@ +echo off +cd /d ~dp%0 +copy /y bin\%1\libtox.* "%2" +tools\cv2pdb.exe "%2\libtox.dll" +exit 0 |