Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd44c23

Browse files
committed
Add support for XML build option to MSVC build scripts.
Magnus Hagander
1 parentdbfb727 commitcd44c23

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)

[8]ページ先頭

©2009-2025 Movatter.jp