Building Scripal (Windows)

toolchain essentials

install Visual Studio with C++ support: https://visualstudio.microsoft.com/downloads/

Git

install Git CLI: https://git-scm.com/downloads/win

Prepare Scripal

Scripal application:

in terminal, clone the Scripal repository:

git clone -b main git@github.com:scripal-git/scripal.git

Make sure, the system path contains the directory, holding git.exe.

Poco C++ libraries (minimum version 1.11.0 required)

in terminal, clone the Poco repository:

git clone -b master https://github.com/pocoproject/poco.git

If you are already using Poco, the following libraries are needed:

PocoFoundation, PocoEncodings, PocoUtil, PocoJSON, PocoXML, PocoZip

We recommend to build Poco libraries using our supplied Visual Studio solution as part of the Scripal project.
(see below)

For more information on building Poco, see: https://docs.pocoproject.org/current/99150-WindowsPlatformNotes.html

Scripal

To create Poco for Scripal, first set the environment variable POCO_BASE with the full path to your Poco folder (see above) e.g.

[Environment]::SetEnvironmentVariable(“POCO_BASE”, “XXX_PATH_XXX”, “User”)

Then open the solution win\Poco4Scripal.sln in the Scripal repository and create the release or debug version. Select dynamic and static builds.
Scripal only runs on x64 and x86.

To build Scripal, open the Visual Studio solution \win\scripal.sln.
Select debug or release versions and static/dynamic build types.

The solution holds 3 projects:
scripal-cli: build the Scripal console tool scripal.exe in \x64\Debug\cli and \x64\Release\cli respectively
scripal-dll: build the Scripal DLL in \x64\Debug\dll and \x64\Release\dll respectively
scripal-lib: build the static library scripal.lib in \x64\Debug\lib and \x64\Release\lib respectively