-
Notifications
You must be signed in to change notification settings - Fork 0
/
release_it.bat
executable file
·32 lines (21 loc) · 1.16 KB
/
release_it.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set PATH=%PATH%;C:\Tools\CMake\bin
set CMAKE_BUILDDIR=build\vc
set STARTDIR=%CD%
set WXDIR=%STARTDIR%\..\wxWidgets\3.0.2
@if NOT "%VS140COMNTOOLS%"=="" (call "%VS140COMNTOOLS%\vsvars32.bat" & goto VS_END)
@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 wxUnivDiff_WITH_DOCS:BOOL=OFF -D wxUnivDiff_WITH_TESTS:BOOL=ON -DCXXTEST_INCLUDE_DIR=%STARTDIR%\3rdparty\cxxtest -DCXXTEST_PYTHON_TESTGEN_EXECUTABLE=%STARTDIR%\3rdparty\cxxtest\bin\cxxtestgen -D wxUnivDiff_MSVC_MT:BOOL=OFF -D wxWidgets_ROOT_DIR:FILEPATH=%WXDIR% -D wxWidgets_LIB_DIR:FILEPATH=%WXDIR%\lib\vc_lib %STARTDIR%
cpack --config CPackSourceConfig.cmake
cd %STARTDIR%
cmake --build %CMAKE_BUILDDIR% --target all --target test --target package
rem --target package_source
pause