aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJojatekok <jojatekokweb@gmail.com>2014-07-24 11:14:29 +0200
committerJojatekok <jojatekokweb@gmail.com>2014-07-24 11:14:29 +0200
commit49f901513db7d9ca3503a5f64052875a08ca3342 (patch)
tree10ad13f2d0b0ce5ec9b842f1c3b8ab6823c23024
parentMerge pull request #70 from fluffypony/master (diff)
downloadmonero-49f901513db7d9ca3503a5f64052875a08ca3342.tar.xz
Added a build script for Windows
-rw-r--r--utils/build_scripts/windows.bat17
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/build_scripts/windows.bat b/utils/build_scripts/windows.bat
new file mode 100644
index 000000000..7bacd55f8
--- /dev/null
+++ b/utils/build_scripts/windows.bat
@@ -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 \ No newline at end of file