aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-12-29 16:49:02 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-12-29 16:49:02 +0000
commitcd44c23eb47885d8f98685bd252a94a6d54c00c7 (patch)
tree9b3441c10ab0a622de90d3167c175b0ead518761 /src
parentdbfb72744499af9960a4987ef278f4de85ab8cf4 (diff)
downloadpostgresql-cd44c23eb47885d8f98685bd252a94a6d54c00c7.tar.gz
postgresql-cd44c23eb47885d8f98685bd252a94a6d54c00c7.zip
Add support for XML build option to MSVC build scripts.
Magnus Hagander
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/Solution.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index e60525656d2..3b9c64cd0a1 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -84,6 +84,10 @@ sub GenerateFiles {
print O "#define USE_SSL 1\n" if ($self->{options}->{openssl});
print O "#define ENABLE_NLS 1\n" if ($self->{options}->{nls});
print O "#define LOCALEDIR \"/usr/local/pgsql/share/locale\"\n" if ($self->{options}->{nls});
+ if ($self->{options}->{xml}) {
+ print O "#define HAVE_LIBXML2\n";
+ print O "#define USE_LIBXML\n";
+ }
if ($self->{options}->{krb5}) {
print O "#define KRB5 1\n";
print O "#define HAVE_KRB5_ERROR_TEXT_DATA 1\n";
@@ -246,6 +250,11 @@ sub AddProject {
$proj->AddLibrary($self->{options}->{krb5} . '\lib\i386\krb5_32.lib');
$proj->AddLibrary($self->{options}->{krb5} . '\lib\i386\comerr32.lib');
}
+ if ($self->{options}->{xml}) {
+ $proj->AddIncludeDir($self->{options}->{xml} . '\include');
+ $proj->AddIncludeDir($self->{options}->{iconv} . '\include');
+ $proj->AddLibrary($self->{options}->{xml} . '\lib\libxml2.lib');
+ }
return $proj;
}