Skip to content

Building SPMod on Windows

Karol Szuster edited this page Aug 4, 2018 · 6 revisions

Building SPMod on Windows

Instructions for building SPMod on Windows using MSVC.

Requirements

Prerequisites

  1. Clone SPMod repository
    git clone --recursive https://github.com/Amaroq7/SPMod.git
  2. Create folder inside SPMod repository called build

Building

  1. Run x86 Native Tools Command Prompt for VS 2017

  2. Change dir to your SPMod build dir
    cd <spmod_repo_dir>\build

  3. Generate initial build files
    meson .. . --buildtype plain

  4. (Optional) If you wish to build SPMod by linking it dynamically which results in smaller size
    *Warning* Requires to have Microsoft Visual C++ Redistributable for Visual Studio 2017 installed
    default: false
    meson configure -D linktype=dynamic

  5. (Optional) To change build type to release
    default: true (debug)
    meson configure -Dwindebug=false

  6. Check configuration
    meson configure

  7. If everything's ok, build
    ninja

Clone this wiki locally