aboutsummaryrefslogtreecommitdiff
path: root/release_it.bat
blob: e834deb77eaf29e9128b207f0c1767b1d0e896e1 (plain)
  1. set PATH=%PATH%;C:\Program Files (x86)\CMake 2.8\bin
  2. set CMAKE_BUILDDIR=build\vc
  3. set STARTDIR=%CD%
  4. @if NOT "%VS100COMNTOOLS%"=="" (call "%VS100COMNTOOLS%\vsvars32.bat" & goto VS_END)
  5. @if NOT "%VS90COMNTOOLS%"=="" (call "%VS90COMNTOOLS%\vsvars32.bat" & goto VS_END)
  6. @if NOT "%VS80COMNTOOLS%"=="" (call "%VS80COMNTOOLS%\vsvars32.bat" & goto VS_END)
  7. @if NOT "%VS71COMNTOOLS%"=="" (call "%VS71COMNTOOLS%\vsvars32.bat" & goto VS_END)
  8. :VS_END
  9. cd %STARTDIR%
  10. set CMAKE_BUILDDIR=build\vc
  11. mkdir %CMAKE_BUILDDIR%
  12. cd %CMAKE_BUILDDIR%
  13. del CMakeCache.txt
  14. cmake -D CMARK_MSVC_MT:BOOL=OFF %STARTDIR%
  15. 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
  16. cpack --config CPackSourceConfig.cmake
  17. cd %STARTDIR%
  18. cmake --build %CMAKE_BUILDDIR% --target all --target test --target package
  19. rem --target package_source
  20. pause