1*01826a49SYabin CuiCommand line scripts for Visual Studio compilation without IDE 2*01826a49SYabin Cui============================================================== 3*01826a49SYabin Cui 4*01826a49SYabin CuiHere are a few command lines for reference : 5*01826a49SYabin Cui 6*01826a49SYabin Cui### Build with Visual Studio 2013 for msvcr120.dll 7*01826a49SYabin Cui 8*01826a49SYabin CuiRunning the following command will build both the `Release Win32` and `Release x64` versions: 9*01826a49SYabin Cui```batch 10*01826a49SYabin Cuibuild.VS2013.cmd 11*01826a49SYabin Cui``` 12*01826a49SYabin CuiThe result of each build will be in the corresponding `bin\Release\{ARCH}\` folder. 13*01826a49SYabin Cui 14*01826a49SYabin CuiIf you want to only need one architecture: 15*01826a49SYabin Cui- Win32: `build.generic.cmd VS2013 Win32 Release v120` 16*01826a49SYabin Cui- x64: `build.generic.cmd VS2013 x64 Release v120` 17*01826a49SYabin Cui 18*01826a49SYabin CuiIf you want a Debug build: 19*01826a49SYabin Cui- Win32: `build.generic.cmd VS2013 Win32 Debug v120` 20*01826a49SYabin Cui- x64: `build.generic.cmd VS2013 x64 Debug v120` 21*01826a49SYabin Cui 22*01826a49SYabin Cui### Build with Visual Studio 2015 for msvcr140.dll 23*01826a49SYabin Cui 24*01826a49SYabin CuiRunning the following command will build both the `Release Win32` and `Release x64` versions: 25*01826a49SYabin Cui```batch 26*01826a49SYabin Cuibuild.VS2015.cmd 27*01826a49SYabin Cui``` 28*01826a49SYabin CuiThe result of each build will be in the corresponding `bin\Release\{ARCH}\` folder. 29*01826a49SYabin Cui 30*01826a49SYabin CuiIf you want to only need one architecture: 31*01826a49SYabin Cui- Win32: `build.generic.cmd VS2015 Win32 Release v140` 32*01826a49SYabin Cui- x64: `build.generic.cmd VS2015 x64 Release v140` 33*01826a49SYabin Cui 34*01826a49SYabin CuiIf you want a Debug build: 35*01826a49SYabin Cui- Win32: `build.generic.cmd VS2015 Win32 Debug v140` 36*01826a49SYabin Cui- x64: `build.generic.cmd VS2015 x64 Debug v140` 37*01826a49SYabin Cui 38*01826a49SYabin Cui### Build with Visual Studio 2015 for msvcr120.dll 39*01826a49SYabin Cui 40*01826a49SYabin CuiThis capability is offered through `build.generic.cmd` using proper arguments: 41*01826a49SYabin Cui 42*01826a49SYabin Cui**For Win32** 43*01826a49SYabin Cui```batch 44*01826a49SYabin Cuibuild.generic.cmd VS2015 Win32 Release v120 45*01826a49SYabin Cui``` 46*01826a49SYabin CuiThe result of the build will be in the `bin\Release\Win32\` folder. 47*01826a49SYabin Cui 48*01826a49SYabin Cui**For x64** 49*01826a49SYabin Cui```batch 50*01826a49SYabin Cuibuild.generic.cmd VS2015 x64 Release v120 51*01826a49SYabin Cui``` 52*01826a49SYabin CuiThe result of the build will be in the `bin\Release\x64\` folder. 53*01826a49SYabin Cui 54*01826a49SYabin CuiIf you want Debug builds, replace `Release` with `Debug`. 55*01826a49SYabin Cui 56*01826a49SYabin Cui### Build with Visual Studio 2017 57*01826a49SYabin Cui 58*01826a49SYabin Cui`build.VS2017.cmd`, contributed by [@HaydnTrigg](https://github.com/HaydnTrigg), 59*01826a49SYabin Cuiwill build both the `Release Win32` and `Release x64` versions 60*01826a49SYabin Cuiof the first VS2017 variant it finds, in this priority order : 61*01826a49SYabin CuiEnterprise > Professional > Community 62*01826a49SYabin Cui 63*01826a49SYabin CuiAlternatively, it's possible to target a specific version, 64*01826a49SYabin Cuiusing appropriate script, such as `build.VS2017Enterprise.cmd` for example. 65