summaryrefslogtreecommitdiff
path: root/external/crypto++-5.61/build.bat
diff options
context:
space:
mode:
Diffstat (limited to 'external/crypto++-5.61/build.bat')
-rw-r--r--external/crypto++-5.61/build.bat25
1 files changed, 25 insertions, 0 deletions
diff --git a/external/crypto++-5.61/build.bat b/external/crypto++-5.61/build.bat
new file mode 100644
index 0000000..6537529
--- /dev/null
+++ b/external/crypto++-5.61/build.bat
@@ -0,0 +1,25 @@
+@echo off
+setlocal
+
+@rem Move to the batch file directory so we can run it from anywhere
+cd %~dp0
+
+@rem Add VS 2013 to the path.
+call "%VS120COMNTOOLS%vsvars32.bat"
+
+@rem Build the project -- it's actually VS 2013 project files.
+devenv cryptest2010.sln /rebuild "release|Win32" /project cryptlib
+devenv cryptest2010.sln /rebuild "release|x64" /project cryptlib
+
+@rem The copying dance is no longer needed but the code is retained
+@rem Temporarily copy the 2013 libraries to a different location to allow
+@rem VS 2010 and VS 2013 to exist side-by-side.
+@rem p4 edit ..\..\lib\public\2013\cryptlib.lib
+@rem xcopy /y ..\..\lib\public\cryptlib.lib ..\..\lib\public\2013\cryptlib.lib
+@rem p4 revert ..\..\lib\public\cryptlib.lib
+
+@rem p4 edit ..\..\lib\public\x64\2013\cryptlib.lib
+@rem xcopy /y ..\..\lib\public\x64\cryptlib.lib ..\..\lib\public\x64\2013\cryptlib.lib
+@rem p4 revert ..\..\lib\public\x64\cryptlib.lib
+
+@echo Check in the changed libraries in src\lib if you are done.