From 7cf4e862a2c1a0eaec1fc5e6db621ebb808c6d8f Mon Sep 17 00:00:00 2001 From: Kyle Davison Date: Tue, 22 Mar 2016 00:20:54 -0400 Subject: [PATCH] FIXED MakeSwig.bat creates output + copy directories if needed --- DependentExtensions/Swig/MakeSwig.bat | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/DependentExtensions/Swig/MakeSwig.bat b/DependentExtensions/Swig/MakeSwig.bat index 37e7115b7..a8b26e1a3 100644 --- a/DependentExtensions/Swig/MakeSwig.bat +++ b/DependentExtensions/Swig/MakeSwig.bat @@ -6,7 +6,19 @@ if "%swigPath%"=="" goto :SKIPADDSLASH if "%swigPath:~-1%"=="\" goto :SKIPADDSLASH SET swigPath=%swigPath%\ :SKIPADDSLASH -del /F /Q SwigOutput\SwigCSharpOutput\* + +set swigOutputCsharp=SwigOutput\SwigCSharpOutput +set swigOutputCplusDLL=SwigOutput\CplusDLLIncludes +set swigInterface=SwigInterfaceFiles +set swigFiles=SwigWindowsCSharpSample\SwigTestApp\SwigFiles + +if not exist %swigOutputCsharp% ( mkdir %swigOutputCsharp% ) +if not exist %swigOutputCplusDLL% ( mkdir %swigOutputCplusDLL% ) +if not exist %swigInterface% ( mkdir %swigInterface% ) +if not exist %swigFiles% ( mkdir %swigFiles% ) + +del /F /Q %swigOutputCsharp%\* + if "%3"=="" goto :NOSQL %swigPath%swig -c++ -csharp -namespace RakNet -I"%1" -I"SwigInterfaceFiles" -I"%3" -DSWIG_ADDITIONAL_SQL_LITE -outdir SwigOutput\SwigCSharpOutput -o SwigOutput\CplusDLLIncludes\RakNet_wrap.cxx SwigInterfaceFiles\RakNet.i copy /Y SwigOutput\SwigCSharpOutput\* SwigWindowsCSharpSample\SwigTestApp\SwigFiles\*