mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 04:24:30 -07:00
Added a build script for Windows
This commit is contained in:
parent
0a87cb0b33
commit
49f901513d
17
utils/build_scripts/windows.bat
Normal file
17
utils/build_scripts/windows.bat
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
:: Set the following variables according to your environment
|
||||||
|
set BuildProcessorArchitecture=64
|
||||||
|
set LocationDependencyBoostRoot=D:\Development\boost_1_55_0
|
||||||
|
set LocationEnvironmentVariableSetterMsbuild=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
|
||||||
|
|
||||||
|
call "%LocationEnvironmentVariableSetterMsbuild%"
|
||||||
|
set LocationDependencyBoostLibrary=%LocationDependencyBoostRoot%\lib%BuildProcessorArchitecture%-msvc-%VisualStudioVersion%
|
||||||
|
|
||||||
|
cd ..\..
|
||||||
|
set LocationBuildSource=%CD%
|
||||||
|
mkdir build\win%BuildProcessorArchitecture%
|
||||||
|
cd build\win%BuildProcessorArchitecture%
|
||||||
|
|
||||||
|
cmake -G "Visual Studio %VisualStudioVersion:.0=% Win%BuildProcessorArchitecture%" -DBOOST_ROOT="%LocationDependencyBoostRoot%" -DBOOST_LIBRARYDIR="%LocationDependencyBoostLibrary%" "%LocationBuildSource%"
|
||||||
|
msbuild Project.sln /p:Configuration=Release
|
||||||
|
|
||||||
|
pause
|
Loading…
Reference in New Issue
Block a user