I have finished testing AIR's MSVC build and it's ready for use. You will need the following tools to build the executables and documentation
MSVC from Microsoft Visual Studio (Free version works fine)
Strawberry Perl for Windows the ScriptBasic build system uses.
Included in the repo is
VC-3rdParty-Libs.7z which contains module runtime DLLs and lib / include files for MSVC.
This
devcmd.bat file sets up the environment to build the ScriptBasic Windows 64 bit distribution. This batch file is for AIR's custom portable MSVC version. (all inclusive) You will need to setup your paths accordingly. The
devcmd.bat file is run within this custom
MSVC directory.
set WindowsSDKDir=
%~dp0\Windows Kits\10
set WindowsSDKVersion=10.0.22621.0
set VCToolsInstallDir=
%~dp0\VC\Tools\MSVC\14.39.33519\
set VSCMD_ARG_TGT_ARCH=x64
set MSVC_BIN=
%~dp0\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64
set SDK_BIN=
%~dp0\Windows Kits\10\bin\10.0.22621.0\x64;
%~dp0\Windows Kits\10\bin\10.0.22621.0\x64\ucrt
set PATH=
%MSVC_BIN%;
%SDK_BIN%;
%PATH% set INCLUDE=
%~dp0\VC\Tools\MSVC\14.39.33519\include;
%~dp0\Windows Kits\10\Include\10.0.22621.0\ucrt;
%~dp0\Windows Kits\10\Include\10.0.22621.0\shared;
%~dp0\Windows Kits\10\Include\10.0.22621.0\um;
%~dp0\Windows Kits\10\Include\10.0.22621.0\winrt;
%~dp0\Windows Kits\10\Include\10.0.22621.0\cppwinrt
set INCLUDE=
%INCLUDE%;
%~dp0\VC-3rdParty\include
set LIB=
%~dp0\VC\Tools\MSVC\14.39.33519\lib\x64;
%~dp0\Windows Kits\10\Lib\10.0.22621.0\ucrt\x64;
%~dp0\Windows Kits\10\Lib\10.0.22621.0\um\x64;
%~dp0\VC-3rdParty\lib\x64
call %~dp0\Perl\portableshell.bat
Here is an example to show how
%~dp0 works.
Here is D:\dirshow.bat:
echo this is
%%~dp0
%~dp0
Run it from C:\ and this is what you see
C:\>D:\dirshow.bat
this is %~dp0 D:\
I have attached the directory tree structure for AIR's MSVC.
After you run the
devcmd.bat file, change directory to where your your ScriptBasic source is located. This source directory must be from a
git clone https://gitlab.com/scriptbasic/sb-dev-msvc.git command. The ZIP and other download methods don't seem to get everything. Once in the source directory run this command.
setup If you add
--help to the command it will show the option commands.
Once the build process is complete, you can use the
setup --install --directory=C:\ScriptBasic64 command to create a runtime directory. Copy the DLL directory contents from VC-3rdParty-Libs.7z to your runtime
lib directory. The last step is to add the
bin and
lib directory to your system PATH.
ScriptBasic MSVC Repository