Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (40 sloc) 1.819 kb
d651775 @weigon fixed the autotools setup
weigon authored
1 @rem $%BEGINLICENSE%$
2 @rem $%ENDLICENSE%$
3 @echo "Run this from a shell started with the Visual Studio Build environment set!"
4
5 @IF DEFINED GENERATOR (GOTO GENERAL_CONF)
6 @rem Sane default is VS2005, but maybe not what we really want...
7 @SET GENERATOR="Visual Studio 8 2005"
8 @GOTO GENERAL_CONF
9
10 :GENERAL_CONF
11
12 @echo Using %GENERATOR%
13
14 @rem MSVC 8 2005 doesn't seem to have devenv.com
15 @SET VS_CMD="%VS90COMNTOOLS%\..\IDE\VCExpress.exe"
16
17 @rem clear the cache if neccesary to let cmake recheck everything
18 @rem del CMakeCache.txt
19
20 :CMAKE
21 @rem make sure that /D NDEBUG isn't set as it disables all the assert()ions in the testcase
22 cmake -G %GENERATOR% -DBUILD_NUMBER=%BUILD_NUMBER% -DCMAKE_INSTALL_PREFIX=%INST_PREFIX% -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="/MD /Zi /O2 /Ob1" .
23
24 @IF NOT %GENERATOR%=="NMake Makefiles" (GOTO VS08BUILD)
25 nmake
26 IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
27 cp build-src/sigar.dll build-tests/
28 nmake test
29 IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
30 nmake install
31 IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
32
33 @GOTO CLEANUP
34
35 :VS08BUILD
36 %VS_CMD% mysql-proxy.sln /Clean
37 %VS_CMD% mysql-proxy.sln /Build Release
38 %VS_CMD% mysql-proxy.sln /Build Release /project RUN_TESTS
39 %VS_CMD% mysql-proxy.sln /Build Release /project PACKAGE
40 %VS_CMD% mysql-proxy.sln /Build Release /project INSTALL
41
42 @GOTO CLEANUP
43
44 @rem if you use VS8 to build then VS80COMNTOOLS should be set
45 @rem "%VS80COMNTOOLS%\..\IDE\devenv.com" mysql-proxy.sln /Clean
46 @rem "%VS80COMNTOOLS%\..\IDE\devenv.com" mysql-proxy.sln /Build
47 @rem "%VS80COMNTOOLS%\..\IDE\devenv.com" mysql-proxy.sln /Build Debug /project RUN_TESTS
48 @rem "%VS80COMNTOOLS%\..\IDE\devenv.com" mysql-proxy.sln /Build Debug /project PACKAGE
49 @rem "%VS80COMNTOOLS%\..\IDE\devenv.com" mysql-proxy.sln /Build Debug /project INSTALL
50
51 :CLEANUP
52
53 :END
Something went wrong with that request. Please try again.