Updated Building (markdown)

Julio César Rocha 2015-11-06 04:03:31 -08:00
parent 9a177d1725
commit d119f8d560
1 changed files with 27 additions and 5 deletions

@ -1,11 +1,33 @@
Currently, Project64 builds under Windows platforms.
It can be fully compiled using Microsoft Visual Studio compilers, versions 2008 to 2015.
# Visual Studio 2010 and later
In a command prompt (this example uses Windows PowerShell, enter:
# Command line
In a command prompt enter:
```
MSBuild.exe Project64.sln /p:PlatformToolset=$toolset
MSBuild.exe Project64.sln
```
This will build the Debug|Win32 variant, using the Visual Studio 2015 (MSVC 14) compiler toolset.
## Specific builds
Use the following MSBuild properties to set the platform, configuration, and tool set for the build:
* Platform<br/>
Can be either Win32 or x64
* Configuration<br/>
Either Debug or Release. It will determine either to use code optimizations or produce debugging information.
* PlatformToolset<br/>
Compiler collection to use. Default is v140_xp (Visual Studio 2015 with Windows XP support).<br/>
Other accepted values/versions: v140, v120, v120_xp, v110, v110_xp, v100, v90 (Note: You need to have the corresponding Visual Studio version installed).
Sample comand to build Project64, Release|x64 variant for MSVC 14 without XP support:
```
MSBuild.exe Project64.sln /p:Platform=x64 /p:Configuration=Release /p:PlatformToolset=v140
```
Where $toolset is one of: v100, v110_xp, v120_xp, v140_xp.
The default value is v140_xp (Visual Stidio 2015).
# Visual Studio IDE (2010 and later)
1. Open the solution in Visual Studio (Project64.sln)
2. Right-click the solution in the Project panel, and choose Build.<br/>
Alternatively, type SHIFT+CTRL+B
Notes:
* In the Build toolbar, you can select the Platform and Configuration needed.
* To change the platform tool set, edit the file PropertySheets\Platform.props, and set the <PlatformToolSet> property.