File tree 2 files changed +28
-12
lines changed
2 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.38 2007/03/29 15:30:52 mha Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.39 2007/04/18 10:14:06 mha Exp $ -->
2
2
3
3
<chapter id="install-win32">
4
4
<title>Installation on <productname>Windows</productname></title>
186
186
<title>Building</title>
187
187
188
188
<para>
189
- To build all of PostgreSQL in debug configuration (the default), run the
189
+ To build all of PostgreSQL in release configuration (the default), run the
190
190
command:
191
191
<screen>
192
192
<userinput>
193
193
build
194
194
</userinput>
195
195
</screen>
196
- To build all of PostgreSQL in release configuration, run the command:
196
+ To build all of PostgreSQL in debug configuration, run the command:
197
197
<screen>
198
198
<userinput>
199
- build RELEASE
199
+ build DEBUG
200
200
</userinput>
201
201
</screen>
202
202
To build just a single project, for example psql, run the commands:
205
205
build psql
206
206
</userinput>
207
207
<userinput>
208
- build RELEASE psql
208
+ build DEBUG psql
209
+ </userinput>
210
+ </screen>
211
+ To change the default build configuration to debug, put the following
212
+ in the buildenv.bat file:
213
+ <screen>
214
+ <userinput>
215
+ set CONFIG=Debug
209
216
</userinput>
210
217
</screen>
211
218
</para>
Original file line number Diff line number Diff line change 1
1
@ echo off
2
- REM $PostgreSQL: pgsql/src/tools/msvc/build.bat,v 1.7 2007/03/17 14:01:01 mha Exp $
2
+ REM $PostgreSQL: pgsql/src/tools/msvc/build.bat,v 1.8 2007/04/18 10: 14:06 mha Exp $
3
3
4
4
SETLOCAL
5
5
SET STARTDIR = %CD%
6
+ SET CONFIG =
6
7
if exist src\tools\msvc\buildenv.bat call src\tools\msvc\buildenv.bat
7
8
if exist buildenv.bat call buildenv.bat
8
9
9
10
perl mkvcbuild.pl
10
11
if errorlevel 1 goto :eof
11
12
12
13
if exist ..\msvc if exist ..\..\..\src cd ..\..\..
13
- SET CONFIG =
14
- if " %1 " == " " set CONFIG = Debug
15
- if " %CONFIG% " == " " if " %1 " == " DEBUG" set CONFIG = Debug
16
- if " %CONFIG% " == " " if " %1 " == " RELEASE" set CONFIG = Release
17
- if not " %CONFIG% " == " " shift
18
- if " %CONFIG% " == " " set CONFIG = Debug
14
+ set CFG =
15
+ if " %1 " == " DEBUG" (
16
+ set CONFIG = Debug
17
+ set CFG = 1
18
+ )
19
+ if " %1 " == " RELEASE" (
20
+ set CONFIG = Release
21
+ set CFG = 1
22
+ )
23
+ if " %CONFIG% " == " " set CONFIG = Release
24
+
25
+ if " %CFG% " == " 1" shift
26
+
27
+ echo Building %CONFIG%
19
28
20
29
if " %1 " == " " msbuild pgsql.sln /verbosity:detailed /p:Configuration=%CONFIG%
21
30
if not " %1 " == " " vcbuild %1 .vcproj %CONFIG%
You can’t perform that action at this time.
0 commit comments