Skip to content

Commit cd44c23

Browse files
committed
Add support for XML build option to MSVC build scripts.
Magnus Hagander
1 parent dbfb727 commit cd44c23

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/tools/msvc/Solution.pm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ sub GenerateFiles {
8484
print O "#define USE_SSL 1\n" if ($self->{options}->{openssl});
8585
print O "#define ENABLE_NLS 1\n" if ($self->{options}->{nls});
8686
print O "#define LOCALEDIR \"/usr/local/pgsql/share/locale\"\n" if ($self->{options}->{nls});
87+
if ($self->{options}->{xml}) {
88+
print O "#define HAVE_LIBXML2\n";
89+
print O "#define USE_LIBXML\n";
90+
}
8791
if ($self->{options}->{krb5}) {
8892
print O "#define KRB5 1\n";
8993
print O "#define HAVE_KRB5_ERROR_TEXT_DATA 1\n";
@@ -246,6 +250,11 @@ sub AddProject {
246250
$proj->AddLibrary($self->{options}->{krb5} . '\lib\i386\krb5_32.lib');
247251
$proj->AddLibrary($self->{options}->{krb5} . '\lib\i386\comerr32.lib');
248252
}
253+
if ($self->{options}->{xml}) {
254+
$proj->AddIncludeDir($self->{options}->{xml} . '\include');
255+
$proj->AddIncludeDir($self->{options}->{iconv} . '\include');
256+
$proj->AddLibrary($self->{options}->{xml} . '\lib\libxml2.lib');
257+
}
249258
return $proj;
250259
}
251260

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy