2016-08-29 11:04:26 +00:00
|
|
|
Command line scripts for Visual Studio compilation without IDE
|
|
|
|
==============================================================
|
|
|
|
|
2016-06-16 13:44:30 +00:00
|
|
|
Here are a few command lines for reference :
|
|
|
|
|
|
|
|
### Build with Visual Studio 2013 for msvcr120.dll
|
|
|
|
|
|
|
|
Running the following command will build both the `Release Win32` and `Release x64` versions:
|
|
|
|
```batch
|
2018-03-26 16:55:10 +00:00
|
|
|
build.VS2013.cmd
|
2016-06-16 13:44:30 +00:00
|
|
|
```
|
2018-03-26 16:55:10 +00:00
|
|
|
The result of each build will be in the corresponding `bin\Release\{ARCH}\` folder.
|
2016-06-16 13:44:30 +00:00
|
|
|
|
|
|
|
If you want to only need one architecture:
|
2018-03-26 16:55:10 +00:00
|
|
|
- Win32: `build.generic.cmd VS2013 Win32 Release v120`
|
|
|
|
- x64: `build.generic.cmd VS2013 x64 Release v120`
|
2016-06-16 13:44:30 +00:00
|
|
|
|
|
|
|
If you want a Debug build:
|
2018-03-26 16:55:10 +00:00
|
|
|
- Win32: `build.generic.cmd VS2013 Win32 Debug v120`
|
|
|
|
- x64: `build.generic.cmd VS2013 x64 Debug v120`
|
2016-06-16 13:44:30 +00:00
|
|
|
|
|
|
|
### Build with Visual Studio 2015 for msvcr140.dll
|
|
|
|
|
|
|
|
Running the following command will build both the `Release Win32` and `Release x64` versions:
|
|
|
|
```batch
|
2018-03-26 16:55:10 +00:00
|
|
|
build.VS2015.cmd
|
2016-06-16 13:44:30 +00:00
|
|
|
```
|
2018-03-26 16:55:10 +00:00
|
|
|
The result of each build will be in the corresponding `bin\Release\{ARCH}\` folder.
|
2016-06-16 13:44:30 +00:00
|
|
|
|
|
|
|
If you want to only need one architecture:
|
2018-03-26 16:55:10 +00:00
|
|
|
- Win32: `build.generic.cmd VS2015 Win32 Release v140`
|
|
|
|
- x64: `build.generic.cmd VS2015 x64 Release v140`
|
2016-06-16 13:44:30 +00:00
|
|
|
|
|
|
|
If you want a Debug build:
|
2018-03-26 16:55:10 +00:00
|
|
|
- Win32: `build.generic.cmd VS2015 Win32 Debug v140`
|
|
|
|
- x64: `build.generic.cmd VS2015 x64 Debug v140`
|
2016-06-16 13:44:30 +00:00
|
|
|
|
|
|
|
### Build with Visual Studio 2015 for msvcr120.dll
|
|
|
|
|
2018-03-26 16:55:10 +00:00
|
|
|
This capability is offered through `build.generic.cmd` using proper arguments:
|
2016-06-16 13:44:30 +00:00
|
|
|
|
|
|
|
**For Win32**
|
|
|
|
```batch
|
2018-03-26 16:55:10 +00:00
|
|
|
build.generic.cmd VS2015 Win32 Release v120
|
2016-06-16 13:44:30 +00:00
|
|
|
```
|
2018-03-26 16:55:10 +00:00
|
|
|
The result of the build will be in the `bin\Release\Win32\` folder.
|
2016-06-16 13:44:30 +00:00
|
|
|
|
|
|
|
**For x64**
|
|
|
|
```batch
|
2018-03-26 16:55:10 +00:00
|
|
|
build.generic.cmd VS2015 x64 Release v120
|
2016-06-16 13:44:30 +00:00
|
|
|
```
|
2018-03-26 16:55:10 +00:00
|
|
|
The result of the build will be in the `bin\Release\x64\` folder.
|
2016-06-16 13:44:30 +00:00
|
|
|
|
|
|
|
If you want Debug builds, replace `Release` with `Debug`.
|
2018-03-26 16:55:10 +00:00
|
|
|
|
|
|
|
### Build with Visual Studio 2017
|
|
|
|
|
|
|
|
`build.VS2017.cmd`, contributed by [@HaydnTrigg](https://github.com/HaydnTrigg),
|
|
|
|
will build both the `Release Win32` and `Release x64` versions
|
|
|
|
of the first VS2017 variant it finds, in this priority order :
|
|
|
|
Enterprise > Professional > Community
|
|
|
|
|
|
|
|
Alternatively, it's possible to target a specific version,
|
|
|
|
using appropriate script, such as `build.VS2017Enterprise.cmd` for example.
|