Skip to content

Developing on Windows (Visual Studio 2015)

mogemimi edited this page Jun 18, 2017 · 11 revisions

⚠️ TODO: This is the documentation for older version. These sections needs updating for the latest version of the engine.

Build requirements

  • Git
  • Python 2.7+
  • Windows >= 10
  • Visual Studio 2015+

Prerequisites

Cloning

git clone https://github.com/mogemimi/pomdog.git

Pulling all dependencies using Git

Make sure git is installed. From the root of your engine directory, run:

cd pomdog
git clone https://github.com/mogemimi/pomdog-third-party.git third-party
git clone --depth=1 https://chromium.googlesource.com/external/gyp.git tools/gyp

Updating all dependencies

Third-party libraries:

cd third-party
git pull origin master

GYP:

cd tools/gyp
git pull origin master
python setup.py install

Generating project files

Generate visual studio project files:

PowerShell

python tools\gyp\gyp_main.py test\TestApp\TestApp.gyp `
  --depth=. -f msvs -G msvs_version=2015 `
  --generator-output=build.msvs `
  -Dcomponent=static_library

Windows command prompt (Cmd)

python tools\gyp\gyp_main.py test\TestApp\TestApp.gyp ^
  --depth=. -f msvs -G msvs_version=2015 ^
  --generator-output=build.msvs ^
  -Dcomponent=static_library

Git Bath

python tools/gyp/gyp_main.py test/TestApp/TestApp.gyp \
  --depth=. -f msvs -G msvs_version=2015 \
  --generator-output=build.msvs \
  -Dcomponent=static_library

You can also use gyp instead of python tools/gyp/gyp_main.py:

gyp test/TestApp/TestApp.gyp --depth=. -f msvs \
  -G msvs_version=2015 \
  --generator-output=build.msvs \
  -Dcomponent=static_library

For information on how to install gyp, see How to Install GYP on the wiki.

Building under MSBuild (Visual Studio 2015)

PowerShell

$env:Path += ";C:\Program Files (x86)\MSBuild\14.0\Bin"
MSBuild build.msvs\test\TestApp\TestApp.sln /t:Build /p:Configuration=Release

Windows command prompt

set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
MSBuild build.msvs\test\TestApp\TestApp.sln /t:Build /p:Configuration=Release

Git Bash (MinGW)

export PATH="$PATH:/c/Program Files (x86)/MSBuild/14.0/Bin"
MSBuild.exe build.msvs/test/TestApp/TestApp.sln -t:Build -p:Configuration=Release

WIP 😱

NOTE

Working Directory
$(ProjectDir)..\..\..\test\TestApp