Skip to content

Development on Win64

Karn Kaul edited this page Nov 4, 2019 · 3 revisions

Windows (x64)

Building LittleEngine

LittleEngine offers a few approaches to set up a toolchain on Win64.

Requirements

  1. (Win 10) Windows SDK for ninja/MSBuild / Clang/VC++ or MinGW for MinGW / g++
  2. (Optional) Visual Studio 2019 (to use ninja instead of MSBuild)
  3. (Optional) LLVM for Win64 (to use Clang/lld instead of MSVC; VS LLVM Plugin will be required if using MSBuild (generating VS solutions))
  4. (Optional) Git bash / WSL bash to run shell scripts

Visual Studio Solution

  1. Build LittleEngine / LEDemo /custom executable target:
    1. Run CMake on the top-level CMakeLists.txt and generate a Visual Studio Solution (eg, at Project_VS). To use Clang (plugin required), enter "LLVM" as the Platform Toolset during configuration.
    2. Open the solution and build ALL_BUILD.
    3. Debugging:
      1. Set Test / LEDemo / custom executable as the startup project / debugging target.

Visual Studio CMake (requires Visual Studio 2019+)

  1. Build LittleEngine / LEDemo /custom executable target:
    1. Use "Open Folder" and select the directory containing the top-level CMakeLists.txt.
      1. (Optional) Edit Build Configurations and select x64-clang as the compiler.
    2. Build > Build All.
    3. Debugging:
      1. Click "Select Startup Item" or the arrow next to the green "play" button and select the built executable

Note: Visual Studio 2017 ships with CMake 3.12, and does not support using a custom CMake binary; LittleEngine requires CMake 3.13, so it is not feasible to build it using VS2017 CMake.

MinGW

  1. Follow the instructions on the Linux page, using MinGW Makefiles (or CodeBlocks - MinGW Makefiles) as the generator.

Note: Even without MinGW, Visual Studio need not be used as an IDE: the build tool just has to run vcvars64.bat to set up its build environment before calling ninja / MSBuild.

Clone this wiki locally