Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tutorial]Windows *.dll only Live Reload #46

Open
bmFicg opened this issue Sep 12, 2019 · 0 comments
Open

[Tutorial]Windows *.dll only Live Reload #46

bmFicg opened this issue Sep 12, 2019 · 0 comments
Labels

Comments

@bmFicg
Copy link

bmFicg commented Sep 12, 2019

maybe someone find it useful - ido

step-by-stepinstructions

  1. Create a working folder.
  2. Findthe vcvars32.bat (for 32bit) or vcvars64.bat
    and copy+paste it into your working folder.
  3. Create three Windows Batch files with the content listed below.
  4. Download to your working folder.
    cr.h | basic_guest.c | basic_host.cpp
  5. Edit the source of basic_guest.c and basic_host.cpp to:
    #include "cr.h"
  6. Open up windows terminal (cmd.exe)
    and navigate to you working directory.
    for example: CD /D C:\Documents\myWorkingFolder
  7. Execute vcvarsXX.bat in your cmd.
  8. Build the remaining *.bat files.
  • If changes were made to the guest.c source
    Save the fileand Rebuild the source from cmd.
build_basic_guest.bat
cl /c basic_guest.c
link basic_guest.obj /DLL
build_basic_host.bat
cl /DCR_DEPLOY_PATH=\"./\" /EHsc basic_host.cpp
cleanup.bat
DEL *.dll *.obj *.lib *.exp *.exe

Further consideration: currently the naming convention of the *.dll files increments with every build. Fortunately its easy to change this behaivor and use only two states of guest *.dll (old and new, a and b or 0 and 1 ) and switch between the edited content with every new build.

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

No branches or pull requests

2 participants