Sciter build setup

Sciter uses premake5 tool to generate solutions and projects for Visual Studio, XCode, CodeLite (Linux) and make based builds. 

NOTE: use of Premake is optional - source tree includes pre-generated projects and solutions. See #2.

Two "root" Premake5 files:

1. /premake5.lua - main file 

Invoke it in root Sciter sources folders as: 

1.1. Windows:

> premake5.exe vs2015

where vs2015 can be replaced by vs2017 or vs2019 to generate solutions for different versions of Visual studio.

1.1.1 Windows XP support

If you want to build the engine that will work on WindowsXP then follow these steps:

  1. Windows platform SDK for Windows 10 is required. Standard VS2017 setup installs needed SDK but for VS2015 download and install Windows 10 SDK (10.0.16299.91)  from https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/  
  2. Run
    > premake5.exe vs2015 --windowsxp
    or
    > premake5.exe vs2017 --windowsxp
    command at root folder of Sciter source tree. 
  3. Use /build.windows/sciter.sln and /build.windows/sciter.static.sln to build the Sciter.

1.2. Mac OS

> premake5 xcode4

1.3. Linux

> premake5 codelight --cc=gcc

This will generate CodeLight solutions for GCC compilers or this for make builds:

> premake5 gmake2

2. Solutions and Projects

Solutions and projects are located in these folders:

/build.windows

Visual Studio solutions and projects:

/build.macosx

XCode workspaces and projects

/build.linux

CodeLite workspaces and projects