root/trunk/debea_dev_build.bat

Revision 78, 3.3 kB (checked in by zork, 1 year ago)

fixed PSQL tests for msw

  • Property svn:eol-style set to CRLF
  • Property svn:executable set to *
Line 
1 REM This scripts shows steps that needs to be done to compile debea library
2 REM from svn sources using VC nmake tool.
3
4 REM It generates dsp/dsw projects for VC. If you want to use them you need
5 REM to setup following enviroment variables:
6 REM DEVEL - for finding headers of installed libraries
7 REM CPPUNIT - where cppunit library is installed
8
9 REM Variables below are needed to compile database plugins
10
11 REM Native sqlite3 support:
12 REM SQLITE3_PATH - path to headers and libs of sqlite3 library.
13
14 REM Native PostgreSQL support:
15 REM POSTGRESQL - path to postgres 8.x is installed
16
17 REM To compile wxdba library:
18 REM WXWIN - place where wxWidgets library is installed
19
20 REM see presets/syslibs.bkl <sqlite3> and <postgres> template to see how those
21 REM variables are used.
22
23 REM Please do not modify this script. If you want to pass different paths or
24 REM build diffrent plugins please modify a copy of it.
25
26 REM dir where sources are unpacked
27 SET SOURCES_DIR=C:\sources\debea
28
29 REM plugins to build (passed to configure)
30 SET DBA_PLUGINS=CSV=1 SQLITE3=1 ODBC=1 PGSQL=1
31
32 REM place where libraries should be installed
33 SET DEVEL=C:\devel\debea
34
35 REM configure flags for all libraries
36 SET DEBEA_CONFIGURE_FLAGS=DEBUG=1 TESTS=1
37
38 REM place where libraries should be build
39 SET BUILD_DIR=C:\build\debea
40
41 REM bakefile_gen run from Makefile.cvs needs to find additional files:
42 REM syslibs.bkl and baseprj.bkl from "presets" dir and presets generated by each library
43 REM remember that bakefile appends 'presets' subdir to each path component
44 SET BAKEFILE_PATHS=%DEVEL%\share\bakefile;%SOURCES_DIR%
45
46 REM Allow regression tests to find built plugins
47
48 REM create build dirs
49 mkdir %BUILD_DIR%\dba
50 mkdir %BUILD_DIR%\wxdba
51
52 REM let configure find common-config and dba-config where debea is supposed to be installed
53 REM we append dba build dir because regression tests needs to find plugins to run.
54 PATH=%PATH%;%DEVEL%\bin:%BUILD_DIR%\dba
55
56 REM create project files for dba library
57 cd %SOURCES_DIR%\dba
58 bakefile_gen -f msvc,msvc6prj -d dba.bkgen
59 IF %ERRORLEVEL% NEQ 0 GOTO ERROR
60
61 REM build dba library.
62 nmake /f makefile.vc %DEBEA_CONFIGURE_FLAGS% %DBA_PLUGINS%
63 IF %ERRORLEVEL% NEQ 0 GOTO ERROR
64 nmake /f makefile.vc %DEBEA_CONFIGURE_FLAGS% %DBA_PLUGINS% check
65 IF %ERRORLEVEL% NEQ 0 GOTO ERROR
66 nmake /f makefile.vc %DEBEA_CONFIGURE_FLAGS% %DBA_PLUGINS% install
67 IF %ERRORLEVEL% NEQ 0 GOTO ERROR
68
69 REM create project files wxdba library
70 cd %SOURCES_DIR%\wxdba
71 bakefile -f msvc wxdba.bkl
72 bakefile -f msvc6prj wxdba.bkl
73 IF %ERRORLEVEL% NEQ 0 GOTO ERROR
74
75 REM build wxdba library - needs wxWidgets to build
76 nmake /f makefile.vc %DEBEA_CONFIGURE_FLAGS%
77 IF %ERRORLEVEL% NEQ 0 GOTO ERROR
78 nmake /f makefile.vc %DEBEA_CONFIGURE_FLAGS% check
79 IF %ERRORLEVEL% NEQ 0 GOTO ERROR
80 nmake /f makefile.vc %DEBEA_CONFIGURE_FLAGS% install
81 IF %ERRORLEVEL% NEQ 0 GOTO ERROR
82
83 cd ..
84 @echo ======================
85 @echo Success!
86 @echo C++ Headers installed in %DEVEL%\include
87 @echo Libraries installed in %DEVEL%\lib
88 @echo Plugins installed in %DEVEL%\lib\plugins(d)
89 @echo ======================
90 GOTO END
91
92 :ERROR
93 @echo ======================
94 @echo ERROR occured
95 @echo Please check http://debea.net/trac/report/3
96 @echo And report if this problem is not already there
97 @echo ======================
98
99 :END
Note: See TracBrowser for help on using the browser.