-
Notifications
You must be signed in to change notification settings - Fork 0
/
release_it.bat
34 lines (20 loc) · 1.18 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
33
34
set PATH=%PATH%;D:\Program Files\CMake 2.8\bin
set CMAKE_BUILDDIR=build\cmake\vc
set STARTDIR=%CD%
set WXDIR=%STARTDIR%\..\..\wxWidgets\2.9.5
@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
mkdir %CMAKE_BUILDDIR%
cd %CMAKE_BUILDDIR%
del CMakeCache.txt
cmake -D LITESQL_WITH_DOCS:bool=ON -D LITESQL_WITH_MYSQL:bool=ON -D LITESQL_WITH_SQLITE:bool=ON -D LITESQL_WITH_TESTS:bool=ON -D LITESQL_WITH_UI:bool=ON -D LITESQL_MSVC_MT:BOOL=OFF -D wxWidgets_ROOT_DIR=%WXDIR% -D wxWidgets_LIB_DIR=%WXDIR%\lib\vc_lib %STARTDIR%
devenv litesql.sln /Rebuild Debug /Project ALL_BUILD /ProjectConfig Debug
devenv /Rebuild Release litesql.sln /Project ALL_BUILD /ProjectConfig Debug
devenv /Build Debug litesql.sln /Project RUN_TESTS /ProjectConfig Debug
devenv /Build Release litesql.sln /Project PACKAGE /ProjectConfig Release
cpack --config CPackSourceConfig.cmake
cd %STARTDIR%
pause