summaryrefslogtreecommitdiff
path: root/release_it.bat
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-25 19:00:26 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-25 19:07:57 -0700
commit75e924d81e0001c5e298cd89c99ff87d7cf6c8fb (patch)
tree2a01daf84658c6e2c4e04d25926b155e5d028f72 /release_it.bat
parent16794168a936feb7f25b3fdbdddf6c24b14a779a (diff)
parent7da937e2aea109e42b5ce9d6c9fe2e4e9ec877fc (diff)
Merge branch 'cmake-build' of https://github.com/gittiver/stmd into gittiver-cmake-build
Conflicts: .gitignore
Diffstat (limited to 'release_it.bat')
-rw-r--r--release_it.bat31
1 files changed, 31 insertions, 0 deletions
diff --git a/release_it.bat b/release_it.bat
new file mode 100644
index 0000000..e834deb
--- /dev/null
+++ b/release_it.bat
@@ -0,0 +1,31 @@
+
+set PATH=%PATH%;C:\Program Files (x86)\CMake 2.8\bin
+
+set CMAKE_BUILDDIR=build\vc
+set STARTDIR=%CD%
+
+@if NOT "%VS100COMNTOOLS%"=="" (call "%VS100COMNTOOLS%\vsvars32.bat" & goto VS_END)
+@if NOT "%VS90COMNTOOLS%"=="" (call "%VS90COMNTOOLS%\vsvars32.bat" & goto VS_END)
+@if NOT "%VS80COMNTOOLS%"=="" (call "%VS80COMNTOOLS%\vsvars32.bat" & goto VS_END)
+@if NOT "%VS71COMNTOOLS%"=="" (call "%VS71COMNTOOLS%\vsvars32.bat" & goto VS_END)
+
+:VS_END
+
+cd %STARTDIR%
+
+set CMAKE_BUILDDIR=build\vc
+mkdir %CMAKE_BUILDDIR%
+
+cd %CMAKE_BUILDDIR%
+
+del CMakeCache.txt
+
+cmake -D CMARK_MSVC_MT:BOOL=OFF %STARTDIR%
+rem -D cmark_DOCS:bool=ON -D cmark_WITH_TESTS:bool=ON -DCXXTEST_INCLUDE_DIR=%STARTDIR%\3rdparty\cxxtest -DCXXTEST_PYTHON_TESTGEN_EXECUTABLE=%STARTDIR%\3rdparty\cxxtest\bin\cxxtestgen
+cpack --config CPackSourceConfig.cmake
+cd %STARTDIR%
+cmake --build %CMAKE_BUILDDIR% --target all --target test --target package
+rem --target package_source
+
+
+pause