postgresql/src/tools/msvc
Andrew Dunstan 08a0c2dabc Adjust yywrap macro for non-reentrant scanners for MSVC.
The MSVC compiler complains if a macro is called with less arguments
than its definition provides for. flex generates a macro with one
argument for yywrap, but only supplies the argument for reentrant
scanners, so we remove the useless argument in the non-reentrant
case to silence the warning.
2011-04-25 09:10:59 -04:00
..
Install.pm Avoid use of mixed slash style paths in arguments to xcopy in MSVC builds. 2011-04-07 22:17:06 -04:00
Mkvcbuild.pm Make plpythonu language use plpython2 shared library directly. 2011-03-05 15:13:15 -05:00
Project.pm Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
README Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
Solution.pm Update MSVC toolchain to match SGML entity uppercasing 2011-04-04 16:43:15 -04:00
build.bat Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
build.pl Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
builddoc.bat Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
clean.bat Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
config_default.pl Fix typo 2011-04-19 22:00:35 +03:00
ecpg_regression.proj Adding special command line option that is now needed for the one ecpg regression test that was changed. 2010-03-21 14:26:58 +00:00
gendef.pl Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
install.bat Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
install.pl Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
mkvcbuild.pl Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pgbison.bat Use a lexer and grammar for parsing walsender commands 2011-01-14 16:30:33 +01:00
pgflex.bat Adjust yywrap macro for non-reentrant scanners for MSVC. 2011-04-25 09:10:59 -04:00
vcregress.bat Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
vcregress.pl Refix the unaccent regression test on MSVC properly 2011-04-19 22:52:52 +03:00

README

src/tools/msvc/README

MSVC build
==========

This directory contains the tools required to build PostgreSQL using
Microsoft Visual Studio 2005. This builds the whole backend, not just
the libpq frontend library. For more information, see the documentation
chapter "Installation on Windows".


Notes about code indention
--------------------------
If the perl code is modified, use perltidy on it since pgindent won't
touch perl code. Use the following commandline:
perltidy -b -bl -nsfs -naws -l=100 -ole=unix *.pl *.pm

Notes about Visual Studio Express
---------------------------------
To build PostgreSQL using Visual Studio Express, the Platform SDK
has to be installed. Since this is not included in the product
originally, extra steps are needed to make it work.

First, download and install the latest Platform SDK from
www.microsoft.com.

Locate the files vcprojectengine.dll.express.config and
vcprojectengine.dll.config in the vc\vcpackages directory of
the Visual C++ Express installation. In these files, add the paths
to the Platform SDK to the Include, Library and Path tags. Be sure
to add them to the beginning of the list.

This should work for both GUI and commandline builds, but a restart
may be necessary.