Skip to content

Latest commit

 

History

History
74 lines (66 loc) · 1.51 KB

BUILDING.md

File metadata and controls

74 lines (66 loc) · 1.51 KB

Building on Windows

  • Install MSYS2 and MinGW 64-bit toolchain including cmake
pacman -S base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake
  • Pull submodules
git submodule update --init --recursive
  • Prepare project build system
cmake -G "MSYS Makefiles" .
  • Build executable
make

Visual Studio Code

Visual Studio Code is the recommended code editor for this project.

Recommended .vscode/settings.json

{
    "terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe",
    "terminal.integrated.shellArgs.windows": [
        "--login",
    ],
    "terminal.integrated.env.windows": {
        "CHERE_INVOKING": "1",
        "MSYSTEM": "MINGW64",
    },
    "files.trimTrailingWhitespace": true,
    "files.insertFinalNewline": true,
    "files.trimFinalNewlines": true,
}

Recommended .vscode/c_cpp_properties.json

{
    "configurations": [
        {
            "name": "MINGW64",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE",
                "PICOJSON_USE_INT64"
            ],
            "compilerPath": "C:/msys64/mingw64/bin/gcc.exe",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "gcc-x64"
        }
    ],
    "version": 4
}

Building on Linux

sudo apt install build-essential cmake
git submodule update --init --recursive
cmake .
make