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

Commit03c3960

Browse files
committed
Add MSVC build system support for ICU
Author: Ashutosh Sharma <ashu.coek88@gmail.com>Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
1 parent253504f commit03c3960

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

‎src/tools/msvc/Solution.pm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ s{PG_VERSION_STR "[^"]+"}{PG_VERSION_STR "PostgreSQL $self->{strver}$extraver, c
220220
{
221221
print$o"#define ENABLE_GSS 1\n";
222222
}
223+
if ($self->{options}->{icu})
224+
{
225+
print$o"#define USE_ICU 1\n";
226+
}
223227
if (my$port =$self->{options}->{"--with-pgport"})
224228
{
225229
print$o"#undef DEF_PGPORT\n";
@@ -555,6 +559,13 @@ sub AddProject
555559
$proj->AddIncludeDir($self->{options}->{iconv} .'\include');
556560
$proj->AddLibrary($self->{options}->{iconv} .'\lib\iconv.lib');
557561
}
562+
if ($self->{options}->{icu})
563+
{
564+
$proj->AddIncludeDir($self->{options}->{icu} .'\include');
565+
$proj->AddLibrary($self->{options}->{icu} .'\lib\icuin.lib');
566+
$proj->AddLibrary($self->{options}->{icu} .'\lib\icuuc.lib');
567+
$proj->AddLibrary($self->{options}->{icu} .'\lib\icudt.lib');
568+
}
558569
if ($self->{options}->{xml})
559570
{
560571
$proj->AddIncludeDir($self->{options}->{xml} .'\include');
@@ -677,6 +688,7 @@ sub GetFakeConfigure
677688
$cfg .=' --with-libxml'if ($self->{options}->{xml});
678689
$cfg .=' --with-libxslt'if ($self->{options}->{xslt});
679690
$cfg .=' --with-gssapi'if ($self->{options}->{gss});
691+
$cfg .=' --with-icu'if ($self->{options}->{icu});
680692
$cfg .=' --with-tcl'if ($self->{options}->{tcl});
681693
$cfg .=' --with-perl'if ($self->{options}->{perl});
682694
$cfg .=' --with-python'if ($self->{options}->{python});

‎src/tools/msvc/config_default.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
ldap=> 1,# --with-ldap
1616
extraver=>undef,# --with-extra-version=<string>
1717
gss=>undef,# --with-gssapi=<path>
18+
icu=>undef,# --with-icu=<path>
1819
nls=>undef,# --enable-nls=<path>
1920
tap_tests=>undef,# --enable-tap-tests
2021
tcl=>undef,# --with-tls=<path>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp