Replace strings in binary files.
-
First, you should load appropriate environment variables.(that contains the address of
cl.exe
,linker.exe
, ...).To do that you have two options:
1.1. Via CMD:
cmd.exe /E:ON /V:ON /k .\msvc2019-64bit.cmd
1.2. Via PowerShell:
Invoke-CmdScript "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
-
Change to root directory of the project.
-
nmake.exe .\Makefile.win
It will create rsib.exe in release directory.
[Environment]::SetEnvironmentVariable("PATH", "$ENV:PATH;D:\workspace\c++\cpp\projects\active\rsib\release", "MACHINE")