Skip to content

Building

Jonathan Hoffstadt edited this page Aug 26, 2024 · 12 revisions

Building

The build process for Pilot Light is simple and will stay that way. We do not use a build system. You can use whatever editor or IDE you want. We prefer to use Visual Studio Code which in our opinion provides the most uniform experience across multiple platforms.

If you are using Visual Studio Code, run python setup.py from terminal to generate the .vscode folder we use and continue to the appropriate operating system section below.

Windows

Requirements

  • git
  • Vulkan SDK
  • Visual Studio 2019 or greater (just for the toolchain) with the following workflows:
    • Desktop development with C++
    • Game development with C++

Instructions

From within a local directory, enter the following commands in your terminal:

git clone --recursive https://github.com/pilot-light/pilotlight
cd pilotlight/scripts
python gen_build.py
python download_assets.py
cd ../src
build.bat

Binaries will be in pilotlight/out/.

Linux

Requirements

  • git
  • Vulkan SDK
  • X11 & XCB (sudo apt install libx11-dev libx11-xcb-dev libxkbcommon-x11-dev libxcb-cursor-dev libxxcb-xfixes0-dev libxcb-keysyms1-dev)

Instructions

From within a local directory, enter the following commands in your terminal:

git clone --recursive https://github.com/pilot-light/pilotlight
cd pilotlight/scripts
python3 gen_build.py
python3 download_assets.py
cd ../src
chmod +x build.sh
./build.sh

Binaries will be in pilotlight/out/.

MacOS

Requirements

Instructions

From within a local directory, enter the following commands in your terminal:

git clone --recursive https://github.com/pilot-light/pilotlight
cd pilotlight/scripts
python3 gen_build.py
python3 download_assets.py
cd ../src
chmod +x build.sh
./build.sh

Binaries will be in pilotlight/out/.

Clone this wiki locally