Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

FIXED MakeSwig.bat creates output + copy directories if needed #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kdavison
Copy link

Had issue in MSVS 2015 Community where MakeSwig.bat did not create directories as needed.
Fixed MakeSwig.bat by creating some variables for the output / copy directories and creating those directories if they did not exist.

@AnsonKindred
Copy link

I had this problem as well. I believe it's also a problem in the linux version of the script.

Copy link

@Luke1410 Luke1410 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added some comments on the presented pull request - FTR: changes selectively applied where reasonable in SLikeNet (expected to be shipped in SLikeNet 0.2.0).


if not exist %swigOutputCsharp% ( mkdir %swigOutputCsharp% )
if not exist %swigOutputCplusDLL% ( mkdir %swigOutputCplusDLL% )
if not exist %swigInterface% ( mkdir %swigInterface% )
Copy link

@Luke1410 Luke1410 Jun 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SwigInterfaceFiles directory should exist prior to running the MakeSwig batch file since it should contain the required interface files. Hence, creating this directory here should not really serve any purpose or am I overlooking anything?

set swigOutputCsharp=SwigOutput\SwigCSharpOutput
set swigOutputCplusDLL=SwigOutput\CplusDLLIncludes
set swigInterface=SwigInterfaceFiles
set swigFiles=SwigWindowsCSharpSample\SwigTestApp\SwigFiles
Copy link

@Luke1410 Luke1410 Jun 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that while you are introducing the variables here, the folder names are still hard coded throughout the batch file (f.e. in line 23).

Also corresponding changes should/could be applied to MakeSwigWithExtras.bat as well (not required in SLikeNet since there we combined the two batch files in a single one).

@Luke1410
Copy link

Luke1410 commented Jun 22, 2018

@kdavison: Due to lack of other means to contact you, posting this here as a comment:

I understand that you didn't put your pull request under a special license and hence in our understanding it's covered by the original RakNet license. Please let me know if I got this wrong and you rather considering your contributions under special license terms.

We applied the basic idea of your pull request in SLikeNet (internal case number: SLNET-193 - available already in the GitHub and SVN repositories - changes are scheduled to be shipped in SLikeNet 0.2.0: https://github.com/SLikeSoft/SLikeNet )

As a way to thank you for your contribution, we'd like to offer you putting you in the acknowledgments section of the accompanying readme for the next version:

kdavison: https://github.com/kdavison (pull request: RAKNET_93)

Please let me know if that's fine with you (preferably by mail to info [at] slikesoft [dot] com - or alternatively leave a comment here). Unless you explicitly say so, we won't put that entry in the readme file (to respect your privacy).

@kdavison
Copy link
Author

kdavison commented Jun 22, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants