Checkout

Window.js can be built on Windows, Mac and Linux.

A build of Window.js requires the following steps, with details below:

  1. Install build tools for the corresponding platform
  2. Checkout the Window.js repository from Github
  3. Setup the build environment
  4. Fetch Window.js dependencies
  5. Build

Note: the Skia and v8 checkouts and builds are very large. Expect at least 14GB of disk usage after a full checkout and build.

1 Install build tools

These tools must be installed and available in the PATH in a terminal.

  • git
  • CMake 3.15 or later

Windows

  • Visual Studio 2022 (Choose the Desktop development with C++ workflow in the installer)
  • Windows 10 SDK (10.0.22621.0 – can be installed with Visual Studio 2022)

Linux

  • apt-get install cmake clang libfontconfig-dev libjpeg-turbo8-dev libwebp-dev libgl-dev libglx-dev libxrandr-dev re2c xorg-dev

Mac

2 Checkout the repository

$ git clone https://github.com/windowjs/windowjs

3 Setup the build environment

Windows

For Windows command prompt terminals, run this script:

$ libraries\setup_build_env.bat

For Windows Powershell terminals, run this script instead:

$ libraries\setup_build_env.ps1

Linux and macOS

$ source libraries/setup_build_env.sh

4 Fetching the dependencies

Windows

Command prompt terminals:

$ libraries\sync.bat

Powershell terminals:

$ libraries\sync.ps1

Linux and macOS

$ ./libraries/sync.sh

5 Build

See the build instructions.