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

Commit481ce16

Browse files
committed
Added icu-related stuff to MSVC build perl scripts
1 parentc56d19d commit481ce16

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

‎src/tools/msvc/Solution.pm

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
234234
print O"#define DEF_PGPORT$port\n";
235235
print O"#define DEF_PGPORT_STR\"$port\"\n";
236236
}
237+
if ($self->{options}->{icu})
238+
{
239+
print O"#define USE_ICU\n";
240+
}
237241
print O"#define VAL_CONFIGURE\""
238242
.$self->GetFakeConfigure() ."\"\n";
239243
print O"#endif /* IGNORE_CONFIGURED_SETTINGS */\n";
@@ -528,6 +532,14 @@ sub AddProject
528532
$proj->AddIncludeDir($self->{options}->{xslt} .'\include');
529533
$proj->AddLibrary($self->{options}->{xslt} .'\lib\libxslt.lib');
530534
}
535+
if ($self->{options}->{icu})
536+
{
537+
my$libdir =$self->{options}->{icu}.'\lib';
538+
$libdir .='\lib64'if$self->{platform}eq'x64';
539+
$proj->AddIncludeDir($self->{options}->{icu} .'\include');
540+
$proj->AddLibrary($libdir.'\icuin.lib');
541+
$proj->AddLibrary($libdir.'\icuuc.lib');
542+
}
531543
return$proj;
532544
}
533545

@@ -639,7 +651,7 @@ sub GetFakeConfigure
639651
$cfg .=' --with-tcl'if ($self->{options}->{tcl});
640652
$cfg .=' --with-perl'if ($self->{options}->{perl});
641653
$cfg .=' --with-python'if ($self->{options}->{python});
642-
654+
$cfg .=' --with-icu'if ($self->{options}->{icu});
643655
return$cfg;
644656
}
645657

‎src/tools/msvc/config_default.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
xml=>undef,# --with-libxml=<path>
2626
xslt=>undef,# --with-libxslt=<path>
2727
iconv=>undef,# (not in configure, path to iconv)
28-
zlib=>undef# --with-zlib=<path>
28+
zlib=>undef,# --with-zlib=<path>
29+
icu=>undef# --with-icu=<path>
2930
};
3031

3132
1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp